Home
last modified time | relevance | path

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

12345678910>>...39

/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...]
/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...]
/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...]
/base/update/updateservice/services/firmware/utils/src/
H A Dfirmware_combine_version_utils.cpp41 if (start == std::string::npos) { in HandleBaseVersion()
46 if (end == std::string::npos) { in HandleBaseVersion()
58 if ((start == std::string::npos) || (end == std::string::npos)) { in HandleBaseVersionLog()
91 if ((start == std::string::npos) || (mid == std::string::npos) || (end == std::string::npos) || in HandleCustVersion()
108 if ((start == std::string::npos) || (end == std::string::npos) || (end <= start) || (end >= INT_MAX)) { in HandlePreloadVersion()
114 if ((start == std::string::npos) || (en in HandlePreloadVersion()
[all...]
/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/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...]
/base/hiviewdfx/faultloggerd/test/unittest/procinfo/
H A Dprocinfo_test.cpp116 ASSERT_TRUE(result.find("Name:") != std::string::npos); in HWTEST_F()
117 ASSERT_TRUE(result.find("SigQ:") != std::string::npos); in HWTEST_F()
118 ASSERT_TRUE(result.find("nonvoluntary_ctxt_switches") != std::string::npos); in HWTEST_F()
121 ASSERT_TRUE(result.find("Process wchan:") != std::string::npos); in HWTEST_F()
124 ASSERT_TRUE(result.find("Tid:") != std::string::npos); in HWTEST_F()
125 ASSERT_TRUE(result.find("wchan:") != std::string::npos); in HWTEST_F()
128 ASSERT_TRUE(result.find("test_procinfo") != std::string::npos); in HWTEST_F()
131 ASSERT_TRUE(result.find("test_procinfo") != std::string::npos); in HWTEST_F()
134 ASSERT_TRUE(result.find("test_procinfo") != std::string::npos); in HWTEST_F()
/test/testfwk/arkxtest/uitest/test/
H A Dui_model_test.cpp79 ASSERT_TRUE(str0.find(ATTR_TEXT) != string::npos); in TEST()
80 ASSERT_TRUE(str0.find("wyz") != string::npos); in TEST()
81 ASSERT_TRUE(str0.find(ATTR_ID) != string::npos); in TEST()
82 ASSERT_TRUE(str0.find("100") != string::npos); in TEST()
87 ASSERT_TRUE(str0.find(ATTR_TEXT) != string::npos); in TEST()
88 ASSERT_TRUE(str0.find("wyz") != string::npos); in TEST()
89 ASSERT_TRUE(str0.find(ATTR_ID) != string::npos); in TEST()
90 ASSERT_TRUE(str0.find("211") != string::npos); in TEST()
91 ASSERT_TRUE(str0.find("100") == string::npos); in TEST()
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
H A Dfeature_analysis.cpp127 if (one.first.find("LayerTwoCmd") != string::npos || in CheckStartSegment()
128 one.first.find("LayerOneCmd") != string::npos) { in CheckStartSegment()
147 bool isOrExp = (cmdSrc.find(L3_OR_DESCRIPTOR) == string::npos) ? false : true; in IsSourceMatch()
148 bool isAndExp = (cmdSrc.find(L3_AND_DESCRIPTOR) == string::npos) ? false : true; in IsSourceMatch()
150 return line.find(cmdSrc) != string::npos; in IsSourceMatch()
164 if (line.find(str) != string::npos) { in IsMatchOrExpression()
179 if (pos == string::npos) { in IsMatchAndExpression()
200 if (reg.find(L3_VARIABLE_TRACE_BLOCK) != string::npos || regex_search(src, result, regex(reg))) { in ParseElementForParam()
219 if (param.find(L3_SEEK_LAST) != string::npos) { in GetSeekInfo()
247 if ((rule.source.find(leftTag) != string::npos in CheckVariable()
[all...]
/base/hiviewdfx/hiview/test/unittest/common/
H A Dholistic_platform_test.cpp260 if (dpet.find("testbb") == dpet.npos) { in Run001Check01()
263 if (be2t.find("testbb") != be2t.npos) { in Run001Check01()
272 if (be2tt.find("testRun001") == be2tt.npos) { in Run001Check02()
277 if (dpett.find("testRun001") == dpett.npos) { in Run001Check02()
295 if ((epe2.find("testbb") != epe2.npos) || (epe2.find("testRun001") != epe2.npos)) { in HWTEST_F()
300 if ((dpe.find("testbb") != dpe.npos) || (dpe.find("testRun001") != dpe.npos)) { in HWTEST_F()
330 if (be1.find("testbbbb") != be1.npos) { in Run002Check01()
334 if ((be2.find("testbbbb") != be2.npos) || (be in Run002Check01()
[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...]
/base/telephony/cellular_data/test/
H A Dcellular_data_dump_helper_test.cpp61 ASSERT_FALSE(result.find("CellularData") == std::string::npos); in HWTEST_F()
62 ASSERT_FALSE(result.find("Usage:dump <command> [options]") == std::string::npos); in HWTEST_F()
75 ASSERT_FALSE(result.find("Ohos cellular data service") == std::string::npos); in HWTEST_F()
76 ASSERT_TRUE(result.find("CellularDataRoamingEnabled") == std::string::npos); in HWTEST_F()
89 ASSERT_FALSE(result.find("Ohos cellular data service") == std::string::npos); in HWTEST_F()
90 ASSERT_TRUE(result.find("CellularDataRoamingEnabled") == std::string::npos); in HWTEST_F()
103 ASSERT_FALSE(result.find("Ohos cellular data service") == std::string::npos); in HWTEST_F()
104 ASSERT_FALSE(result.find("CellularDataRoamingEnabled") == std::string::npos); in HWTEST_F()
/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()
/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/
H A Daccount_dump_helper_test.cpp132 EXPECT_NE(std::string::npos, pos); in HWTEST_F()
163 EXPECT_NE(std::string::npos, pos); in HWTEST_F()
165 EXPECT_NE(std::string::npos, pos); in HWTEST_F()
167 EXPECT_NE(std::string::npos, pos); in HWTEST_F()
169 EXPECT_NE(std::string::npos, pos); in HWTEST_F()
171 EXPECT_NE(std::string::npos, pos); in HWTEST_F()
191 EXPECT_NE(std::string::npos, pos); in HWTEST_F()
229 EXPECT_NE(std::string::npos, pos); in HWTEST_F()
247 EXPECT_EQ(std::string::npos, pos); in HWTEST_F()
265 EXPECT_NE(std::string::npos, po in HWTEST_F()
[all...]
/base/time/time_service/test/unittest/service_test/src/
H A Dtime_dfx_test.cpp96 EXPECT_NE(result.find("dump all time info"), std::string::npos); in HWTEST_F()
97 EXPECT_NE(result.find("dump the time Zone"), std::string::npos); in HWTEST_F()
110 EXPECT_NE(result.find("dump all timer info"), std::string::npos); in HWTEST_F()
132 EXPECT_NE(result.find("timer id"), std::string::npos); in HWTEST_F()
133 EXPECT_NE(result.find("timer type"), std::string::npos); in HWTEST_F()
157 EXPECT_NE(result.find("timer id"), std::string::npos); in HWTEST_F()
158 EXPECT_NE(result.find("timer trigger"), std::string::npos); in HWTEST_F()
173 EXPECT_NE(result.find("dump current time info,include localtime,timezone info"), std::string::npos); in HWTEST_F()
174 EXPECT_NE(result.find("dump all timer info"), std::string::npos); in HWTEST_F()
175 EXPECT_NE(result.find("dump the timer info with timer id"), std::string::npos); in HWTEST_F()
[all...]
/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...]
/base/msdp/device_status/utils/common/src/
H A Dutil.cpp121 return strs.npos; in StringToken()
123 size_t seat = strs.npos; in StringToken()
127 if (strs.npos != temp) { in StringToken()
131 if (strs.npos != seat) { in StringToken()
133 if (strs.npos != seat + 1) { in StringToken()
134 strs = strs.substr(seat + 1, strs.npos); in StringToken()
151 while (str.npos != (size = StringToken(strs, sep, token))) { in StringSplit()
200 if (path.npos == nPos) { in GetFileName()
203 if (path.npos == nPos) { in GetFileName()
206 return path.substr(nPos + 1, path.npos); in GetFileName()
[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...]

Completed in 13 milliseconds

12345678910>>...39