Searched defs:StringPiece (Results 1 - 11 of 11) sorted by relevance

/external/icu/icu4c/source/common/
H A Dstringpiece.cpp18 StringPiece::StringPiece(const char* str) function in class:StringPiece
21 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { function in class:StringPiece
31 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { function in class:StringPiece
46 void StringPiece::set(const char* str) {
55 operator==(const StringPiece
[all...]
/external/libtextclassifier/util/strings/
H A Dstringpiece.h27 class StringPiece { class in namespace:libtextclassifier
29 StringPiece() : StringPiece(nullptr, 0) {} function in class:libtextclassifier::StringPiece
31 StringPiece(const char *str) // NOLINT(runtime/explicit) function in class:libtextclassifier::StringPiece
34 StringPiece(const char *start, size_t size) function in class:libtextclassifier::StringPiece
38 // be converted to StringPiece implicitly.
39 StringPiece(const std::string &s) // NOLINT(runtime/explicit) function in class:libtextclassifier::StringPiece
40 : StringPiece(s.data(), s.size()) {}
42 StringPiece(const std::string &s, int offset, int len) function in class:libtextclassifier::StringPiece
43 : StringPiece(
[all...]
/external/icu/icu4c/source/common/unicode/
H A Dstringpiece.h27 * \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 { class in inherits:UMemory
61 * Default constructor, creates an empty StringPiece.
64 StringPiece() : ptr_(NULL), length_(0) { } function in class:StringPiece
70 StringPiece(const char* str);
76 StringPiece(cons function in class:StringPiece
85 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } function in class:StringPiece
[all...]
/external/pcre/pcrecpp/include/
H A Dpcre_stringpiece.h61 class StringPiece { class in namespace:pcrecpp
68 // in a "const char*" or a "string" wherever a "StringPiece" is
70 StringPiece() function in class:pcrecpp::StringPiece
72 StringPiece(const char* str) function in class:pcrecpp::StringPiece
74 StringPiece(const unsigned char* str) function in class:pcrecpp::StringPiece
77 StringPiece(const string& str) function in class:pcrecpp::StringPiece
79 StringPiece(const char* offset, int len) function in class:pcrecpp::StringPiece
114 bool operator==(const StringPiece& x) const {
118 bool operator!=(const StringPiece& x) const {
123 bool operator cmp (const StringPiece
[all...]
/external/protobuf/src/google/protobuf/stubs/
H A Dstringpiece.cc40 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) function in class:google::protobuf::StringPiece
56 StringPiece::StringPiece(StringPiece x, function in class:google::protobuf::StringPiece
65 void StringPiece::CopyToString(string* target) const {
69 void StringPiece
[all...]
H A Dstringpiece.h31 // 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 i
178 class LIBPROTOBUF_EXPORT StringPiece { class in namespace:google::protobuf
210 StringPiece() : ptr_(NULL), length_(0) {} function in class:google::protobuf::StringPiece
212 StringPiece(const char* str) // NOLINT(runtime/explicit) function in class:google::protobuf::StringPiece
220 StringPiece( // NOLINT(runtime/explicit) function in class:google::protobuf::StringPiece
227 StringPiece( // NOLINT(runtime/explicit) function in class:google::protobuf::StringPiece
234 StringPiece(const char* offset, stringpiece_ssize_type len) function in class:google::protobuf::StringPiece
[all...]
/external/libchrome/base/json/
H A Djson_value_converter.h75 // and specify a function to convert a StringPiece to your type.
76 // bool ConvertFunc(const StringPiece& s, YourEnum* result) {
219 typedef bool(*ConvertFunc)(const StringPiece& value, FieldType* field);
409 bool (*convert_func)(const StringPiece&, FieldType*)) {
406 RegisterCustomField( const std::string& field_name, FieldType StructType::* field, bool (*convert_func)(const StringPiece&, FieldType*)) argument
/external/regex-re2/re2/
H A Dstringpiece.h7 // Functions or methods may use const StringPiece& parameters to accept either
9 // a StringPiece. The implicit conversion means that it is often appropriate
11 // StringPiece as would be appropriate for most other Google classes.
13 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary
29 class StringPiece { class in namespace:re2
36 // in a "const char*" or a "string" wherever a "StringPiece" is
38 StringPiece() : ptr_(NULL), length_(0) { } function in class:re2::StringPiece
39 StringPiece(const char* str) function in class:re2::StringPiece
41 StringPiece(const std::string& str) function in class:re2::StringPiece
43 StringPiece(cons function in class:re2::StringPiece
[all...]
/external/libchrome/base/strings/
H A Dstring_piece.h8 // 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; typedef in namespace:base
42 // Many of the StringPiece functions use different implementations for the
46 // So here we define overloaded functions called by the StringPiece template.
51 BASE_EXPORT void CopyToString(const StringPiece
[all...]
/external/regex-re2/re2/testing/
H A Dregexp_benchmark.cc30 StringPiece sp[4];
59 StringPiece sp[4];
105 typedef void SearchImpl(int iters, const char* regexp, const StringPiece& text,
113 typedef void ParseImpl(int iters, const char* regexp, const StringPiece& text);
274 StringPiece t = s;
275 StringPiece u;
351 StringPiece(text, len), Prog::kAnchored, true);
374 void (*parse3)(int, const char*, const StringPiece&)) {
413 void (*parse3)(int, const char*, const StringPiece&)) {
454 void (*parse1)(int, const char*, const StringPiece
373 Parse3Digits(int iters, void (*parse3)(int, const char*, const StringPiece&)) argument
412 Parse3DigitDs(int iters, void (*parse3)(int, const char*, const StringPiece&)) argument
453 Parse1Split(int iters, void (*parse1)(int, const char*, const StringPiece&)) argument
490 Parse1SplitHard(int iters, void (*run)(int, const char*, const StringPiece&)) argument
525 Parse1SplitBig1(int iters, void (*run)(int, const char*, const StringPiece&)) argument
545 Parse1SplitBig2(int iters, void (*run)(int, const char*, const StringPiece&)) argument
[all...]
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
H A DDescriptor.cs3701 [pbr::OriginalName("STRING_PIECE")] StringPiece = 2, enumerator in enum:Google.Protobuf.Reflection.FieldOptions.Types.CType

Completed in 1155 milliseconds