/external/tensorflow/tensorflow/core/grappler/optimizers/data/ |
D | graph_test_utils.h | 27 NodeDef MakeBatchV2Node(StringPiece name, StringPiece input_node_name, 28 StringPiece batch_size_node_name, 29 StringPiece drop_remainder_node_name); 32 NodeDef MakeCacheV2Node(StringPiece name, StringPiece input_node_name, 33 StringPiece filename_node_name, 34 StringPiece cache_node_name); 37 NodeDef MakeFilterNode(StringPiece name, StringPiece input_node_name, 38 StringPiece function_name = "IsZero"); 41 NodeDef MakeMapNode(StringPiece name, StringPiece input_node_name, 42 StringPiece function_name = "XTimesTwo"); [all …]
|
D | graph_test_utils.cc | 28 NodeDef MakeBatchV2Node(StringPiece name, StringPiece input_node_name, in MakeBatchV2Node() 29 StringPiece batch_size_node_name, in MakeBatchV2Node() 30 StringPiece drop_remainder_node_name) { in MakeBatchV2Node() 40 NodeDef MakeCacheV2Node(StringPiece name, StringPiece input_node_name, in MakeCacheV2Node() 41 StringPiece filename_node_name, in MakeCacheV2Node() 42 StringPiece cache_node_name) { in MakeCacheV2Node() 56 NodeDef MakeFilterNode(StringPiece name, StringPiece input_node_name, in MakeFilterNode() 57 StringPiece function_name) { in MakeFilterNode() 66 NodeDef MakeMapAndBatchNode(StringPiece name, StringPiece input_node_name, in MakeMapAndBatchNode() 67 StringPiece batch_size_node_name, in MakeMapAndBatchNode() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | node_def_util.h | 69 std::string SummarizeAttrsHelper(AttrSlice attrs, StringPiece device); 76 StringPiece node_name, bool has_experimental_debug_info, 83 void AddNodeAttr(StringPiece name, const AttrValue& value, NodeDef* node_def); 84 void AddNodeAttr(StringPiece name, AttrValue&& value, NodeDef* node_def); 85 void AddNodeAttr(StringPiece name, StringPiece value, NodeDef* node_def); 86 void AddNodeAttr(StringPiece name, const char* value, NodeDef* node_def); 87 void AddNodeAttr(StringPiece name, int32 value, NodeDef* node_def); 88 void AddNodeAttr(StringPiece name, int64 value, NodeDef* node_def); 89 void AddNodeAttr(StringPiece name, float value, NodeDef* node_def); 90 void AddNodeAttr(StringPiece name, double value, NodeDef* node_def); [all …]
|
D | node_def_builder.h | 56 NodeOut(StringPiece n, int i, DataType dt); 58 void Reset(StringPiece n, int i, DataType dt); 68 NodeDefBuilder(StringPiece name, StringPiece op_name, 71 NodeDefBuilder(StringPiece name, StringPiece op_name, 74 NodeDefBuilder(StringPiece name, const OpDef* op_def); 80 NodeDefBuilder& Input(StringPiece src_node, int src_index, DataType dt); 90 NodeDefBuilder& ControlInput(StringPiece src_node); 93 NodeDefBuilder& Device(StringPiece device_spec); 97 NodeDefBuilder& Attr(StringPiece name, const AttrValue& value); 98 NodeDefBuilder& Attr(StringPiece name, AttrValue&& value); [all …]
|
/external/tensorflow/tensorflow/core/platform/ |
D | str_util.h | 34 std::string CEscape(StringPiece src); 43 bool CUnescape(StringPiece source, std::string* dest, std::string* error); 50 size_t RemoveLeadingWhitespace(StringPiece* text); 54 size_t RemoveTrailingWhitespace(StringPiece* text); 58 size_t RemoveWhitespaceContext(StringPiece* text); 64 bool ConsumeLeadingDigits(StringPiece* s, uint64* val); 69 bool ConsumeNonWhitespace(StringPiece* s, StringPiece* val); 73 bool ConsumePrefix(StringPiece* s, StringPiece expected); 77 bool ConsumeSuffix(StringPiece* s, StringPiece expected); 82 TF_MUST_USE_RESULT StringPiece StripPrefix(StringPiece s, StringPiece expected); [all …]
|
D | str_util.cc | 32 string CEscape(StringPiece src) { return absl::CEscape(src); } in CEscape() 34 bool CUnescape(StringPiece source, string* dest, string* error) { in CUnescape() 42 size_t RemoveLeadingWhitespace(StringPiece* text) { in RemoveLeadingWhitespace() 49 size_t RemoveTrailingWhitespace(StringPiece* text) { in RemoveTrailingWhitespace() 56 size_t RemoveWhitespaceContext(StringPiece* text) { in RemoveWhitespaceContext() 63 bool ConsumeLeadingDigits(StringPiece* s, uint64* val) { in ConsumeLeadingDigits() 88 bool ConsumeNonWhitespace(StringPiece* s, StringPiece* val) { in ConsumeNonWhitespace() 98 *val = StringPiece(s->data(), n); in ConsumeNonWhitespace() 102 *val = StringPiece(); in ConsumeNonWhitespace() 107 bool ConsumePrefix(StringPiece* s, StringPiece expected) { in ConsumePrefix() [all …]
|
D | path.cc | 67 string JoinPathImpl(std::initializer_list<StringPiece> paths) { in JoinPathImpl() 70 for (StringPiece path : paths) { in JoinPathImpl() 94 std::pair<StringPiece, StringPiece> SplitPath(StringPiece uri) { in SplitPath() 95 StringPiece scheme, host, path; in SplitPath() 100 if (pos == StringPiece::npos) pos = path.rfind('\\'); in SplitPath() 103 if (pos == StringPiece::npos) in SplitPath() 104 return std::make_pair(StringPiece(uri.begin(), host.end() - uri.begin()), in SplitPath() 110 StringPiece(uri.begin(), path.begin() + 1 - uri.begin()), in SplitPath() 111 StringPiece(path.data() + 1, path.size() - 1)); in SplitPath() 114 StringPiece(uri.begin(), path.begin() + pos - uri.begin()), in SplitPath() [all …]
|
D | path.h | 25 std::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); 83 std::string CleanPath(tensorflow::StringPiece path); 93 void ParseURI(tensorflow::StringPiece uri, tensorflow::StringPiece* scheme, 94 tensorflow::StringPiece* host, tensorflow::StringPiece* path); 98 std::string CreateURI(tensorflow::StringPiece scheme, 99 tensorflow::StringPiece host, [all …]
|
D | file_system.cc | 64 StringPiece scheme, host, path; in TranslateName() 184 StringPiece scheme, host, remaining_dir; in RecursivelyCreateDir() 186 std::vector<StringPiece> sub_dirs; in RecursivelyCreateDir() 218 for (const StringPiece sub_dir : sub_dirs) { in RecursivelyCreateDir() 235 string FileSystem::JoinPathImpl(std::initializer_list<StringPiece> paths) { in JoinPathImpl() 238 for (StringPiece path : paths) { in JoinPathImpl() 264 std::pair<StringPiece, StringPiece> FileSystem::SplitPath( in SplitPath() 265 StringPiece uri) const { in SplitPath() 266 StringPiece scheme, host, path; in SplitPath() 286 if (pos == StringPiece::npos) in SplitPath() [all …]
|
/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.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(string* target) const { in CopyToString() 71 void StringPiece::AppendToString(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 …]
|
D | stringpiece.h | 180 class PROTOBUF_EXPORT StringPiece { 212 StringPiece() : ptr_(nullptr), length_(0) {} in StringPiece() function 214 StringPiece(const char* str) // NOLINT(runtime/explicit) in StringPiece() function 222 StringPiece( // NOLINT(runtime/explicit) in StringPiece() function 228 StringPiece(const char* offset, stringpiece_ssize_type len) in StringPiece() function 235 StringPiece(StringPiece x, stringpiece_ssize_type pos); 239 StringPiece(StringPiece x, 294 int compare(StringPiece x) const { in compare() 325 bool starts_with(StringPiece x) const { in starts_with() 330 bool ends_with(StringPiece x) const { in ends_with() [all …]
|
/external/icu/libicu/cts_headers/unicode/ |
D | stringpiece.h | 60 class U_COMMON_API StringPiece : public UMemory { 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function 77 StringPiece(const char* str); 85 StringPiece(const char8_t* str) : StringPiece(reinterpret_cast<const char*>(str)) {} in StringPiece() function 93 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() function 100 StringPiece(const std::string& str) in StringPiece() function 108 StringPiece(const std::u8string& str) in StringPiece() function 144 StringPiece(T str) in StringPiece() function 154 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function 163 StringPiece(const char8_t* str, int32_t len) : in StringPiece() function [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | stringpiece.h | 60 class U_COMMON_API StringPiece : public UMemory { 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function 77 StringPiece(const char* str); 85 StringPiece(const char8_t* str) : StringPiece(reinterpret_cast<const char*>(str)) {} in StringPiece() function 93 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() function 100 StringPiece(const std::string& str) in StringPiece() function 108 StringPiece(const std::u8string& str) in StringPiece() function 144 StringPiece(T str) in StringPiece() function 154 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function 163 StringPiece(const char8_t* str, int32_t len) : in StringPiece() function [all …]
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | json_stream_parser_test.cc | 92 util::Status RunTest(StringPiece json, int split, in RunTest() 101 StringPiece single = json.substr(i, 1); in RunTest() 111 StringPiece first = json.substr(0, split); in RunTest() 112 StringPiece rest = json.substr(split); in RunTest() 127 void DoTest(StringPiece json, int split, bool coerce_utf8 = false, in DoTest() 138 void DoErrorTest(StringPiece json, int split, in DoErrorTest() 139 StringPiece error_prefix, bool coerce_utf8 = false, in DoErrorTest() 143 StringPiece error_message(result.error_message()); in DoErrorTest() 163 StringPiece str = "true"; in TEST_F() 171 StringPiece str = "false"; in TEST_F() [all …]
|
D | expecting_objectwriter.h | 74 MOCK_METHOD1(StartObject, ObjectWriter*(StringPiece)); 76 MOCK_METHOD1(StartList, ObjectWriter*(StringPiece)); 78 MOCK_METHOD2(RenderBool, ObjectWriter*(StringPiece, bool)); 79 MOCK_METHOD2(RenderInt32, ObjectWriter*(StringPiece, int32)); 80 MOCK_METHOD2(RenderUint32, ObjectWriter*(StringPiece, uint32)); 81 MOCK_METHOD2(RenderInt64, ObjectWriter*(StringPiece, int64)); 82 MOCK_METHOD2(RenderUint64, ObjectWriter*(StringPiece, uint64)); 83 MOCK_METHOD2(RenderDouble, ObjectWriter*(StringPiece, double)); 84 MOCK_METHOD2(RenderFloat, ObjectWriter*(StringPiece, float)); 86 ObjectWriter*(StringPiece, StringPiece)); [all …]
|
D | object_writer.h | 65 virtual ObjectWriter* StartObject(StringPiece name) = 0; 71 virtual ObjectWriter* StartList(StringPiece name) = 0; 77 virtual ObjectWriter* RenderBool(StringPiece name, bool value) = 0; 80 virtual ObjectWriter* RenderInt32(StringPiece name, int32 value) = 0; 83 virtual ObjectWriter* RenderUint32(StringPiece name, uint32 value) = 0; 86 virtual ObjectWriter* RenderInt64(StringPiece name, int64 value) = 0; 89 virtual ObjectWriter* RenderUint64(StringPiece name, uint64 value) = 0; 93 virtual ObjectWriter* RenderDouble(StringPiece name, double value) = 0; 96 virtual ObjectWriter* RenderFloat(StringPiece name, float value) = 0; 99 virtual ObjectWriter* RenderString(StringPiece name, [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/rust/crates/grpcio-sys/grpc/third_party/re2/re2/ |
D | stringpiece.h | 39 class StringPiece { 58 StringPiece() in StringPiece() function 61 StringPiece(const std::string_view& str) in StringPiece() function 64 StringPiece(const std::string& str) in StringPiece() function 66 StringPiece(const char* str) in StringPiece() function 68 StringPiece(const char* str, size_type len) in StringPiece() function 135 StringPiece substr(size_type pos = 0, size_type n = npos) const; 137 int compare(const StringPiece& x) const { in compare() 150 bool starts_with(const StringPiece& x) const { in starts_with() 156 bool ends_with(const StringPiece& x) const { in ends_with() [all …]
|
D | stringpiece.cc | 13 const StringPiece::size_type StringPiece::npos; // initialized in stringpiece.h 15 StringPiece::size_type StringPiece::copy(char* buf, size_type n, in copy() 22 StringPiece StringPiece::substr(size_type pos, size_type n) const { in substr() 25 return StringPiece(data_ + pos, n); in substr() 28 StringPiece::size_type StringPiece::find(const StringPiece& s, in find() 37 StringPiece::size_type StringPiece::find(char c, size_type pos) const { in find() 43 StringPiece::size_type StringPiece::rfind(const StringPiece& s, in rfind() 52 StringPiece::size_type StringPiece::rfind(char c, size_type pos) const { in rfind() 60 std::ostream& operator<<(std::ostream& o, const StringPiece& p) { in operator <<()
|
/external/libtextclassifier/native/utils/strings/ |
D | stringpiece.h | 28 class StringPiece { 32 StringPiece() : StringPiece(nullptr, 0) {} in StringPiece() function 34 StringPiece(const char* str) // NOLINT(runtime/explicit) in StringPiece() function 37 StringPiece(const char* start, size_t size) : start_(start), size_(size) {} in StringPiece() function 41 StringPiece(const std::string& s) // NOLINT(runtime/explicit) in StringPiece() function 42 : StringPiece(s.data(), s.size()) {} in StringPiece() 44 StringPiece(const std::string& s, int offset, int len) in StringPiece() function 45 : StringPiece(s.data() + offset, len) {} in StringPiece() 62 bool EndsWith(StringPiece suffix) const { in EndsWith() 69 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 …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/testing/ |
D | tester.h | 54 TestInstance(const StringPiece& regexp, Prog::MatchKind kind, 62 bool RunCase(const StringPiece& text, const StringPiece& context, 68 const StringPiece& text, const StringPiece& context, 72 void LogMatch(const char* prefix, Engine e, const StringPiece& text, 73 const StringPiece& context, Prog::Anchor anchor); 75 const StringPiece regexp_str_; // regexp being tested 94 explicit Tester(const StringPiece& regexp); 101 bool TestCase(const StringPiece& text, const StringPiece& context, 105 bool TestInput(const StringPiece& text); 108 bool TestInputInContext(const StringPiece& text, const StringPiece& context); [all …]
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | dataset_utils.h | 107 IteratorStateWriter* writer, StringPiece key_prefix, 112 StringPiece key_prefix, 168 Status ReadScalar(StringPiece key, int64* val) const override; 169 Status ReadScalar(StringPiece key, tstring* val) const override; 170 Status ReadTensor(StringPiece key, Tensor* val) const override; 171 bool Contains(StringPiece key) const override; 173 Status ReadScalar(StringPiece name, StringPiece key, 175 Status ReadScalar(StringPiece name, StringPiece key, 177 Status ReadTensor(StringPiece name, StringPiece key, 179 bool Contains(StringPiece name, StringPiece key) const override; [all …]
|
/external/icu/icu4c/source/common/ |
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::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;
|