/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | stringpiece_unittest.cc | 45 TEST(StringPiece, Ctor) { in TEST() 48 StringPiece s10; in TEST() 56 StringPiece s20(hello); in TEST() 61 StringPiece s21(hello, 4); in TEST() 66 StringPiece s22(hello, 6); in TEST() 74 StringPiece s30(hola); in TEST() 82 StringPiece s31(hola); in TEST() 91 StringPiece s40(bonjour); in TEST() 97 // TODO(mec): StringPiece(StringPiece in TEST() [all...] |
H A D | 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 i 179 class PROTOBUF_EXPORT StringPiece { global() class 211 StringPiece() : ptr_(nullptr), length_(0) {} StringPiece() function in google::protobuf::StringPiece 213 StringPiece(const char* str) // NOLINT(runtime/explicit) StringPiece() function in google::protobuf::StringPiece 221 StringPiece( // NOLINT(runtime/explicit) StringPiece() function in google::protobuf::StringPiece 227 StringPiece(const char* offset, stringpiece_ssize_type len) StringPiece() function in google::protobuf::StringPiece [all...] |
H A D | stringpiece.cc | 42 std::ostream& operator<<(std::ostream& o, StringPiece piece) { in operator <<() 48 void StringPiece::LogFatalSizeTooBig(size_t size, const char* details) { in LogFatalSizeTooBig() 52 StringPiece::StringPiece(StringPiece x, stringpiece_ssize_type pos) in StringPiece() function in google::protobuf::StringPiece 58 StringPiece::StringPiece(StringPiece x, in StringPiece() function in google::protobuf::StringPiece 67 void StringPiece::CopyToString(std::string* target) const { in CopyToString() 71 void StringPiece [all...] |
/third_party/icu/icu4c/source/common/unicode/ |
H A D | stringpiece.h | 27 * \brief C++ API: StringPiece: Read-only byte string wrapper class. 48 * in a "const char*" or a "string" wherever a "StringPiece" is 51 * Functions or methods may use StringPiece parameters to accept either a 53 * StringPiece. 55 * Systematic usage of StringPiece is encouraged as it will reduce unnecessary 60 class U_COMMON_API StringPiece : public UMemory { class 67 * Default constructor, creates an empty StringPiece. 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function in StringPiece 77 StringPiece(const char* str); 84 StringPiece(cons function in StringPiece 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} StringPiece() function in StringPiece 98 StringPiece(const std::string& str) StringPiece() function in StringPiece 105 StringPiece(const std::u8string& str) StringPiece() function in StringPiece 140 StringPiece(T str) StringPiece() function in StringPiece 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } StringPiece() function in StringPiece 158 StringPiece(const char8_t* str, int32_t len) : StringPiece() function in StringPiece [all...] |
H A D | localebuilder.h | 107 LocaleBuilder& setLanguageTag(StringPiece tag); 122 LocaleBuilder& setLanguage(StringPiece language); 138 LocaleBuilder& setScript(StringPiece script); 157 LocaleBuilder& setRegion(StringPiece region); 178 LocaleBuilder& setVariant(StringPiece variant); 199 LocaleBuilder& setExtension(char key, StringPiece value); 203 * StringPiece is constructed with a nullptr, the keyword is removed. 220 StringPiece key, StringPiece type); 232 LocaleBuilder& addUnicodeLocaleAttribute(StringPiece attribut [all...] |
/third_party/node/deps/icu-small/source/common/unicode/ |
H A D | stringpiece.h | 27 * \brief C++ API: StringPiece: Read-only byte string wrapper class. 48 * in a "const char*" or a "string" wherever a "StringPiece" is 51 * Functions or methods may use StringPiece parameters to accept either a 53 * StringPiece. 55 * Systematic usage of StringPiece is encouraged as it will reduce unnecessary 60 class U_COMMON_API StringPiece : public UMemory { class 67 * Default constructor, creates an empty StringPiece. 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function in StringPiece 77 StringPiece(const char* str); 84 StringPiece(cons function in StringPiece 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} StringPiece() function in StringPiece 98 StringPiece(const std::string& str) StringPiece() function in StringPiece 105 StringPiece(const std::u8string& str) StringPiece() function in StringPiece 140 StringPiece(T str) StringPiece() function in StringPiece 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } StringPiece() function in StringPiece 158 StringPiece(const char8_t* str, int32_t len) : StringPiece() function in StringPiece [all...] |
H A D | localebuilder.h | 107 LocaleBuilder& setLanguageTag(StringPiece tag); 122 LocaleBuilder& setLanguage(StringPiece language); 138 LocaleBuilder& setScript(StringPiece script); 157 LocaleBuilder& setRegion(StringPiece region); 178 LocaleBuilder& setVariant(StringPiece variant); 199 LocaleBuilder& setExtension(char key, StringPiece value); 203 * StringPiece is constructed with a nullptr, the keyword is removed. 220 StringPiece key, StringPiece type); 232 LocaleBuilder& addUnicodeLocaleAttribute(StringPiece attribut [all...] |
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
H A D | stringpiece.h | 27 * \brief C++ API: StringPiece: Read-only byte string wrapper class. 48 * in a "const char*" or a "string" wherever a "StringPiece" is 51 * Functions or methods may use StringPiece parameters to accept either a 53 * StringPiece. 55 * Systematic usage of StringPiece is encouraged as it will reduce unnecessary 60 class U_COMMON_API StringPiece : public UMemory { class 67 * Default constructor, creates an empty StringPiece. 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function in StringPiece 77 StringPiece(const char* str); 84 StringPiece(cons function in StringPiece 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} StringPiece() function in StringPiece 98 StringPiece(const std::string& str) StringPiece() function in StringPiece 105 StringPiece(const std::u8string& str) StringPiece() function in StringPiece 140 StringPiece(T str) StringPiece() function in StringPiece 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } StringPiece() function in StringPiece 158 StringPiece(const char8_t* str, int32_t len) : StringPiece() function in StringPiece [all...] |
H A D | localebuilder.h | 109 LocaleBuilder& setLanguageTag(StringPiece tag); 124 LocaleBuilder& setLanguage(StringPiece language); 140 LocaleBuilder& setScript(StringPiece script); 159 LocaleBuilder& setRegion(StringPiece region); 180 LocaleBuilder& setVariant(StringPiece variant); 201 LocaleBuilder& setExtension(char key, StringPiece value); 205 * StringPiece is constructed with a nullptr, the keyword is removed. 222 StringPiece key, StringPiece type); 234 LocaleBuilder& addUnicodeLocaleAttribute(StringPiece attribut [all...] |
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/ |
H A D | string_piece.cc | 14 typedef StringPiece::size_type size_type; 16 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { in operator <<() 21 bool operator==(const StringPiece& x, const StringPiece& y) { in operator ==() 25 return StringPiece::wordmemcmp(x.data(), y.data(), x.size()) == 0; in operator ==() 28 void StringPiece::CopyToString(std::string* target) const { in CopyToString() 32 void StringPiece::AppendToString(std::string* target) const { in AppendToString() 37 size_type StringPiece::copy(char* buf, size_type n, size_type pos) const { in copy() 47 size_type StringPiece::find(const StringPiece [all...] |
H A D | string_piece.h | 8 // 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 47 // in a "const char*" or a "string" wherever a "StringPiece" is 49 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function in i18n::phonenumbers::StringPiece 50 StringPiece(const char* str) in StringPiece() function in i18n::phonenumbers::StringPiece 52 StringPiece(const std::string& str) in StringPiece() function in i18n::phonenumbers::StringPiece 54 StringPiece(cons in StringPiece() function in i18n::phonenumbers::StringPiece [all...] |
/third_party/protobuf/src/google/protobuf/util/internal/ |
H A D | json_stream_parser_test.cc | 90 util::Status RunTest(StringPiece json, int split, in RunTest() 99 StringPiece single = json.substr(i, 1); in RunTest() 109 StringPiece first = json.substr(0, split); in RunTest() 110 StringPiece rest = json.substr(split); in RunTest() 126 StringPiece json, int split, in DoTest() 137 StringPiece json, int split, StringPiece error_prefix, in DoErrorTest() 142 StringPiece error_message(result.error_message()); 162 StringPiece str = "true"; in TEST_F() 170 StringPiece st in TEST_F() [all...] |
H A D | expecting_objectwriter.h | 49 // mock.StartObject(StringPiece()) 75 MOCK_METHOD(ObjectWriter*, StartObject, (StringPiece), (override)); 77 MOCK_METHOD(ObjectWriter*, StartList, (StringPiece), (override)); 79 MOCK_METHOD(ObjectWriter*, RenderBool, (StringPiece, bool), (override)); 80 MOCK_METHOD(ObjectWriter*, RenderInt32, (StringPiece, int32), 82 MOCK_METHOD(ObjectWriter*, RenderUint32, (StringPiece, uint32), 84 MOCK_METHOD(ObjectWriter*, RenderInt64, (StringPiece, int64), 86 MOCK_METHOD(ObjectWriter*, RenderUint64, (StringPiece, uint64), 88 MOCK_METHOD(ObjectWriter*, RenderDouble, (StringPiece, double), 90 MOCK_METHOD(ObjectWriter*, RenderFloat, (StringPiece, floa [all...] |
H A D | object_writer.h | 67 virtual ObjectWriter* StartObject(StringPiece name) = 0; 73 virtual ObjectWriter* StartList(StringPiece name) = 0; 79 virtual ObjectWriter* RenderBool(StringPiece name, bool value) = 0; 82 virtual ObjectWriter* RenderInt32(StringPiece name, int32 value) = 0; 85 virtual ObjectWriter* RenderUint32(StringPiece name, uint32 value) = 0; 88 virtual ObjectWriter* RenderInt64(StringPiece name, int64 value) = 0; 91 virtual ObjectWriter* RenderUint64(StringPiece name, uint64 value) = 0; 95 virtual ObjectWriter* RenderDouble(StringPiece name, double value) = 0; 97 virtual ObjectWriter* RenderFloat(StringPiece name, float value) = 0; 99 // Renders a StringPiece valu [all...] |
H A D | protostream_objectwriter_test.cc | 552 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P() 553 StringPiece("\"Infinity\""))) in TEST_P() 555 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_UINT32"), in TEST_P() 556 StringPiece("\"Infinity\""))) in TEST_P() 558 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_SFIXED64"), in TEST_P() 559 StringPiece("\"-Infinity\""))) in TEST_P() 561 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_BOOL"), in TEST_P() 562 StringPiece("\"Infinity\""))) in TEST_P() 585 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P() 586 StringPiece("\"Na in TEST_P() [all...] |
H A D | utility.h | 63 StringPiece option_name, bool default_value); 69 StringPiece option_name, int64 default_value); 75 StringPiece option_name, double default_value); 81 StringPiece option_name, StringPiece default_value); 100 PROTOBUF_EXPORT const StringPiece GetTypeWithoutUrl( 101 StringPiece type_url); 110 StringPiece simple_type); 116 StringPiece option_name); 121 const google::protobuf::Type* type, StringPiece field_nam [all...] |
H A D | json_objectwriter.h | 92 JsonObjectWriter(StringPiece indent_string, io::CodedOutputStream* out) in JsonObjectWriter() 116 JsonObjectWriter* StartObject(StringPiece name) override; 118 JsonObjectWriter* StartList(StringPiece name) override; 120 JsonObjectWriter* RenderBool(StringPiece name, bool value) override; 121 JsonObjectWriter* RenderInt32(StringPiece name, int32 value) override; 122 JsonObjectWriter* RenderUint32(StringPiece name, uint32 value) override; 123 JsonObjectWriter* RenderInt64(StringPiece name, int64 value) override; 124 JsonObjectWriter* RenderUint64(StringPiece name, uint64 value) override; 125 JsonObjectWriter* RenderDouble(StringPiece name, double value) override; 126 JsonObjectWriter* RenderFloat(StringPiece nam [all...] |
H A D | protostream_objectsource.h | 80 util::Status NamedWriteTo(StringPiece name, 135 StringPiece name, 144 const google::protobuf::Field* field, StringPiece name, 153 StringPiece field_name, 173 StringPiece, ObjectWriter*); 182 StringPiece name, uint32 list_tag, 194 StringPiece name, 200 StringPiece name, 207 StringPiece name, ObjectWriter* ow); 210 StringPiece nam [all...] |
H A D | json_objectwriter.cc | 55 JsonObjectWriter* JsonObjectWriter::StartObject(StringPiece name) { in StartObject() 69 JsonObjectWriter* JsonObjectWriter::StartList(StringPiece name) { in StartList() 83 JsonObjectWriter* JsonObjectWriter::RenderBool(StringPiece name, in RenderBool() 88 JsonObjectWriter* JsonObjectWriter::RenderInt32(StringPiece name, in RenderInt32() 93 JsonObjectWriter* JsonObjectWriter::RenderUint32(StringPiece name, in RenderUint32() 98 JsonObjectWriter* JsonObjectWriter::RenderInt64(StringPiece name, in RenderInt64() 107 JsonObjectWriter* JsonObjectWriter::RenderUint64(StringPiece name, in RenderUint64() 116 JsonObjectWriter* JsonObjectWriter::RenderDouble(StringPiece name, in RenderDouble() 126 JsonObjectWriter* JsonObjectWriter::RenderFloat(StringPiece name, in RenderFloat() 136 JsonObjectWriter* JsonObjectWriter::RenderString(StringPiece nam [all...] |
H A D | proto_writer.h | 77 ProtoWriter* StartObject(StringPiece name) override; 79 ProtoWriter* StartList(StringPiece name) override; 81 ProtoWriter* RenderBool(StringPiece name, bool value) override { 84 ProtoWriter* RenderInt32(StringPiece name, int32 value) override { 87 ProtoWriter* RenderUint32(StringPiece name, uint32 value) override { 90 ProtoWriter* RenderInt64(StringPiece name, int64 value) override { 93 ProtoWriter* RenderUint64(StringPiece name, uint64 value) override { 96 ProtoWriter* RenderDouble(StringPiece name, double value) override { 99 ProtoWriter* RenderFloat(StringPiece name, float value) override { 102 ProtoWriter* RenderString(StringPiece nam [all...] |
H A D | type_info.cc | 62 StringPiece type_url) const override { 63 std::map<StringPiece, StatusOrType>::iterator it = 68 // Stores the string value so it can be referenced using StringPiece in the 82 StringPiece type_url) const override { 88 StringPiece type_url) const override { 89 std::map<StringPiece, StatusOrEnum>::iterator it = 94 // Stores the string value so it can be referenced using StringPiece in the 110 StringPiece camel_case_name) const override { 117 StringPiece name = FindWithDefault( 118 camel_case_name_table, camel_case_name, StringPiece()); [all...] |
H A D | error_listener.h | 60 StringPiece invalid_name, 61 StringPiece message) = 0; 65 StringPiece type_name, 66 StringPiece value) = 0; 70 StringPiece missing_name) = 0; 87 StringPiece invalid_name, 88 StringPiece message) override {} 91 StringPiece type_name, 92 StringPiece value) override {} 95 StringPiece missing_nam [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | stringpiece.cpp | 18 StringPiece::StringPiece(const char* str) in StringPiece() function in StringPiece 21 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { in StringPiece() function in StringPiece 31 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { in StringPiece() function in StringPiece 46 void StringPiece::set(const char* str) { in set() 54 int32_t StringPiece [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | stringpiece.cpp | 18 StringPiece::StringPiece(const char* str) in StringPiece() function in StringPiece 21 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { in StringPiece() function in StringPiece 31 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { in StringPiece() function in StringPiece 46 void StringPiece::set(const char* str) { in set() 54 int32_t StringPiece [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | stringpiece.cpp | 18 StringPiece::StringPiece(const char* str) in StringPiece() function in StringPiece 21 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { in StringPiece() function in StringPiece 31 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { in StringPiece() function in StringPiece 46 void StringPiece::set(const char* str) { in set() 54 int32_t StringPiece [all...] |