Home
last modified time | relevance | path

Searched refs:npos (Results 1 - 25 of 602) sorted by relevance

12345678910>>...25

/third_party/protobuf/src/google/protobuf/stubs/
H A Dstringpiece_unittest.cc318 EXPECT_EQ(StringPiece::npos, string::npos); in TEST()
321 EXPECT_EQ(a.find(b, 1), StringPiece::npos); in TEST()
324 EXPECT_EQ(a.find(c, StringPiece::npos), StringPiece::npos); in TEST()
325 EXPECT_EQ(b.find(c), StringPiece::npos); in TEST()
326 EXPECT_EQ(b.find(c, StringPiece::npos), StringPiece::npos); in TEST()
332 EXPECT_EQ(a.find(g), StringPiece::npos); in TEST()
334 EXPECT_EQ(d.find(b), StringPiece::npos); in TEST()
[all...]
H A Dstringpiece.cc101 return find(s, 0) != npos; in contains()
107 return npos; in find()
111 return result == ptr_ + length_ ? npos : result - ptr_; in find()
116 return npos; in find()
120 return result != nullptr ? result - ptr_ : npos; in find()
124 if (length_ < s.length_) return npos; in rfind()
130 return result != last ? result - ptr_ : npos; in rfind()
133 // Search range is [0..pos] inclusive. If pos == npos, search everything.
136 if (length_ <= 0) return npos; in rfind()
144 return npos; in rfind()
267 const StringPiece::size_type StringPiece::npos = size_type(-1); global() member in google::protobuf::StringPiece
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
H A Dstring_view_test.cc289 // Sadly, our users often confuse std::string::npos with
290 // absl::string_view::npos; So much so that we test here that they are the same.
304 EXPECT_EQ(absl::string_view::npos, std::string::npos); in TEST()
306 EXPECT_TRUE(is_type<size_t>::same(absl::string_view::npos)); in TEST()
309 // Make sure absl::string_view::npos continues to be a header constant. in TEST()
310 char test[absl::string_view::npos & 1] = {0}; in TEST()
402 EXPECT_EQ(a.find(b, 1), absl::string_view::npos); in TEST()
405 EXPECT_EQ(a.find(c, absl::string_view::npos), absl::string_view::npos); in TEST()
918 auto npos = absl::string_view::npos; TEST() local
[all...]
H A Dstring_view.cc85 return npos;
89 return result ? result - ptr_ : npos;
94 return npos;
98 return result != nullptr ? result - ptr_ : npos;
103 if (length_ < s.length_) return npos;
107 return result != last ? result - ptr_ : npos;
110 // Search range is [0..pos] inclusive. If pos == npos, search everything.
114 if (empty()) return npos;
121 return npos;
127 return npos;
223 constexpr string_view::size_type string_view::npos; global() member in absl::string_view
[all...]
H A Dstring_view.h181 static constexpr size_type npos = static_cast<size_type>(-1);
398 constexpr string_view substr(size_type pos = 0, size_type n = npos) const {
455 // returning the position of the first character's match, or `npos` if no
478 // returning the position of the first character's match, or `npos` if no
480 size_type rfind(string_view s, size_type pos = npos) const noexcept;
484 size_type rfind(char c, size_type pos = npos) const noexcept;
494 size_type rfind(const char* s, size_type pos = npos) const {
501 // `string_view`, returning the start position of the match, or `npos` if no
527 // `string_view`, returning the start position of the match, or `npos` if no
529 size_type find_last_of(string_view s, size_type pos = npos) cons
[all...]
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/
H A Dstring_piece.cc49 return npos; in find()
54 return xpos + s.length_ <= length_ ? xpos : npos; in find()
59 return npos; in find()
62 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find()
67 return npos; in rfind()
74 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind()
79 return npos; in rfind()
87 return npos; in rfind()
110 return npos; in find_first_of()
123 return npos; in find_first_of()
222 const StringPiece::size_type StringPiece::npos = size_type(-1); global() member in i18n::phonenumbers::StringPiece
[all...]
H A Dstring_piece.h43 static const size_type npos; member in i18n::phonenumbers::StringPiece
140 size_type rfind(const StringPiece& s, size_type pos = npos) const;
141 size_type rfind(char c, size_type pos = npos) const;
149 size_type find_last_of(const StringPiece& s, size_type pos = npos) const;
150 size_type find_last_of(char c, size_type pos = npos) const { in find_last_of()
153 size_type find_last_not_of(const StringPiece& s, size_type pos = npos) const;
154 size_type find_last_not_of(char c, size_type pos = npos) const;
156 StringPiece substr(size_type pos, size_type n = npos) const;
/third_party/gn/src/base/files/
H A Dfile_path.cc44 // otherwise returns npos. This can only be true on Windows, when a pathname
46 // returns npos.
57 return StringType::npos; in FindDriveLetter()
65 if (a_letter_pos == StringType::npos || b_letter_pos == StringType::npos) in EqualDriveLetterCaseInsensitive()
82 if (letter != StringType::npos) { in IsPathAbsolute()
107 // Returns npos if it can't find an extension.
111 return StringType::npos; in FinalExtensionSeparatorPosition()
124 if (last_dot == StringType::npos || last_dot == 0U) in ExtensionSeparatorPosition()
132 if (penultimate_dot == StringType::npos || in ExtensionSeparatorPosition()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DShaderD3D.cpp299 mUsesMultipleRenderTargets = translatedSource.find("GL_USES_MRT") != std::string::npos; in compile()
300 mUsesFragColor = translatedSource.find("GL_USES_FRAG_COLOR") != std::string::npos; in compile()
301 mUsesFragData = translatedSource.find("GL_USES_FRAG_DATA") != std::string::npos; in compile()
302 mUsesSecondaryColor = translatedSource.find("GL_USES_SECONDARY_COLOR") != std::string::npos; in compile()
303 mUsesFragCoord = translatedSource.find("GL_USES_FRAG_COORD") != std::string::npos; in compile()
304 mUsesFrontFacing = translatedSource.find("GL_USES_FRONT_FACING") != std::string::npos; in compile()
306 translatedSource.find("GL_USES_HELPER_INVOCATION") != std::string::npos; in compile()
307 mUsesPointSize = translatedSource.find("GL_USES_POINT_SIZE") != std::string::npos; in compile()
308 mUsesPointCoord = translatedSource.find("GL_USES_POINT_COORD") != std::string::npos; in compile()
309 mUsesDepthRange = translatedSource.find("GL_USES_DEPTH_RANGE") != std::string::npos; in compile()
[all...]
/third_party/lz4/contrib/gen_manual/
H A Dgen_manual.cpp49 if (string::npos != p) in trim()
77 if (!terminator.empty() && epos!=string::npos) { in get_lines()
97 if (spos!=string::npos && epos!=string::npos) { in print_line()
143 if (line.substr(0,7) == "typedef" && line.find("{")!=string::npos) { in main()
154 if ((line.find("/**<")!=string::npos || line.find("/*!<")!=string::npos) in main()
155 && line.find("*/")!=string::npos) { in main()
163 if (spos==string::npos) { in main()
165 if (spos==string::npos) in main()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DStringRef.cpp20 const size_t StringRef::npos; member in 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...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DStringRef.cpp22 const size_t StringRef::npos; member in StringRef
131 /// \return - The index of the first occurrence of \arg Str, or npos if not
135 return npos;
145 return npos;
148 return Ptr == nullptr ? npos : Ptr - Data;
160 return npos;
179 return npos;
190 return npos;
201 return npos;
206 /// \return - The index of the last occurrence of \arg Str, or npos i
[all...]
/third_party/node/test/cctest/
H A Dtest_report.cc40 EXPECT_NE(actual.find("FooMessage"), std::string::npos); in TEST_F()
41 EXPECT_NE(actual.find("BarTrigger"), std::string::npos); in TEST_F()
56 EXPECT_NE(actual.find("FooMessage"), std::string::npos); in TEST_F()
57 EXPECT_NE(actual.find("BarTrigger"), std::string::npos); in TEST_F()
76 EXPECT_NE(actual.find("FooMessage"), std::string::npos); in TEST_F()
77 EXPECT_NE(actual.find("BarTrigger"), std::string::npos); in TEST_F()
112 EXPECT_NE(actual.find("FooMessage"), std::string::npos); in TEST_F()
113 EXPECT_NE(actual.find("BarTrigger"), std::string::npos); in TEST_F()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DRendererTest.cpp56 ASSERT_NE(rendererString.find(std::string("direct3d11")), std::string::npos); in TEST_P()
62 ASSERT_NE(rendererString.find(std::string("direct3d9")), std::string::npos); in TEST_P()
73 ASSERT_TRUE(basicRenderPos != std::string::npos || in TEST_P()
74 softwareAdapterPos != std::string::npos); in TEST_P()
112 if (rendererString.find(acceptableShaderModels[i]) != std::string::npos) in TEST_P()
137 ASSERT_NE(versionString.find(std::string("es 3.1")), std::string::npos); in TEST_P()
141 ASSERT_NE(versionString.find(std::string("es 3.0")), std::string::npos); in TEST_P()
145 ASSERT_NE(versionString.find(std::string("es 2.0")), std::string::npos); in TEST_P()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
H A Dangle_test_platform.cpp20 return (rendererString.find("Adreno") != std::string::npos); in IsAdreno()
26 return (rendererString.find("Direct3D11 vs_5_0") != std::string::npos); in IsD3D11()
32 return (rendererString.find("Direct3D9") != std::string::npos); in IsD3D9()
43 return (rendererString.find("OpenGL ES") != std::string::npos); in IsOpenGLES()
49 return (rendererString.find("OpenGL") != std::string::npos); in IsOpenGL()
55 return (rendererString.find("NULL") != std::string::npos); in IsNULL()
62 return (rendererString.find("Vulkan") != std::string::npos); in IsVulkan()
69 return (rendererString.find("ANGLE Metal") != std::string::npos); in IsMetal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DStringRef.h51 static const size_t npos = ~size_t(0); member in 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...]
/third_party/skia/third_party/externals/angle2/src/common/
H A Dstring_utils.cpp51 while (start != std::string::npos) in SplitString()
56 if (end == std::string::npos) in SplitString()
59 start = std::string::npos; in SplitString()
90 while ((pos = line.find_first_of(kWhitespaceASCII, prev)) != std::string::npos) in SplitStringAlongWhitespace()
97 tokensOut->push_back(line.substr(prev, std::string::npos)); in SplitStringAlongWhitespace()
104 if (begin == std::string::npos) in TrimString()
110 if (end == std::string::npos) in TrimString()
121 if (match == std::string::npos) in GetPrefix()
131 if (match == std::string::npos) in GetPrefix()
148 if (input.find_first_not_of("0123456789ABCDEFabcdef", offset) != std::string::npos) in HexStringToUInt()
[all...]
/third_party/libwebsockets/lib/cose/
H A Dcose_validate.c814 if (cps->info.pay_cb && ctx->npos) in cb_cose_sig()
816 (uint8_t *)ctx->buf, ctx->npos); in cb_cose_sig()
819 if (cps->payload_pos + ctx->npos > in cb_cose_sig()
823 ctx->buf, ctx->npos); in cb_cose_sig()
824 cps->payload_pos += ctx->npos; in cb_cose_sig()
832 if (ctx->npos && in cb_cose_sig()
834 ctx->npos)) { in cb_cose_sig()
844 ctx->npos); in cb_cose_sig()
845 cps->sig_agg_pos = cps->sig_agg_pos + ctx->npos; in cb_cose_sig()
856 ctx->npos); in cb_cose_sig()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DStringRef.h56 static const size_t npos = ~size_t(0); member in llvm::StringRef
303 /// \returns The index of the first occurrence of \p C, or npos if not
313 return npos;
318 /// \returns The index of the first occurrence of \p C, or npos if not
326 /// \p From, or npos if not found.
335 return npos;
341 /// from \p From, or npos if not found.
349 /// \returns The index of the first occurrence of \p Str, or npos if not
356 /// \returns The index of the first occurrence of \p Str, or npos if not
363 /// \returns The index of the last occurrence of \p C, or npos i
[all...]
/third_party/alsa-lib/src/ucm/
H A Dutils.c147 struct list_head *pos, *npos; in uc_mgr_free_ctl() local
150 list_for_each_safe(pos, npos, &ctl_list->dev_list) { in uc_mgr_free_ctl()
161 struct list_head *pos, *npos; in uc_mgr_free_ctl_list() local
164 list_for_each_safe(pos, npos, &uc_mgr->ctl_list) { in uc_mgr_free_ctl_list()
413 struct list_head *pos, *npos; in uc_mgr_free_value() local
416 list_for_each_safe(pos, npos, base) { in uc_mgr_free_value()
424 struct list_head *pos, *npos; in uc_mgr_free_dev_list() local
427 list_for_each_safe(pos, npos, &dev_list->list) { in uc_mgr_free_dev_list()
535 struct list_head *pos, *npos; in uc_mgr_free_sequence() local
538 list_for_each_safe(pos, npos, bas in uc_mgr_free_sequence()
554 struct list_head *pos, *npos; uc_mgr_free_transition() local
566 struct list_head *pos, *npos; uc_mgr_free_dev_name_list() local
580 struct list_head *pos, *npos; uc_mgr_free_modifier() local
612 struct list_head *pos, *npos; uc_mgr_free_device_list() local
625 struct list_head *pos, *npos; uc_mgr_rename_device() local
647 struct list_head *pos, *npos; uc_mgr_remove_device() local
734 struct list_head *pos, *npos; uc_mgr_free_verb() local
[all...]
/third_party/cups-filters/filter/pdftopdf/
H A Dintervalset.cc7 const IntervalSet::key_t IntervalSet::npos=std::numeric_limits<IntervalSet::key_t>::max(); member in IntervalSet
54 data_t::const_iterator it=std::upper_bound(data.begin(),data.end(),std::make_pair(val,npos)); in contains()
66 data_t::const_iterator it=std::upper_bound(data.begin(),data.end(),std::make_pair(val,npos)); in next()
69 return npos; in next()
79 return npos; in next()
115 if (data[len].second==npos) { in dump()
/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/
H A Dldso_dlerror_test.cpp36 EXPECT_NE(mainCheck, string::npos); in HWTEST_F()
41 EXPECT_NE(childCheck, string::npos); in HWTEST_F()
44 EXPECT_NE(mainCheck, string::npos); in HWTEST_F()
64 EXPECT_NE(mainCheck, string::npos); in HWTEST_F()
66 EXPECT_NE(childCheck, string::npos); in HWTEST_F()
/third_party/mesa3d/src/gallium/frontends/clover/core/
H A Dprintf.cpp69 const size_t next_tok = next_spec == std::string::npos ? std::string::npos : in print_formatted()
87 std::string::npos; in print_formatted()
90 if (spec_pos != std::string::npos && valid_str) { in print_formatted()
91 bool is_vector = vec_pos != std::string::npos && in print_formatted()
95 .find(format[spec_pos]) != std::string::npos; in print_formatted()
112 if (mod_pos != std::string::npos) { in print_formatted()
117 mod_pos = std::string::npos; in print_formatted()
/third_party/gn/src/base/strings/
H A Dutf_offset_string_conversions.cc40 if (*offset == std::u16string::npos) in AdjustOffset()
48 *offset = std::u16string::npos; in AdjustOffset()
56 *offset = std::u16string::npos; in AdjustOffset()
73 if (*offset == std::u16string::npos) in UnadjustOffset()
82 *offset = std::u16string::npos; in UnadjustOffset()
243 offset = std::u16string::npos; in UTF8ToUTF16AndAdjustOffsets()
256 offset = std::u16string::npos; in UTF16ToUTF8AndAdjustOffsets()
/third_party/libwebsockets/lib/secure-streams/
H A Dpolicy-json.c527 if (a->count + ctx->npos >= MAX_CERT_TEMP) { in lws_ss_policy_parser_cb()
531 inl = ctx->npos; in lws_ss_policy_parser_cb()
538 if (inl != ctx->npos) { in lws_ss_policy_parser_cb()
560 ctx->npos, ctx->buf); in lws_ss_policy_parser_cb()
563 if (!strncmp(x->vhost_name, ctx->buf, ctx->npos)) { in lws_ss_policy_parser_cb()
571 lws_strnncpy(dotstar, ctx->buf, ctx->npos, sizeof(dotstar)); in lws_ss_policy_parser_cb()
609 if (!strncmp(x->vhost_name, ctx->buf, ctx->npos) && in lws_ss_policy_parser_cb()
610 !x->vhost_name[ctx->npos]) { in lws_ss_policy_parser_cb()
647 lws_strnncpy(dotstar, ctx->buf, ctx->npos, sizeof(dotstar)); in lws_ss_policy_parser_cb()
717 if (!strncmp((*pin)->name, ctx->buf, ctx->npos)) { in lws_ss_policy_parser_cb()
[all...]

Completed in 13 milliseconds

12345678910>>...25