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

/external/chromium_org/net/spdy/
H A Dspdy_pinnable_buffer_piece.h35 operator base::StringPiece() const {
36 return base::StringPiece(buffer_, length_);
/external/chromium_org/third_party/icu/source/common/
H A Dstringpiece.cpp16 StringPiece::StringPiece(const char* str) function in class:StringPiece
19 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { function in class:StringPiece
29 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { function in class:StringPiece
44 void StringPiece::set(const char* str) {
53 operator==(const StringPiece
[all...]
/external/icu/icu4c/source/common/
H A Dstringpiece.cpp16 StringPiece::StringPiece(const char* str) function in class:StringPiece
19 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { function in class:StringPiece
29 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { function in class:StringPiece
44 void StringPiece::set(const char* str) {
53 operator==(const StringPiece
[all...]
/external/chromium_org/third_party/icu/source/common/unicode/
H A Dstringpiece.h25 * \brief C++ API: StringPiece: Read-only byte string wrapper class.
40 * in a "const char*" or a "string" wherever a "StringPiece" is
43 * Functions or methods may use const StringPiece& parameters to accept either
45 * a StringPiece.
47 * Systematic usage of StringPiece is encouraged as it will reduce unnecessary
52 class U_COMMON_API StringPiece : public UMemory { class in inherits:UMemory
59 * Default constructor, creates an empty StringPiece.
62 StringPiece() : ptr_(NULL), length_(0) { } function in class:StringPiece
68 StringPiece(const char* str);
74 StringPiece(cons function in class:StringPiece
83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } function in class:StringPiece
[all...]
/external/icu/icu4c/source/common/unicode/
H A Dstringpiece.h25 * \brief C++ API: StringPiece: Read-only byte string wrapper class.
40 * in a "const char*" or a "string" wherever a "StringPiece" is
43 * Functions or methods may use const StringPiece& parameters to accept either
45 * a StringPiece.
47 * Systematic usage of StringPiece is encouraged as it will reduce unnecessary
52 class U_COMMON_API StringPiece : public UMemory { class in inherits:UMemory
59 * Default constructor, creates an empty StringPiece.
62 StringPiece() : ptr_(NULL), length_(0) { } function in class:StringPiece
68 StringPiece(const char* str);
74 StringPiece(cons function in class:StringPiece
83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } function in class:StringPiece
[all...]
/external/chromium_org/base/json/
H A Djson_value_converter.h72 // and specify a function to convert a StringPiece to your type.
73 // bool ConvertFunc(const StringPiece& s, YourEnum* result) {
228 typedef bool(*ConvertFunc)(const StringPiece& value, FieldType* field);
420 bool (*convert_func)(const StringPiece&, FieldType*)) {
417 RegisterCustomField( const std::string& field_name, FieldType StructType::* field, bool (*convert_func)(const StringPiece&, FieldType*)) argument
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/
H A Dstring_piece.h8 // Functions or methods may use const StringPiece& parameters to accept either
10 // a StringPiece. The implicit conversion means that it is often appropriate
12 // StringPiece as would be appropriate for most other Google classes.
14 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary
29 class StringPiece { class in namespace:i18n::phonenumbers
47 // in a "const char*" or a "string" wherever a "StringPiece" is
49 StringPiece() : ptr_(NULL), length_(0) { } function in class:i18n::phonenumbers::StringPiece
50 StringPiece(const char* str) function in class:i18n::phonenumbers::StringPiece
52 StringPiece(const std::string& str) function in class:i18n::phonenumbers::StringPiece
54 StringPiece(cons function in class:i18n::phonenumbers::StringPiece
[all...]
/external/chromium_org/third_party/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
32 class StringPiece { class in namespace:re2
39 // in a "const char*" or a "string" wherever a "StringPiece" is
41 StringPiece() : ptr_(NULL), length_(0) { } function in class:re2::StringPiece
42 StringPiece(const char* str) function in class:re2::StringPiece
44 StringPiece(const std::string& str) function in class:re2::StringPiece
46 StringPiece(cons function in class:re2::StringPiece
[all...]
/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/chromium_org/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
22 // StringPiece16 is similar to StringPiece but for base::string16 instead of
24 // from basic_string as in StringPiece, but this can be changed if these
44 typedef BasicStringPiece<std::string> StringPiece; typedef in namespace:base
49 // Many of the StringPiece function
[all...]
/external/chromium_org/third_party/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/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...]

Completed in 543 milliseconds