HomeSort by relevance Sort by last modified time
    Searched defs:StringPiece (Results 1 - 13 of 13) sorted by null

  /external/icu/icu4c/source/common/
stringpiece.cpp 12 #include "unicode/stringpiece.h"
18 StringPiece::StringPiece(const char* str)
21 StringPiece::StringPiece(const StringPiece& x, int32_t pos) {
31 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) {
46 void StringPiece::set(const char* str)
    [all...]
  /external/icu/icu4c/source/common/unicode/
stringpiece.h 27 * \brief C++ API: StringPiece: Read-only byte string wrapper class.
42 * in a "const char*" or a "string" wherever a "StringPiece" is
45 * Functions or methods may use StringPiece parameters to accept either a
47 * StringPiece.
49 * Systematic usage of StringPiece is encouraged as it will reduce unnecessary
54 class U_COMMON_API StringPiece : public UMemory {
61 * Default constructor, creates an empty StringPiece.
64 StringPiece() : ptr_(NULL), length_(0) { }
70 StringPiece(const char* str);
75 StringPiece(const std::string& str
    [all...]
  /external/libtextclassifier/util/strings/
stringpiece.h 27 class StringPiece {
29 StringPiece() : StringPiece(nullptr, 0) {}
31 StringPiece(const char *str) // NOLINT(runtime/explicit)
34 StringPiece(const char *start, size_t size)
38 // be converted to StringPiece implicitly.
39 StringPiece(const std::string &s) // NOLINT(runtime/explicit)
40 : StringPiece(s.data(), s.size()) {}
42 StringPiece(const std::string &s, int offset, int len)
43 : StringPiece(s.data() + offset, len) {
    [all...]
  /external/pcre/pcrecpp/include/
pcre_stringpiece.h 61 class StringPiece {
68 // in a "const char*" or a "string" wherever a "StringPiece" is
70 StringPiece()
72 StringPiece(const char* str)
74 StringPiece(const unsigned char* str)
77 StringPiece(const string& str)
79 StringPiece(const char* offset, int len)
114 bool operator==(const StringPiece& x) const {
118 bool operator!=(const StringPiece& x) const {
123 bool operator cmp (const StringPiece& x) const {
    [all...]
  /external/protobuf/src/google/protobuf/stubs/
stringpiece.cc 30 #include <google/protobuf/stubs/stringpiece.h>
40 std::ostream& operator<<(std::ostream& o, StringPiece piece) {
46 void StringPiece::LogFatalSizeTooBig(size_t size, const char* details) {
50 StringPiece::StringPiece(StringPiece x, stringpiece_ssize_type pos)
56 StringPiece::StringPiece(StringPiece x,
65 void StringPiece::CopyToString(string* target) const
    [all...]
stringpiece.h 31 // A StringPiece points to part or all of a string, Cord, double-quoted string
32 // literal, or other string-like object. A StringPiece does *not* own the
33 // string to which it points. A StringPiece is not null-terminated.
35 // You can use StringPiece as a function or method parameter. A StringPiece
37 // char*" argument, a string argument, or a StringPiece argument with no data
38 // copying. Systematic use of StringPiece for arguments reduces data
42 // void MyFunction(StringPiece arg);
44 // void MyFunction(const StringPiece& arg); // not preferred
49 // StringPiece is also suitable for local variables if you know tha
    [all...]
  /external/tensorflow/tensorflow/core/lib/core/
stringpiece.h 16 // StringPiece is a simple structure containing a pointer into some external
17 // storage and a size. The user of a StringPiece must ensure that the slice
21 // Multiple threads can invoke const methods on a StringPiece without
23 // non-const method, all threads accessing the same StringPiece must use
40 class StringPiece {
45 StringPiece() : data_(nullptr), size_(0) {}
48 StringPiece(const char* d, size_t n) : data_(d), size_(n) {}
51 StringPiece(const string& s) : data_(s.data()), size_(s.size()) {}
54 StringPiece(const char* s) : data_(s), size_(strlen(s)) {}
93 bool contains(StringPiece s) const
    [all...]
  /frameworks/minikin/libs/minikin/
StringPiece.h 26 class StringPiece {
28 StringPiece() : mData(nullptr), mLength(0) {}
29 StringPiece(const char* data) : mData(data), mLength(data == nullptr ? 0 : strlen(data)) {}
30 StringPiece(const char* data, size_t length) : mData(data), mLength(length) {}
31 StringPiece(const std::string& str) : mData(str.data()), mLength(str.size()) {}
40 inline StringPiece substr(size_t from, size_t length) const {
41 return StringPiece(mData + from, length);
59 inline bool operator==(const StringPiece& l, const StringPiece& r) {
72 inline bool operator==(const StringPiece& l, const char* s)
    [all...]
  /art/libartbase/base/
stringpiece.h 29 // Functions or methods may use const StringPiece& parameters to accept either
31 // a StringPiece. The implicit conversion means that it is often appropriate
33 // StringPiece as would be appropriate for most other Google classes.
34 class StringPiece {
50 // in a "const char*" or a "string" wherever a "StringPiece" is
52 StringPiece() : ptr_(nullptr), length_(0) { }
53 StringPiece(const char* str) // NOLINT implicit constructor desired
55 StringPiece(const std::string& str) // NOLINT implicit constructor desired
57 StringPiece(const char* offset, size_t len) : ptr_(offset), length_(len) { }
103 int compare(const StringPiece& x) const
    [all...]
  /build/kati/
string_piece.h 18 // Copied from strings/stringpiece.h with modifications
22 // Functions or methods may use const StringPiece& parameters to accept either
24 // a StringPiece. The implicit conversion means that it is often appropriate
26 // StringPiece as would be appropriate for most other Google classes.
28 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary
44 class StringPiece {
62 // in a "const char*" or a "string" wherever a "StringPiece" is
64 StringPiece() : ptr_(NULL), length_(0) {}
65 StringPiece(const char* str)
67 StringPiece(const std::string& str) : ptr_(str.data()), length_(str.size()) {
    [all...]
  /external/libchrome/base/strings/
string_piece.h 4 // Copied from strings/stringpiece.h with modifications
8 // You can use StringPiece as a function or method parameter. A StringPiece
10 // char*" argument, a string argument, or a StringPiece argument with no data
11 // copying. Systematic use of StringPiece for arguments reduces data
15 // void MyFunction(StringPiece arg);
17 // void MyFunction(const StringPiece& arg); // not preferred
37 typedef BasicStringPiece<std::string> StringPiece;
42 // Many of the StringPiece functions use different implementations for the
46 // So here we define overloaded functions called by the StringPiece template
    [all...]
  /prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/stubs/
stringpiece.h 31 // A StringPiece points to part or all of a string, Cord, double-quoted string
32 // literal, or other string-like object. A StringPiece does *not* own the
33 // string to which it points. A StringPiece is not null-terminated.
35 // You can use StringPiece as a function or method parameter. A StringPiece
37 // char*" argument, a string argument, or a StringPiece argument with no data
38 // copying. Systematic use of StringPiece for arguments reduces data
42 // void MyFunction(StringPiece arg);
44 // void MyFunction(const StringPiece& arg); // not preferred
49 // StringPiece is also suitable for local variables if you know tha
    [all...]
  /external/protobuf/csharp/src/Google.Protobuf/Reflection/
Descriptor.cs     [all...]

Completed in 206 milliseconds