/external/protobuf/src/google/protobuf/stubs/ |
D | stringpiece_unittest.cc | 45 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 …]
|
D | stringpiece.h | 178 class LIBPROTOBUF_EXPORT StringPiece { 210 StringPiece() : ptr_(NULL), length_(0) {} in StringPiece() function 212 StringPiece(const char* str) // NOLINT(runtime/explicit) in StringPiece() function 220 StringPiece( // NOLINT(runtime/explicit) in StringPiece() function 227 StringPiece( // NOLINT(runtime/explicit) in StringPiece() function 234 StringPiece(const char* offset, stringpiece_ssize_type len) in StringPiece() function 241 StringPiece(StringPiece x, stringpiece_ssize_type pos); 245 StringPiece(StringPiece x, 300 int compare(StringPiece x) const { in compare() 331 bool starts_with(StringPiece x) const { in starts_with() [all …]
|
D | stringpiece.cc | 40 std::ostream& operator<<(std::ostream& o, StringPiece piece) { in operator <<() 46 void StringPiece::LogFatalSizeTooBig(size_t size, const char* details) { in LogFatalSizeTooBig() 50 StringPiece::StringPiece(StringPiece x, stringpiece_ssize_type pos) in StringPiece() function in google::protobuf::StringPiece 56 StringPiece::StringPiece(StringPiece x, in StringPiece() function in google::protobuf::StringPiece 65 void StringPiece::CopyToString(string* target) const { in CopyToString() 69 void StringPiece::AppendToString(string* target) const { in AppendToString() 73 bool StringPiece::Consume(StringPiece x) { in Consume() 82 bool StringPiece::ConsumeFromEnd(StringPiece x) { in ConsumeFromEnd() 90 stringpiece_ssize_type StringPiece::copy(char* buf, in copy() 98 bool StringPiece::contains(StringPiece s) const { in contains() [all …]
|
/external/tensorflow/tensorflow/core/lib/strings/ |
D | str_util.h | 32 string CEscape(StringPiece src); 41 bool CUnescape(StringPiece source, string* dest, string* error); 48 size_t RemoveLeadingWhitespace(StringPiece* text); 52 size_t RemoveTrailingWhitespace(StringPiece* text); 56 size_t RemoveWhitespaceContext(StringPiece* text); 62 bool ConsumeLeadingDigits(StringPiece* s, uint64* val); 67 bool ConsumeNonWhitespace(StringPiece* s, StringPiece* val); 71 bool ConsumePrefix(StringPiece* s, StringPiece expected); 75 bool ConsumeSuffix(StringPiece* s, StringPiece expected); 78 string Lowercase(StringPiece s); [all …]
|
D | str_util.cc | 31 string CEscape(StringPiece src) { in CEscape() 90 bool CUnescapeInternal(StringPiece source, string* dest, in CUnescapeInternal() 220 bool SplitAndParseAsInts(StringPiece text, char delim, in SplitAndParseAsInts() 221 std::function<bool(StringPiece, T*)> converter, in SplitAndParseAsInts() argument 235 bool CUnescape(StringPiece source, string* dest, string* error) { in CUnescape() 253 string Lowercase(StringPiece s) { in Lowercase() 262 string Uppercase(StringPiece s) { in Uppercase() 270 string ArgDefCase(StringPiece s) { in ArgDefCase() 322 void TitlecaseString(string* s, StringPiece delimiters) { in TitlecaseString() 328 upper = (delimiters.find(*ss) != StringPiece::npos); in TitlecaseString() [all …]
|
D | numbers.h | 87 StringPiece Uint64ToHexString(uint64 v, char* buf); 92 bool HexStringToUint64(const StringPiece& s, uint64* v); 97 bool safe_strto32(StringPiece str, int32* value); 102 bool safe_strtou32(StringPiece str, uint32* value); 107 bool safe_strto64(StringPiece str, int64* value); 112 bool safe_strtou64(StringPiece str, uint64* value); 118 bool safe_strtof(StringPiece str, float* value); 124 bool safe_strtod(StringPiece str, double* value); 126 inline bool ProtoParseNumeric(StringPiece s, int32* value) { in ProtoParseNumeric() 130 inline bool ProtoParseNumeric(StringPiece s, uint32* value) { in ProtoParseNumeric() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | node_def_util.h | 70 void AddNodeAttr(StringPiece name, const AttrValue& value, NodeDef* node_def); 71 void AddNodeAttr(StringPiece name, StringPiece value, NodeDef* node_def); 72 void AddNodeAttr(StringPiece name, const char* value, NodeDef* node_def); 73 void AddNodeAttr(StringPiece name, int32 value, NodeDef* node_def); 74 void AddNodeAttr(StringPiece name, int64 value, NodeDef* node_def); 75 void AddNodeAttr(StringPiece name, float value, NodeDef* node_def); 76 void AddNodeAttr(StringPiece name, double value, NodeDef* node_def); 77 void AddNodeAttr(StringPiece name, bool value, NodeDef* node_def); 78 void AddNodeAttr(StringPiece name, DataType value, NodeDef* node_def); 79 void AddNodeAttr(StringPiece name, const PartialTensorShape& value, [all …]
|
D | node_def_builder.h | 54 NodeOut(StringPiece n, int i, DataType dt); 56 void Reset(StringPiece n, int i, DataType dt); 66 NodeDefBuilder(StringPiece name, StringPiece op_name, 69 NodeDefBuilder(StringPiece name, StringPiece op_name, 72 NodeDefBuilder(StringPiece name, const OpDef* op_def); 78 NodeDefBuilder& Input(StringPiece src_node, int src_index, DataType dt); 88 NodeDefBuilder& ControlInput(StringPiece src_node); 91 NodeDefBuilder& Device(StringPiece device_spec); 95 NodeDefBuilder& Attr(StringPiece name, const AttrValue& value); 96 NodeDefBuilder& Attr(StringPiece name, StringPiece value); [all …]
|
D | op_def_builder.cc | 36 string AttrError(StringPiece orig, const string& op_name) { in AttrError() 40 bool ConsumeAttrName(StringPiece* sp, StringPiece* out) { in ConsumeAttrName() 51 bool ConsumeListPrefix(StringPiece* sp) { in ConsumeListPrefix() 60 bool ConsumeQuotedString(char quote_ch, StringPiece* sp, StringPiece* out) { in ConsumeQuotedString() 72 bool ConsumeAttrType(StringPiece* sp, StringPiece* out) { in ConsumeAttrType() 80 bool ConsumeAttrNumber(StringPiece* sp, int64* out) { in ConsumeAttrNumber() 82 StringPiece match; in ConsumeAttrNumber() 83 StringPiece remaining; in ConsumeAttrNumber() 113 bool ConsumeCompoundAttrType(StringPiece* sp, StringPiece* out) { in ConsumeCompoundAttrType() 120 *out = StringPiece(capture_begin, sp->begin() - capture_begin); in ConsumeCompoundAttrType() [all …]
|
/external/tensorflow/tensorflow/core/grappler/optimizers/data/ |
D | graph_test_utils.h | 27 NodeDef MakeFilterNode(StringPiece name, StringPiece input_node_name, 28 StringPiece function_name = "IsZero"); 31 NodeDef MakeMapNode(StringPiece name, StringPiece input_node_name, 32 StringPiece function_name = "XTimesTwo"); 35 NodeDef MakeMapAndBatchNode(StringPiece name, StringPiece input_node_name, 36 StringPiece batch_size_node_name, 37 StringPiece num_parallel_calls_node_name, 38 StringPiece drop_remainder_node_name, 39 StringPiece function_name = "XTimesTwo"); 42 NodeDef MakeParallelInterleaveNode(StringPiece name, [all …]
|
D | graph_test_utils.cc | 28 NodeDef MakeFilterNode(StringPiece name, StringPiece input_node_name, in MakeFilterNode() 29 StringPiece function_name) { in MakeFilterNode() 38 NodeDef MakeMapAndBatchNode(StringPiece name, StringPiece input_node_name, in MakeMapAndBatchNode() 39 StringPiece batch_size_node_name, in MakeMapAndBatchNode() 40 StringPiece num_parallel_calls_node_name, in MakeMapAndBatchNode() 41 StringPiece drop_remainder_node_name, in MakeMapAndBatchNode() 42 StringPiece function_name) { in MakeMapAndBatchNode() 53 NodeDef MakeMapNode(StringPiece name, StringPiece input_node_name, in MakeMapNode() 54 StringPiece function_name) { in MakeMapNode() 63 NodeDef MakeParallelInterleaveNode(StringPiece name, in MakeParallelInterleaveNode() [all …]
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | path.cc | 38 string JoinPathImpl(std::initializer_list<StringPiece> paths) { in JoinPathImpl() 41 for (StringPiece path : paths) { in JoinPathImpl() 71 std::pair<StringPiece, StringPiece> SplitPath(StringPiece uri) { in SplitPath() 72 StringPiece scheme, host, path; in SplitPath() 77 if (pos == StringPiece::npos) pos = path.rfind('\\'); in SplitPath() 80 if (pos == StringPiece::npos) in SplitPath() 81 return std::make_pair(StringPiece(uri.begin(), host.end() - uri.begin()), in SplitPath() 87 StringPiece(uri.begin(), path.begin() + 1 - uri.begin()), in SplitPath() 88 StringPiece(path.data() + 1, path.size() - 1)); in SplitPath() 91 StringPiece(uri.begin(), path.begin() + pos - uri.begin()), in SplitPath() [all …]
|
D | path.h | 25 string JoinPathImpl(std::initializer_list<tensorflow::StringPiece> paths); 52 bool IsAbsolutePath(tensorflow::StringPiece path); 57 tensorflow::StringPiece Dirname(tensorflow::StringPiece path); 61 tensorflow::StringPiece Basename(tensorflow::StringPiece path); 65 tensorflow::StringPiece Extension(tensorflow::StringPiece path); 74 string CleanPath(tensorflow::StringPiece path); 84 void ParseURI(tensorflow::StringPiece uri, tensorflow::StringPiece* scheme, 85 tensorflow::StringPiece* host, tensorflow::StringPiece* path); 89 string CreateURI(tensorflow::StringPiece scheme, tensorflow::StringPiece host, 90 tensorflow::StringPiece path);
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | json_stream_parser_test.cc | 89 util::Status RunTest(StringPiece json, int split, bool coerce_utf8 = false) { in RunTest() 96 StringPiece single = json.substr(i, 1); in RunTest() 106 StringPiece first = json.substr(0, split); in RunTest() 107 StringPiece rest = json.substr(split); in RunTest() 119 void DoTest(StringPiece json, int split, bool coerce_utf8 = false) { in DoTest() 127 void DoErrorTest(StringPiece json, int split, StringPiece error_prefix, in DoErrorTest() 131 StringPiece error_message(result.error_message()); in DoErrorTest() 145 StringPiece str = "true"; in TEST_F() 153 StringPiece str = "false"; in TEST_F() 161 StringPiece str = "null"; in TEST_F() [all …]
|
D | protostream_objectwriter_test.cc | 375 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P() 376 StringPiece("\"Infinity\""))) in TEST_P() 378 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_UINT32"), in TEST_P() 379 StringPiece("\"Infinity\""))) in TEST_P() 381 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_SFIXED64"), in TEST_P() 382 StringPiece("\"-Infinity\""))) in TEST_P() 384 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_BOOL"), in TEST_P() 385 StringPiece("\"Infinity\""))) in TEST_P() 408 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P() 409 StringPiece("\"NaN\""))) in TEST_P() [all …]
|
D | expecting_objectwriter.h | 73 MOCK_METHOD1(StartObject, ObjectWriter*(StringPiece)); 75 MOCK_METHOD1(StartList, ObjectWriter*(StringPiece)); 77 MOCK_METHOD2(RenderBool, ObjectWriter*(StringPiece, bool)); 78 MOCK_METHOD2(RenderInt32, ObjectWriter*(StringPiece, int32)); 79 MOCK_METHOD2(RenderUint32, ObjectWriter*(StringPiece, uint32)); 80 MOCK_METHOD2(RenderInt64, ObjectWriter*(StringPiece, int64)); 81 MOCK_METHOD2(RenderUint64, ObjectWriter*(StringPiece, uint64)); 82 MOCK_METHOD2(RenderDouble, ObjectWriter*(StringPiece, double)); 83 MOCK_METHOD2(RenderFloat, ObjectWriter*(StringPiece, float)); 84 MOCK_METHOD2(RenderString, ObjectWriter*(StringPiece, StringPiece)); [all …]
|
D | object_writer.h | 63 virtual ObjectWriter* StartObject(StringPiece name) = 0; 69 virtual ObjectWriter* StartList(StringPiece name) = 0; 75 virtual ObjectWriter* RenderBool(StringPiece name, bool value) = 0; 78 virtual ObjectWriter* RenderInt32(StringPiece name, int32 value) = 0; 81 virtual ObjectWriter* RenderUint32(StringPiece name, uint32 value) = 0; 84 virtual ObjectWriter* RenderInt64(StringPiece name, int64 value) = 0; 87 virtual ObjectWriter* RenderUint64(StringPiece name, uint64 value) = 0; 90 virtual ObjectWriter* RenderDouble(StringPiece name, double value) = 0; 93 virtual ObjectWriter* RenderFloat(StringPiece name, float value) = 0; 96 virtual ObjectWriter* RenderString(StringPiece name, StringPiece value) = 0; [all …]
|
D | protostream_objectsource.h | 83 virtual util::Status NamedWriteTo(StringPiece name, ObjectWriter* ow) const; 127 StringPiece name, const uint32 end_tag, 138 StringPiece, ObjectWriter*); 151 StringPiece name, uint32 list_tag, 157 StringPiece name, uint32 list_tag, 169 StringPiece name, ObjectWriter* ow); 174 StringPiece name, ObjectWriter* ow); 180 StringPiece name, ObjectWriter* ow); 183 StringPiece name, ObjectWriter* ow); 186 StringPiece name, ObjectWriter* ow); [all …]
|
D | json_objectwriter.h | 90 JsonObjectWriter(StringPiece indent_string, in JsonObjectWriter() 100 virtual JsonObjectWriter* StartObject(StringPiece name); 102 virtual JsonObjectWriter* StartList(StringPiece name); 104 virtual JsonObjectWriter* RenderBool(StringPiece name, bool value); 105 virtual JsonObjectWriter* RenderInt32(StringPiece name, int32 value); 106 virtual JsonObjectWriter* RenderUint32(StringPiece name, uint32 value); 107 virtual JsonObjectWriter* RenderInt64(StringPiece name, int64 value); 108 virtual JsonObjectWriter* RenderUint64(StringPiece name, uint64 value); 109 virtual JsonObjectWriter* RenderDouble(StringPiece name, double value); 110 virtual JsonObjectWriter* RenderFloat(StringPiece name, float value); [all …]
|
D | proto_writer.h | 83 virtual ProtoWriter* StartObject(StringPiece name); 85 virtual ProtoWriter* StartList(StringPiece name); 87 virtual ProtoWriter* RenderBool(StringPiece name, bool value) { in RenderBool() 90 virtual ProtoWriter* RenderInt32(StringPiece name, int32 value) { in RenderInt32() 93 virtual ProtoWriter* RenderUint32(StringPiece name, uint32 value) { in RenderUint32() 96 virtual ProtoWriter* RenderInt64(StringPiece name, int64 value) { in RenderInt64() 99 virtual ProtoWriter* RenderUint64(StringPiece name, uint64 value) { in RenderUint64() 102 virtual ProtoWriter* RenderDouble(StringPiece name, double value) { in RenderDouble() 105 virtual ProtoWriter* RenderFloat(StringPiece name, float value) { in RenderFloat() 108 virtual ProtoWriter* RenderString(StringPiece name, StringPiece value) { in RenderString() [all …]
|
/external/libchrome/base/ |
D | values.h | 128 explicit Value(StringPiece in_string); 180 Value* FindKey(StringPiece key); 181 const Value* FindKey(StringPiece key) const; 192 Value* FindKeyOfType(StringPiece key, Type type); 193 const Value* FindKeyOfType(StringPiece key, Type type) const; 202 Value* SetKey(StringPiece key, Value value); 216 bool RemoveKey(StringPiece key); 236 Value* FindPath(std::initializer_list<StringPiece> path); 237 Value* FindPath(span<const StringPiece> path); 238 const Value* FindPath(std::initializer_list<StringPiece> path) const; [all …]
|
/external/libtextclassifier/utils/strings/ |
D | stringpiece.h | 28 class StringPiece { 30 StringPiece() : StringPiece(nullptr, 0) {} in StringPiece() function 32 StringPiece(const char *str) // NOLINT(runtime/explicit) in StringPiece() function 35 StringPiece(const char *start, size_t size) : start_(start), size_(size) {} in StringPiece() function 39 StringPiece(const std::string &s) // NOLINT(runtime/explicit) in StringPiece() function 40 : StringPiece(s.data(), s.size()) {} in StringPiece() 42 StringPiece(const std::string &s, int offset, int len) in StringPiece() function 43 : StringPiece(s.data() + offset, len) {} in StringPiece() 60 bool EndsWith(StringPiece suffix) const { in EndsWith() 67 bool StartsWith(StringPiece prefix) const { in StartsWith() [all …]
|
/external/libchrome/base/strings/ |
D | string_util.h | 108 BASE_EXPORT std::string ToLowerASCII(StringPiece str); 112 BASE_EXPORT std::string ToUpperASCII(StringPiece str); 137 BASE_EXPORT int CompareCaseInsensitiveASCII(StringPiece a, StringPiece b); 143 BASE_EXPORT bool EqualsCaseInsensitiveASCII(StringPiece a, StringPiece b); 180 StringPiece remove_chars, 193 StringPiece replace_chars, 214 StringPiece trim_chars, 222 BASE_EXPORT StringPiece TrimString(StringPiece input, 223 StringPiece trim_chars, 247 BASE_EXPORT StringPiece TrimWhitespaceASCII(StringPiece input, [all …]
|
D | string_split.cc | 28 std::string PieceToOutputType<std::string, std::string>(StringPiece piece) { in PieceToOutputType() 41 template<> StringPiece WhitespaceForType<std::string>() { in WhitespaceForType() 51 size_t FindFirstOf(StringPiece piece, char c, size_t pos) { in FindFirstOf() 57 size_t FindFirstOf(StringPiece piece, StringPiece one_of, size_t pos) { in FindFirstOf() 104 bool AppendStringKeyValue(StringPiece input, in AppendStringKeyValue() 121 StringPiece remains = input.substr(end_key_pos, input.size() - end_key_pos); in AppendStringKeyValue() 123 if (begin_value_pos == StringPiece::npos) { in AppendStringKeyValue() 160 std::vector<std::string> SplitString(StringPiece input, in SplitString() 161 StringPiece separators, in SplitString() 168 return SplitStringT<std::string, std::string, StringPiece>( in SplitString() [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | stringpiece.h | 54 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 …]
|