Home
last modified time | relevance | path

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

12345678910>>...32

/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dgraph_test_utils.h27 NodeDef MakeCacheV2Node(StringPiece name, StringPiece input_node_name,
28 StringPiece filename_node_name,
29 StringPiece cache_node_name);
32 NodeDef MakeFilterNode(StringPiece name, StringPiece input_node_name,
33 StringPiece function_name = "IsZero");
36 NodeDef MakeMapNode(StringPiece name, StringPiece input_node_name,
37 StringPiece function_name = "XTimesTwo");
40 NodeDef MakeMapAndBatchNode(StringPiece name, StringPiece input_node_name,
41 StringPiece batch_size_node_name,
42 StringPiece num_parallel_calls_node_name,
[all …]
Dgraph_test_utils.cc28 NodeDef MakeCacheV2Node(StringPiece name, StringPiece input_node_name, in MakeCacheV2Node()
29 StringPiece filename_node_name, in MakeCacheV2Node()
30 StringPiece cache_node_name) { in MakeCacheV2Node()
44 NodeDef MakeFilterNode(StringPiece name, StringPiece input_node_name, in MakeFilterNode()
45 StringPiece function_name) { in MakeFilterNode()
54 NodeDef MakeMapAndBatchNode(StringPiece name, StringPiece input_node_name, in MakeMapAndBatchNode()
55 StringPiece batch_size_node_name, in MakeMapAndBatchNode()
56 StringPiece num_parallel_calls_node_name, in MakeMapAndBatchNode()
57 StringPiece drop_remainder_node_name, in MakeMapAndBatchNode()
58 StringPiece function_name) { in MakeMapAndBatchNode()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dnode_def_util.h62 string SummarizeAttrsHelper(AttrSlice attrs, StringPiece device);
69 StringPiece node_name, bool has_experimental_debug_info,
76 void AddNodeAttr(StringPiece name, const AttrValue& value, NodeDef* node_def);
77 void AddNodeAttr(StringPiece name, AttrValue&& value, NodeDef* node_def);
78 void AddNodeAttr(StringPiece name, StringPiece value, NodeDef* node_def);
79 void AddNodeAttr(StringPiece name, const char* value, NodeDef* node_def);
80 void AddNodeAttr(StringPiece name, int32 value, NodeDef* node_def);
81 void AddNodeAttr(StringPiece name, int64 value, NodeDef* node_def);
82 void AddNodeAttr(StringPiece name, float value, NodeDef* node_def);
83 void AddNodeAttr(StringPiece name, double value, NodeDef* node_def);
[all …]
Dnode_def_builder.h56 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/
Dstr_util.h34 string CEscape(StringPiece src);
43 bool CUnescape(StringPiece source, string* dest, 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 …]
Dpath.cc38 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 …]
Dstr_util.cc32 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 …]
Dpath.h25 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);
Dfile_system.cc41 StringPiece scheme, host, path; in TranslateName()
152 StringPiece scheme, host, remaining_dir; in RecursivelyCreateDir()
154 std::vector<StringPiece> sub_dirs; in RecursivelyCreateDir()
186 for (const StringPiece sub_dir : sub_dirs) { in RecursivelyCreateDir()
202 string FileSystem::JoinPathImpl(std::initializer_list<StringPiece> paths) { in JoinPathImpl()
205 for (StringPiece path : paths) { in JoinPathImpl()
231 std::pair<StringPiece, StringPiece> FileSystem::SplitPath( in SplitPath()
232 StringPiece uri) const { in SplitPath()
233 StringPiece scheme, host, path; in SplitPath()
253 if (pos == StringPiece::npos) in SplitPath()
[all …]
Dnumbers.h87 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 …]
Dfile_system.h246 std::pair<StringPiece, StringPiece> SplitPath(StringPiece uri) const;
252 virtual StringPiece Basename(StringPiece path) const;
259 StringPiece Dirname(StringPiece path) const;
264 StringPiece Extension(StringPiece path) const;
272 string CleanPath(StringPiece path) const;
277 string CreateURI(StringPiece scheme, StringPiece host,
278 StringPiece path) const;
284 bool IsAbsolutePath(tensorflow::StringPiece path) const;
308 string JoinPathImpl(std::initializer_list<tensorflow::StringPiece> paths);
320 void ParseURI(StringPiece remaining, StringPiece* scheme, StringPiece* host,
[all …]
/external/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(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 …]
Dstringpiece.h180 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/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser_test.cc92 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 …]
Dexpecting_objectwriter.h74 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 …]
Dobject_writer.h65 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 …]
Dprotostream_objectsource.h80 util::Status NamedWriteTo(StringPiece name,
135 StringPiece name,
144 const google::protobuf::Field* field, StringPiece name,
153 StringPiece field_name,
170 StringPiece, ObjectWriter*);
179 StringPiece name, uint32 list_tag,
192 StringPiece name,
198 StringPiece name,
205 StringPiece name, ObjectWriter* ow);
208 StringPiece name, ObjectWriter* ow);
[all …]
Dprotostream_objectwriter_test.cc548 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P()
549 StringPiece("\"Infinity\""))) in TEST_P()
551 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_UINT32"), in TEST_P()
552 StringPiece("\"Infinity\""))) in TEST_P()
554 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_SFIXED64"), in TEST_P()
555 StringPiece("\"-Infinity\""))) in TEST_P()
557 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_BOOL"), in TEST_P()
558 StringPiece("\"Infinity\""))) in TEST_P()
581 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P()
582 StringPiece("\"NaN\""))) in TEST_P()
[all …]
Djson_objectwriter.h90 JsonObjectWriter(StringPiece indent_string, io::CodedOutputStream* out) in JsonObjectWriter()
99 virtual JsonObjectWriter* StartObject(StringPiece name);
101 virtual JsonObjectWriter* StartList(StringPiece name);
103 virtual JsonObjectWriter* RenderBool(StringPiece name, bool value);
104 virtual JsonObjectWriter* RenderInt32(StringPiece name, int32 value);
105 virtual JsonObjectWriter* RenderUint32(StringPiece name, uint32 value);
106 virtual JsonObjectWriter* RenderInt64(StringPiece name, int64 value);
107 virtual JsonObjectWriter* RenderUint64(StringPiece name, uint64 value);
108 virtual JsonObjectWriter* RenderDouble(StringPiece name, double value);
109 virtual JsonObjectWriter* RenderFloat(StringPiece name, float value);
[all …]
/external/libchrome/base/
Dvalues.h128 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/native/utils/strings/
Dstringpiece.h28 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/
Dstring_util.h108 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/tensorflow/tensorflow/core/kernels/data/
Ddataset_utils.h197 Status ReadScalar(StringPiece key, int64* val) override;
198 Status ReadScalar(StringPiece key, tstring* val) override;
199 Status ReadTensor(StringPiece key, Tensor* val) override;
200 bool Contains(StringPiece key) override;
202 Status ReadScalar(StringPiece name, StringPiece key, int64* val) override;
203 Status ReadScalar(StringPiece name, StringPiece key, tstring* val) override;
204 Status ReadTensor(StringPiece name, StringPiece key, Tensor* val) override;
205 bool Contains(StringPiece name, StringPiece key) override;
209 Status ReadScalarInternal(StringPiece key, T* val);
210 Status ReadTensorInternal(StringPiece key, Tensor* val);
[all …]
/external/icu/icu4c/source/common/unicode/
Dstringpiece.h60 class U_COMMON_API StringPiece : public UMemory {
70 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function
76 StringPiece(const char* str);
81 StringPiece(const std::string& str) in StringPiece() function
107 StringPiece(T str) in StringPiece() function
116 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function
123 StringPiece(const StringPiece& x, int32_t pos);
132 StringPiece(const StringPiece& x, int32_t pos, int32_t len);
229 StringPiece substr(int32_t pos, int32_t len = npos) const {
230 return StringPiece(*this, pos, len);
[all …]

12345678910>>...32