Searched defs:npos (Results 1 - 25 of 57) sorted by last modified time

123

/external/zopfli/src/zopflipng/
H A Dzopflipng_bin.cc30 size_t npos = (size_t)(-1); local
33 if (slashpos == npos) {
/external/tinyxml/
H A Dtinystr.cpp35 const TiXmlString::size_type TiXmlString::npos = static_cast< size_type >(-1); member in class:TiXmlString
H A Dtinystr.h59 static const size_type npos; // = -1; member in class:TiXmlString
159 // find a char in a string. Return TiXmlString::npos if not found
165 // find a char in a string from an offset. Return TiXmlString::npos if not found
168 if (offset >= length()) return npos;
174 return npos;
/external/tensorflow/tensorflow/core/lib/core/
H A Dstringpiece.cc39 return npos;
43 return result != nullptr ? result - data_ : npos;
46 // Search range is [0..pos] inclusive. If pos == npos, search everything.
48 if (size_ == 0) return npos;
54 return npos;
63 const StringPiece::size_type StringPiece::npos = size_type(-1); member in class:tensorflow::StringPiece
H A Dstringpiece.h70 static const size_t npos; member in class:tensorflow::StringPiece
92 size_t rfind(char c, size_t pos = npos) const;
106 StringPiece substr(size_t pos, size_t n = npos) const;
/external/tensorflow/tensorflow/core/lib/gtl/
H A Darray_slice.h125 static const size_type npos = Impl::npos; member in class:tensorflow::gtl::ArraySlice
167 // If len==npos, the substring continues till the end of x.
234 static const size_type npos = Impl::npos; member in class:tensorflow::gtl::MutableArraySlice
265 // If len==npos, the substring continues till the end of x.
307 const typename ArraySlice<T>::size_type ArraySlice<T>::npos; member in class:tensorflow::gtl::ArraySlice
309 const typename MutableArraySlice<T>::size_type MutableArraySlice<T>::npos; member in class:tensorflow::gtl::MutableArraySlice
H A Darray_slice_internal.h163 static const size_type npos = static_cast<size_type>(-1); member in class:tensorflow::gtl::array_slice_internal::ArraySliceImplBase
H A Darray_slice_test.cc241 TestImplicitConversion(IntSlice(vec, 0, IntSlice::npos), vec);
422 EXPECT_EQ(static_cast<IntSlice::size_type>(-1), IntSlice::npos); member in class:tensorflow::gtl::__anon26649::IntSlice
478 TestImplicitConversion(MutableIntSlice(&vec, 0, MutableIntSlice::npos),
595 EXPECT_EQ(static_cast<MutableIntSlice::size_type>(-1), MutableIntSlice::npos); member in class:tensorflow::gtl::__anon26649::MutableIntSlice
/external/swiftshader/third_party/PowerVR_SDK/Tools/
H A DPVRTString.cpp28 const size_t CPVRTString::npos = (size_t) -1; member in class:CPVRTString
44 if (_Count == npos)
310 if(_Count==npos)
689 if (_Count == npos || _Pos + _Count >= m_Size)
711 return npos;
714 return npos;
726 return npos;
755 return npos;
780 return npos;
806 return npos;
[all...]
H A DPVRTString.h47 static const size_type npos; variable
57 CPVRTString(const char* _Ptr, size_t _Count = npos);
65 CPVRTString(const CPVRTString& _Right, size_t _Roff = 0, size_t _Count = npos);
160 CPVRTString& assign(const CPVRTString& _Str, size_t _Off, size_t _Count=npos);
319 CPVRTString& erase(size_t _Pos = 0, size_t _Count = npos);
693 //size_t rfind(char _Ch, size_t _Off = npos) const;
694 //size_t rfind(const char* _Ptr, size_t _Off = npos) const;
695 //size_t rfind(const char* _Ptr, size_t _Off = npos, size_t _Count) const;
696 //size_t rfind(const CPVRTString& _Str, size_t _Off = npos) const;
712 CPVRTString substr(size_t _Off = 0, size_t _Count = npos) cons
[all...]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DStringRef.h51 static const size_t npos = ~size_t(0); member in class:llvm::StringRef
291 /// \returns The index of the first occurrence of \p C, or npos if not
302 return npos;
307 /// \returns The index of the first occurrence of \p C, or npos if not
315 /// \p From, or npos if not found.
325 return npos;
331 /// from \p From, or npos if not found.
340 /// \returns The index of the first occurrence of \p Str, or npos if not
347 /// \returns The index of the first occurrence of \p Str, or npos if not
354 /// \returns The index of the last occurrence of \p C, or npos i
[all...]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
H A DStringRef.cpp20 const size_t StringRef::npos; member in class:StringRef
145 /// \return - The index of the first occurrence of \arg Str, or npos if not
149 return npos;
159 return npos;
162 return Ptr == nullptr ? npos : Ptr - Data;
174 return npos;
193 return npos;
204 return npos;
215 return npos;
220 /// \return - The index of the last occurrence of \arg Str, or npos i
[all...]
/external/swiftshader/third_party/LLVM/lib/Support/
H A DStringRef.cpp19 const size_t StringRef::npos; member in class:StringRef
141 /// \return - The index of the first occurrence of \arg Str, or npos if not
146 return npos;
150 return npos;
155 /// \return - The index of the last occurrence of \arg Str, or npos if not
160 return npos;
166 return npos;
170 /// Chars, or npos if not found.
182 return npos;
186 /// \arg C or npos i
[all...]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A DStringRef.h34 static const size_t npos = ~size_t(0); member in class:llvm::StringRef
214 /// \return - The index of the first occurrence of \arg C, or npos if not
220 return npos;
225 /// \return - The index of the first occurrence of \arg Str, or npos if not
231 /// \return - The index of the last occurrence of \arg C, or npos if not
233 size_t rfind(char C, size_t From = npos) const {
241 return npos;
246 /// \return - The index of the last occurrence of \arg Str, or npos if not
251 /// or npos if not found. Same as find.
257 /// Chars, or npos i
[all...]
/external/sfntly/cpp/src/test/tinyxml/
H A Dtinystr.cpp30 const TiXmlString::size_type TiXmlString::npos = static_cast< TiXmlString::size_type >(-1); member in class:TiXmlString
H A Dtinystr.h62 static const size_type npos; // = -1; member in class:TiXmlString
160 // find a char in a string. Return TiXmlString::npos if not found
166 // find a char in a string from an offset. Return TiXmlString::npos if not found
169 if (offset >= length()) return npos;
175 return npos;
/external/protobuf/src/google/protobuf/compiler/
H A Dparser_unittest.cc225 GetCapturedTestStderr().find("No syntax specified") != string::npos); member in class:google::protobuf::compiler::__anon18988::string
1740 if (pos != string::npos) {
1952 EXPECT_TRUE(found_pos != string::npos)
1984 EXPECT_TRUE(debug_string.find("map<") != string::npos);
1985 EXPECT_TRUE(debug_string.find("option map_entry") == string::npos);
1986 EXPECT_TRUE(debug_string.find("MapEntry") == string::npos);
/external/protobuf/src/google/protobuf/stubs/
H A Dstringpiece.cc99 return find(s, 0) != npos;
105 return npos;
109 return result == ptr_ + length_ ? npos : result - ptr_;
114 return npos;
118 return result != NULL ? result - ptr_ : npos;
122 if (length_ < s.length_) return npos;
128 return result != last ? result - ptr_ : npos;
131 // Search range is [0..pos] inclusive. If pos == npos, search everything.
134 if (length_ <= 0) return npos;
142 return npos;
265 const StringPiece::size_type StringPiece::npos = size_type(-1); member in class:google::protobuf::StringPiece
[all...]
H A Dstringpiece.h354 static const size_type npos; member in class:google::protobuf::StringPiece
377 stringpiece_ssize_type rfind(StringPiece s, size_type pos = npos) const;
378 stringpiece_ssize_type rfind(char c, size_type pos = npos) const;
388 size_type pos = npos) const;
389 stringpiece_ssize_type find_last_of(char c, size_type pos = npos) const {
393 size_type pos = npos) const;
394 stringpiece_ssize_type find_last_not_of(char c, size_type pos = npos) const;
396 StringPiece substr(size_type pos, size_type n = npos) const;
/external/llvm/lib/Support/
H A DStringRef.cpp20 const size_t StringRef::npos; member in class:StringRef
140 /// \return - The index of the first occurrence of \arg Str, or npos if not
144 return npos;
153 return npos;
165 return npos;
182 return npos;
187 /// \return - The index of the last occurrence of \arg Str, or npos if not
192 return npos;
198 return npos;
202 /// Chars, or npos i
[all...]
/external/llvm/include/llvm/ADT/
H A DStringRef.h46 static const size_t npos = ~size_t(0); member in class:llvm::StringRef
256 /// \returns The index of the first occurrence of \p C, or npos if not
266 return npos;
271 /// \returns The index of the first occurrence of \p Str, or npos if not
277 /// \returns The index of the last occurrence of \p C, or npos if not
279 size_t rfind(char C, size_t From = npos) const {
287 return npos;
292 /// \returns The index of the last occurrence of \p Str, or npos if not
296 /// Find the first character in the string that is \p C, or npos if not
302 /// Find the first character in the string that is in \p Chars, or npos i
[all...]
/external/libcxx/src/experimental/filesystem/
H A Doperations.cpp712 const auto npos = static_cast<std::uintmax_t>(-1); local
714 if (ec) return npos;
720 if (ec) return npos;
723 if (ec) return npos;
725 if (!__remove(p, &ec)) return npos;
/external/libcxx/test/std/strings/basic.string/string.capacity/
H A Dresize_size.pass.cpp66 test(S(), S::npos, S("not going to happen")); member in class:S
86 test(S(), S::npos, S("not going to happen")); member in class:S
H A Dresize_size_char.pass.cpp66 test(S(), S::npos, 'a', S("not going to happen")); member in class:S
86 test(S(), S::npos, 'a', S("not going to happen")); member in class:S
/external/libcxx/test/std/strings/basic.string/string.ops/string_find/
H A Dchar_size.pass.cpp25 if (x != S::npos)
34 if (x != S::npos)
42 test(S(""), 'c', 0, S::npos); member in class:S
43 test(S(""), 'c', 1, S::npos); member in class:S
47 test(S("abcde"), 'c', 4, S::npos); member in class:S
48 test(S("abcde"), 'c', 5, S::npos); member in class:S
49 test(S("abcde"), 'c', 6, S::npos); member in class:S
53 test(S("abcdeabcde"), 'c', 9, S::npos); member in class:S
54 test(S("abcdeabcde"), 'c', 10, S::npos); member in class:S
55 test(S("abcdeabcde"), 'c', 11, S::npos); member in class:S
59 test(S("abcdeabcdeabcdeabcde"), 'c', 19, S::npos); member in class:S
60 test(S("abcdeabcdeabcdeabcde"), 'c', 20, S::npos); member in class:S
61 test(S("abcdeabcdeabcdeabcde"), 'c', 21, S::npos); member in class:S
63 test(S(""), 'c', S::npos); member in class:S
71 test(S(""), 'c', 0, S::npos); member in class:S
72 test(S(""), 'c', 1, S::npos); member in class:S
76 test(S("abcde"), 'c', 4, S::npos); member in class:S
77 test(S("abcde"), 'c', 5, S::npos); member in class:S
78 test(S("abcde"), 'c', 6, S::npos); member in class:S
82 test(S("abcdeabcde"), 'c', 9, S::npos); member in class:S
83 test(S("abcdeabcde"), 'c', 10, S::npos); member in class:S
84 test(S("abcdeabcde"), 'c', 11, S::npos); member in class:S
88 test(S("abcdeabcdeabcdeabcde"), 'c', 19, S::npos); member in class:S
89 test(S("abcdeabcdeabcdeabcde"), 'c', 20, S::npos); member in class:S
90 test(S("abcdeabcdeabcdeabcde"), 'c', 21, S::npos); member in class:S
92 test(S(""), 'c', S::npos); member in class:S
[all...]

Completed in 624 milliseconds

123