/third_party/protobuf/src/google/protobuf/stubs/ |
D | stringpiece_unittest.cc | 318 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() 335 EXPECT_EQ(e.find(b), StringPiece::npos); in TEST() 336 EXPECT_EQ(d.find(b, 4), StringPiece::npos); in TEST() 337 EXPECT_EQ(e.find(b, 7), StringPiece::npos); in TEST() [all …]
|
D | stringpiece.cc | 101 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() 136 if (length_ <= 0) return npos; in rfind() 144 return npos; in rfind() 167 return npos; in find_first_of() [all …]
|
/third_party/mtdev/test/ |
D | mtdev-kernel.c | 53 static int illegal(int nslot, int npos, unsigned x) in illegal() argument 57 for (j = 0; j < npos; j++) { in illegal() 60 sum += GETBIT(x, i * npos + j); in illegal() 66 for (j = 0; j < npos; j++) in illegal() 67 sum += GETBIT(x, i * npos + j); in illegal() 73 return sum != minval(nslot, npos); in illegal() 76 static void get_slots(int *slots, int nslot, int npos, unsigned x) in get_slots() argument 80 memset(slots, -1, sizeof(slots[0]) * npos); in get_slots() 81 for (i = 0; i < nslot * npos; i++) in get_slots() 83 slots[i % npos] = i / npos; in get_slots() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | string_view_test.cc | 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() 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() 406 EXPECT_EQ(b.find(c), absl::string_view::npos); in TEST() 407 EXPECT_EQ(b.find(c, absl::string_view::npos), absl::string_view::npos); in TEST() 413 EXPECT_EQ(a.find(g), absl::string_view::npos); in TEST() 415 EXPECT_EQ(d.find(b), absl::string_view::npos); in TEST() 416 EXPECT_EQ(e.find(b), absl::string_view::npos); in TEST() [all …]
|
D | string_view.cc | 85 return npos; in find() 89 return result ? result - ptr_ : npos; in find() 94 return npos; in find() 98 return result != nullptr ? result - ptr_ : npos; in find() 103 if (length_ < s.length_) return npos; in rfind() 107 return result != last ? result - ptr_ : npos; in rfind() 114 if (empty()) return npos; in rfind() 121 return npos; in rfind() 127 return npos; in find_first_of() 137 return npos; in find_first_of() [all …]
|
D | string_view.h | 181 static constexpr size_type npos = static_cast<size_type>(-1); variable 398 constexpr string_view substr(size_type pos = 0, size_type n = npos) const { 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 { 529 size_type find_last_of(string_view s, size_type pos = npos) const noexcept; 533 size_type find_last_of(char c, size_type pos = npos) const noexcept { 545 size_type find_last_of(const char* s, size_type pos = npos) const { 579 size_type pos = npos) const noexcept; 583 size_type find_last_not_of(char c, size_type pos = npos) const noexcept; [all …]
|
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/ |
D | string_piece.cc | 45 return npos; in find() 50 return xpos + s.length_ <= length_ ? xpos : npos; in find() 55 return npos; in find() 58 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find() 63 return npos; in rfind() 70 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind() 75 return npos; in rfind() 83 return npos; in rfind() 106 return npos; in find_first_of() 119 return npos; in find_first_of() [all …]
|
D | string_piece.h | 43 static const size_type npos; variable 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 { 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/ |
D | file_path.cc | 56 return StringType::npos; in FindDriveLetter() 64 if (a_letter_pos == StringType::npos || b_letter_pos == StringType::npos) in EqualDriveLetterCaseInsensitive() 81 if (letter != StringType::npos) { in IsPathAbsolute() 110 return StringType::npos; in FinalExtensionSeparatorPosition() 123 if (last_dot == StringType::npos || last_dot == 0U) in ExtensionSeparatorPosition() 131 if (penultimate_dot == StringType::npos || in ExtensionSeparatorPosition() 132 (last_separator != StringType::npos && in ExtensionSeparatorPosition() 177 if (nul_pos != StringType::npos) in FilePath() 178 path_.erase(nul_pos, StringType::npos); in FilePath() 242 if (letter != StringType::npos) { in GetComponents() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | ShaderD3D.cpp | 274 mUsesMultipleRenderTargets = translatedSource.find("GL_USES_MRT") != std::string::npos; in compile() 275 mUsesFragColor = translatedSource.find("GL_USES_FRAG_COLOR") != std::string::npos; in compile() 276 mUsesFragData = translatedSource.find("GL_USES_FRAG_DATA") != std::string::npos; in compile() 277 mUsesSecondaryColor = translatedSource.find("GL_USES_SECONDARY_COLOR") != std::string::npos; in compile() 278 mUsesFragCoord = translatedSource.find("GL_USES_FRAG_COORD") != std::string::npos; in compile() 279 mUsesFrontFacing = translatedSource.find("GL_USES_FRONT_FACING") != std::string::npos; in compile() 280 mUsesPointSize = translatedSource.find("GL_USES_POINT_SIZE") != std::string::npos; in compile() 281 mUsesPointCoord = translatedSource.find("GL_USES_POINT_COORD") != std::string::npos; in compile() 282 mUsesDepthRange = translatedSource.find("GL_USES_DEPTH_RANGE") != std::string::npos; in compile() 283 mUsesFragDepth = translatedSource.find("GL_USES_FRAG_DEPTH") != std::string::npos; in compile() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | ShaderD3D.cpp | 299 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/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | angle_test_platform.cpp | 20 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/mtdev/src/ |
D | match_four.c | 84 const struct trk_coord *pos, int npos) in mtdev_match_four() argument 90 set_dist(d, old, old + nslot, pos, pos + npos); in mtdev_match_four() 92 at = &match_index[nslot][npos]; in mtdev_match_four() 98 switch (minval(nslot, npos)) { in mtdev_match_four() 100 for (; b != e; b += npos) { in mtdev_match_four() 107 for (; b != e; b += npos) { in mtdev_match_four() 114 for (; b != e; b += npos) { in mtdev_match_four() 121 for (; b != e; b += npos) { in mtdev_match_four()
|
/third_party/lz4/contrib/gen_manual/ |
D | gen_manual.cpp | 49 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() 167 if (spos==string::npos) in main() 169 if (spos==string::npos) in main() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | StringRef.cpp | 20 const size_t StringRef::npos; member in StringRef 149 return npos; in find() 159 return npos; in find() 162 return Ptr == nullptr ? npos : Ptr - Data; in find() 174 return npos; in find() 193 return npos; in find() 204 return npos; in find_lower() 215 return npos; in rfind_lower() 225 return npos; in rfind() 231 return npos; in rfind() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | StringRef.cpp | 22 const size_t StringRef::npos; member in StringRef 135 return npos; in find() 145 return npos; in find() 148 return Ptr == nullptr ? npos : Ptr - Data; in find() 160 return npos; in find() 179 return npos; in find() 190 return npos; in find_lower() 201 return npos; in rfind_lower() 211 return npos; in rfind() 217 return npos; in rfind() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/common/ |
D | string_utils.cpp | 37 while (start != std::string::npos) in SplitString() 42 if (end == std::string::npos) in SplitString() 45 start = std::string::npos; in SplitString() 76 while ((pos = line.find_first_of(kWhitespaceASCII, prev)) != std::string::npos) in SplitStringAlongWhitespace() 83 tokensOut->push_back(line.substr(prev, std::string::npos)); in SplitStringAlongWhitespace() 90 if (begin == std::string::npos) in TrimString() 96 if (end == std::string::npos) in TrimString() 107 if (match == std::string::npos) in GetPrefix() 117 if (match == std::string::npos) in GetPrefix() 134 if (input.find_first_not_of("0123456789ABCDEFabcdef", offset) != std::string::npos) in HexStringToUInt() [all …]
|
/third_party/libwebsockets/lib/cose/ |
D | cose_validate.c | 814 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/angle2/src/tests/gl_tests/ |
D | RendererTest.cpp | 56 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/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | StringRef.h | 51 static const size_t npos = ~size_t(0); variable 302 return npos; 325 return npos; 357 size_t rfind(char C, size_t From = npos) const { 365 return npos; 373 size_t rfind_lower(char C, size_t From = npos) const; 418 size_t find_last_of(char C, size_t From = npos) const { 427 size_t find_last_of(StringRef Chars, size_t From = npos) const; 432 size_t find_last_not_of(char C, size_t From = npos) const; 439 size_t find_last_not_of(StringRef Chars, size_t From = npos) const; [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | RendererTest.cpp | 56 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/alsa-lib/src/ucm/ |
D | utils.c | 147 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() 405 struct list_head *pos, *npos; in uc_mgr_free_value() local 408 list_for_each_safe(pos, npos, base) { in uc_mgr_free_value() 419 struct list_head *pos, *npos; in uc_mgr_free_dev_list() local 422 list_for_each_safe(pos, npos, &dev_list->list) { in uc_mgr_free_dev_list() 526 struct list_head *pos, *npos; in uc_mgr_free_sequence() local 529 list_for_each_safe(pos, npos, base) { in uc_mgr_free_sequence() [all …]
|
/third_party/skia/third_party/externals/angle2/src/common/ |
D | string_utils.cpp | 51 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/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | StringRef.h | 56 static const size_t npos = ~size_t(0); 313 return npos; 335 return npos; 366 size_t rfind(char C, size_t From = npos) const { 374 return npos; 382 size_t rfind_lower(char C, size_t From = npos) const; 427 size_t find_last_of(char C, size_t From = npos) const { 436 size_t find_last_of(StringRef Chars, size_t From = npos) const; 441 size_t find_last_not_of(char C, size_t From = npos) const; 448 size_t find_last_not_of(StringRef Chars, size_t From = npos) const; [all …]
|
/third_party/cups-filters/filter/pdftopdf/ |
D | intervalset.cc | 7 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()
|