Home
last modified time | relevance | path

Searched refs:StringPiece (Results 1 – 25 of 460) sorted by relevance

12345678910>>...19

/third_party/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc45 TEST(StringPiece, Ctor) { in TEST() argument
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()
102 TEST(StringPiece, STLComparator) { in TEST() argument
107 StringPiece p1(s1); in TEST()
[all …]
Dstringpiece.cc42 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::AppendToString(std::string* target) const { in AppendToString()
75 bool StringPiece::Consume(StringPiece x) { in Consume()
84 bool StringPiece::ConsumeFromEnd(StringPiece x) { in ConsumeFromEnd()
92 stringpiece_ssize_type StringPiece::copy(char* buf, in copy()
100 bool StringPiece::contains(StringPiece s) const { in contains()
[all …]
Dstringpiece.h179 class PROTOBUF_EXPORT StringPiece {
211 StringPiece() : ptr_(nullptr), length_(0) {} in StringPiece() function
213 StringPiece(const char* str) // NOLINT(runtime/explicit) in StringPiece() function
221 StringPiece( // NOLINT(runtime/explicit) in StringPiece() function
227 StringPiece(const char* offset, stringpiece_ssize_type len) in StringPiece() function
234 StringPiece(StringPiece x, stringpiece_ssize_type pos);
238 StringPiece(StringPiece x,
293 int compare(StringPiece x) const { in compare()
320 bool starts_with(StringPiece x) const { in starts_with()
325 bool ends_with(StringPiece x) const { in ends_with()
[all …]
/third_party/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser_test.cc90 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 str = "false"; in TEST_F()
178 StringPiece str = "null"; in TEST_F()
[all …]
Dexpecting_objectwriter.h75 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, float),
93 (StringPiece, StringPiece), (override));
[all …]
Dobject_writer.h67 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;
100 virtual ObjectWriter* RenderString(StringPiece name,
[all …]
Dprotostream_objectwriter_test.cc552 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("\"NaN\""))) in TEST_P()
[all …]
Dprotostream_objectsource.h80 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 name, ObjectWriter* ow);
[all …]
Dutility.h63 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_name);
126 const google::protobuf::Type* type, StringPiece json_name);
[all …]
Djson_objectwriter.h92 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 name, float value) override;
[all …]
Djson_objectwriter.cc55 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 name, in RenderString()
[all …]
Dproto_writer.h77 ProtoWriter* StartObject(StringPiece name) override;
79 ProtoWriter* StartList(StringPiece name) override;
81 ProtoWriter* RenderBool(StringPiece name, bool value) override { in RenderBool()
84 ProtoWriter* RenderInt32(StringPiece name, int32 value) override { in RenderInt32()
87 ProtoWriter* RenderUint32(StringPiece name, uint32 value) override { in RenderUint32()
90 ProtoWriter* RenderInt64(StringPiece name, int64 value) override { in RenderInt64()
93 ProtoWriter* RenderUint64(StringPiece name, uint64 value) override { in RenderUint64()
96 ProtoWriter* RenderDouble(StringPiece name, double value) override { in RenderDouble()
99 ProtoWriter* RenderFloat(StringPiece name, float value) override { in RenderFloat()
102 ProtoWriter* RenderString(StringPiece name, in RenderString()
[all …]
Dtype_info.cc62 StringPiece type_url) const override { in ResolveTypeUrl()
63 std::map<StringPiece, StatusOrType>::iterator it = in ResolveTypeUrl()
82 StringPiece type_url) const override { in GetTypeByTypeUrl()
88 StringPiece type_url) const override { in GetEnumByTypeUrl()
89 std::map<StringPiece, StatusOrEnum>::iterator it = in GetEnumByTypeUrl()
110 StringPiece camel_case_name) const override { in FindField()
117 StringPiece name = FindWithDefault( in FindField()
118 camel_case_name_table, camel_case_name, StringPiece()); in FindField()
129 typedef std::map<StringPiece, StringPiece> CamelCaseNameTable;
132 static void DeleteCachedTypes(std::map<StringPiece, T>* cached_types) { in DeleteCachedTypes() argument
[all …]
Derror_listener.h60 StringPiece invalid_name,
61 StringPiece message) = 0;
65 StringPiece type_name,
66 StringPiece value) = 0;
70 StringPiece missing_name) = 0;
87 StringPiece invalid_name, in InvalidName()
88 StringPiece message) override {} in InvalidName()
91 StringPiece type_name, in InvalidValue()
92 StringPiece value) override {} in InvalidValue()
95 StringPiece missing_name) override {} in MissingField()
/third_party/icu/icu4c/source/common/unicode/
Dstringpiece.h60 class U_COMMON_API StringPiece : public UMemory {
70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function
77 StringPiece(const char* str);
84 StringPiece(const char8_t* str) : StringPiece(reinterpret_cast<const char*>(str)) {} in StringPiece() function
92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() function
98 StringPiece(const std::string& str) in StringPiece() function
105 StringPiece(const std::u8string& str) in StringPiece() function
140 StringPiece(T str) in StringPiece() function
150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function
158 StringPiece(const char8_t* str, int32_t len) : in StringPiece() function
[all …]
/third_party/skia/third_party/externals/icu/source/common/unicode/
Dstringpiece.h60 class U_COMMON_API StringPiece : public UMemory {
70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function
77 StringPiece(const char* str);
84 StringPiece(const char8_t* str) : StringPiece(reinterpret_cast<const char*>(str)) {} in StringPiece() function
92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() function
98 StringPiece(const std::string& str) in StringPiece() function
105 StringPiece(const std::u8string& str) in StringPiece() function
140 StringPiece(T str) in StringPiece() function
150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function
158 StringPiece(const char8_t* str, int32_t len) : in StringPiece() function
[all …]
/third_party/node/deps/icu-small/source/common/unicode/
Dstringpiece.h60 class U_COMMON_API StringPiece : public UMemory {
70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function
77 StringPiece(const char* str);
84 StringPiece(const char8_t* str) : StringPiece(reinterpret_cast<const char*>(str)) {} in StringPiece() function
92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() function
98 StringPiece(const std::string& str) in StringPiece() function
105 StringPiece(const std::u8string& str) in StringPiece() function
140 StringPiece(T str) in StringPiece() function
150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function
158 StringPiece(const char8_t* str, int32_t len) : in StringPiece() function
[all …]
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/
Dstring_piece.h29 class StringPiece {
49 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function
50 StringPiece(const char* str) in StringPiece() function
52 StringPiece(const std::string& str) in StringPiece() function
54 StringPiece(const char* offset, size_type len) in StringPiece() function
94 int compare(const StringPiece& x) const { in compare()
113 bool starts_with(const StringPiece& x) const { in starts_with()
119 bool ends_with(const StringPiece& x) const { in ends_with()
138 size_type find(const StringPiece& s, size_type pos = 0) const;
140 size_type rfind(const StringPiece& s, size_type pos = npos) const;
[all …]
Dstring_piece.cc14 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()
43 size_type StringPiece::find(const StringPiece& s, size_type pos) const { in find()
53 size_type StringPiece::find(char c, size_type pos) const { in find()
61 size_type StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/unicode/
Dstringpiece.h54 class U_COMMON_API StringPiece : public UMemory {
64 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function
70 StringPiece(const char* str);
75 StringPiece(const std::string& str) in StringPiece() function
83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function
90 StringPiece(const StringPiece& x, int32_t pos);
99 StringPiece(const StringPiece& x, int32_t pos, int32_t len);
196 StringPiece substr(int32_t pos, int32_t len = npos) const {
197 return StringPiece(*this, pos, len);
209 operator==(const StringPiece& x, const StringPiece& y);
[all …]
/third_party/node/deps/icu-small/source/common/
Dstringpiece.cpp18 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::find(StringPiece needle, int32_t offset) { in find()
73 int32_t StringPiece::compare(StringPiece other) { in compare()
96 operator==(const StringPiece& x, const StringPiece& y) { in operator ==()
114 const int32_t StringPiece::npos = 0x7fffffff;
/third_party/icu/icu4c/source/common/
Dstringpiece.cpp18 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::find(StringPiece needle, int32_t offset) { in find()
73 int32_t StringPiece::compare(StringPiece other) { in compare()
96 operator==(const StringPiece& x, const StringPiece& y) { in operator ==()
114 const int32_t StringPiece::npos = 0x7fffffff;
/third_party/skia/third_party/externals/icu/source/common/
Dstringpiece.cpp18 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::find(StringPiece needle, int32_t offset) { in find()
73 int32_t StringPiece::compare(StringPiece other) { in compare()
96 operator==(const StringPiece& x, const StringPiece& y) { in operator ==()
114 const int32_t StringPiece::npos = 0x7fffffff;
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dstringpiece.cpp18 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()
55 operator==(const StringPiece& x, const StringPiece& y) { in operator ==()
73 const int32_t StringPiece::npos = 0x7fffffff;
/third_party/ninja/src/
Dhash_map.h61 struct hash<StringPiece> {
62 typedef StringPiece argument_type;
65 size_t operator()(StringPiece key) const {
77 struct StringPieceCmp : public hash_compare<StringPiece> {
78 size_t operator()(const StringPiece& key) const {
81 bool operator()(const StringPiece& a, const StringPiece& b) const {
100 struct hash<StringPiece> {
101 size_t operator()(StringPiece key) const {
115 typedef std::unordered_map<StringPiece, V> Type;
117 typedef hash_map<StringPiece, V, StringPieceCmp> Type;
[all …]

12345678910>>...19