Home
last modified time | relevance | path

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

12345678910>>...65

/foundation/ability/idl_tool/test/ts/unittest/ts_code_emitter_stub_test/
H A Dts_code_emitter_stub_test.cpp80 EXPECT_NE(data.find("Copyright"), std::string::npos); in HWTEST_F()
81 EXPECT_NE(data.find("import IIdlTest"), std::string::npos); in HWTEST_F()
82 EXPECT_NE(data.find("extends rpc.RemoteObject implements IIdlTest"), std::string::npos); in HWTEST_F()
83 EXPECT_NE(data.find("voidParameterTypeVoid"), std::string::npos); in HWTEST_F()
84 EXPECT_NE(data.find("voidParameterTypeShort"), std::string::npos); in HWTEST_F()
85 EXPECT_NE(data.find("voidParameterTypeByte"), std::string::npos); in HWTEST_F()
86 EXPECT_NE(data.find("voidParameterTypeInt"), std::string::npos); in HWTEST_F()
87 EXPECT_NE(data.find("voidParameterTypeLong"), std::string::npos); in HWTEST_F()
88 EXPECT_NE(data.find("voidParameterTypeFloat"), std::string::npos); in HWTEST_F()
89 EXPECT_NE(data.find("voidParameterTypeBooleanArray"), std::string::npos); in HWTEST_F()
[all...]
/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...]
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/pipeline/
H A Drs_render_service_unit_test.cpp126 ASSERT_TRUE(dumpResult.find("screen") != std::string::npos); in HWTEST_F()
129 ASSERT_TRUE(dumpResult.find("surface") != std::string::npos); in HWTEST_F()
132 ASSERT_TRUE(dumpResult.find("fps") != std::string::npos); in HWTEST_F()
135 ASSERT_TRUE(dumpResult.find("All Surfaces Memory Size") != std::string::npos); in HWTEST_F()
138 ASSERT_TRUE(dumpResult.find("RenderServiceTreeDump") != std::string::npos); in HWTEST_F()
141 ASSERT_TRUE(dumpResult.find("Node Not On Tree") != std::string::npos); in HWTEST_F()
144 ASSERT_TRUE(dumpResult.find("RenderServiceTreeDump") != std::string::npos); in HWTEST_F()
147 ASSERT_TRUE(dumpResult.find("EventParamList") != std::string::npos); in HWTEST_F()
150 ASSERT_TRUE(dumpResult.find("help") != std::string::npos); in HWTEST_F()
153 ASSERT_TRUE(dumpResult.find("trimMem") != std::string::npos); in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/
H A Drs_render_service_test.cpp126 ASSERT_TRUE(dumpResult.find("screen") != std::string::npos); in HWTEST_F()
129 ASSERT_TRUE(dumpResult.find("surface") != std::string::npos); in HWTEST_F()
132 ASSERT_TRUE(dumpResult.find("fps") != std::string::npos); in HWTEST_F()
135 ASSERT_TRUE(dumpResult.find("Node Not On Tree") != std::string::npos); in HWTEST_F()
138 ASSERT_TRUE(dumpResult.find("All Surfaces Memory Size") != std::string::npos); in HWTEST_F()
141 ASSERT_TRUE(dumpResult.find("RenderServiceTreeDump") != std::string::npos); in HWTEST_F()
144 ASSERT_TRUE(dumpResult.find("RenderServiceTreeDump") != std::string::npos); in HWTEST_F()
147 ASSERT_TRUE(dumpResult.find("EventParamList") != std::string::npos); in HWTEST_F()
150 ASSERT_TRUE(dumpResult.find("help") != std::string::npos); in HWTEST_F()
153 ASSERT_TRUE(dumpResult.find("trimMem") != std::string::npos); in HWTEST_F()
[all...]
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_dump_test/
H A Dfms_form_mgr_dump_test.cpp78 EXPECT_NE(result.find("error"), string::npos); in HWTEST_F()
98 EXPECT_NE(result.find("options list:"), string::npos); in HWTEST_F()
102 EXPECT_NE(result.find("options list:"), string::npos); in HWTEST_F()
122 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F()
126 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F()
146 EXPECT_NE(result.find("error"), string::npos); in HWTEST_F()
166 EXPECT_NE(result.find("error"), string::npos); in HWTEST_F()
186 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F()
190 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F()
230 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F()
[all...]
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/src/util/
H A Dpath_util.cpp47 if (auto p = res.find_last_of('/'); string::npos != p) { in NormalizePath()
52 if (pos == string::npos) { in NormalizePath()
59 if (pos == string::npos) { in NormalizePath()
72 if (separatorPos == string::npos) { in GetParentPath()
81 size_t queryPos = allowQueryString ? string::npos : uri.find('?'); in ResolvePath()
82 string_view path = (string::npos != queryPos) ? uri.substr(0, queryPos) : uri; in ResolvePath()
94 } else if (path.find("://") != path.npos) { in ResolvePath()
135 while (nextSeparator != string::npos) { in GetRelativePath()
160 if (string::npos != cutPos) { in GetFilename()
170 if (fileExtCut != string::npos) { in GetExtension()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/src/
H A Dcloud_sync_notify_handler.cpp65 if (pos == string::npos) { in HandleInsertEvent()
83 if (dateTakenPos == string::npos) { in HandleDeleteEvent()
87 if (fileIdPos == string::npos) { in HandleDeleteEvent()
108 if (newDateTakenPos == string::npos) { in HandleTimeUpdateEvent()
112 if (formerDateTakenPos == string::npos) { in HandleTimeUpdateEvent()
116 if (fileIdPos == string::npos) { in HandleTimeUpdateEvent()
164 if (uriString.find("file://cloudsync/Photo/HeightError/") != string::npos) { in MakeResponsibilityChain()
168 if (uriString.find("file://cloudsync/Photo/DownloadSuccessed/") != string::npos) { in MakeResponsibilityChain()
172 if (uriString.find(PhotoColumn::PHOTO_CLOUD_URI_PREFIX) != string::npos) { in MakeResponsibilityChain()
176 if (uriString.find("file://cloudsync/Photo/RebuildCloudData/") != string::npos) { in MakeResponsibilityChain()
[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/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/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...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dasset_loader.h63 if (auto p = res.find_last_of('/'); BASE_NS::string::npos != p) { in NormalizePath()
72 if (pos == BASE_NS::string::npos) { in NormalizePath()
79 if (pos == BASE_NS::string::npos) { in NormalizePath()
100 if (separatorPos == BASE_NS::string::npos) { in GetParentPath()
109 size_t queryPos = allowQueryString ? BASE_NS::string::npos : uri.find('?'); in ResolvePath()
110 BASE_NS::string_view path = (BASE_NS::string::npos != queryPos) ? uri.substr(0, queryPos) : uri; in ResolvePath()
122 } else if (path.find("://") != path.npos) { in ResolvePath()
162 while (nextSeparator != BASE_NS::string::npos) { in GetRelativePath()
187 if (BASE_NS::string::npos != cutPos) { in GetFilename()
197 if (fileExtCut != BASE_NS::string::npos) { in GetExtension()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dip_tools.cpp42 std::string::size_type npos = tmpAddress.find("."); in ConvertIpv4Address() local
43 if (npos == std::string::npos) { in ConvertIpv4Address()
46 std::string value = tmpAddress.substr(0, npos); in ConvertIpv4Address()
52 tmpAddress = tmpAddress.substr(npos + 1); in ConvertIpv4Address()
94 std::string::size_type npos = tmpAddress.find(":"); in ConvertIpv6Address() local
95 if (npos == std::string::npos) { in ConvertIpv6Address()
99 std::string value = tmpAddress.substr(0, npos); in ConvertIpv6Address()
107 tmpAddress = tmpAddress.substr(npos in ConvertIpv6Address()
236 std::string::size_type npos = tmpExclusionList.find(","); GetExclusionObjectList() local
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/
H A Dlibrary_ohos.cpp67 if (filePath.find(LIB_NAME(LIB_ENGINE_CORE)) == string_view::npos && in Load()
68 filePath.find(LIB_NAME(LIB_RENDER)) == string_view::npos && in Load()
69 filePath.find(LIB_NAME(LIB_CORE3D)) == string_view::npos && in Load()
70 filePath.find("libMotPhysPlugin.z.so") == string_view::npos && in Load()
71 filePath.find("libPluginMetaObject") == string_view::npos && in Load()
72 filePath.find("libPluginSceneWidget") == string_view::npos) { in Load()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_data_manager_utils.cpp48 if (found != string::npos) { in GetOperationType()
59 if (lastSlashPosition != string::npos) { in GetDisPlayNameFromPath()
69 if (pos != string::npos) { in ObtionCondition()
79 if (uri.find(PhotoColumn::PHOTO_URI_PREFIX) != string::npos) { in GetTypeUriByUri()
81 } else if (uri.find(PhotoAlbumColumns::ALBUM_URI_PREFIX) != string::npos) { in GetTypeUriByUri()
83 } else if (uri.find(AudioColumn::AUDIO_URI_PREFIX) != string::npos) { in GetTypeUriByUri()
/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()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/
H A Ddistributeddb_nb_schema_upgrade_test.cpp251 EXPECT_NE(stringValue1d.find("\"field1\":\"json\""), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
252 EXPECT_NE(stringValue2d.find("\"field3\":0"), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
253 EXPECT_NE(stringValue3d.find("\"field4\":true"), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
254 EXPECT_NE(stringValue4d.find("\"field5\":2021456"), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
255 EXPECT_NE(stringValue5d.find("\"field6\":2021.2"), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
256 EXPECT_NE(stringValue6d.find("\"field1\":\"json\""), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
257 EXPECT_NE(stringValue6d.find("\"field4\":true"), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
258 EXPECT_NE(stringValue6d.find("\"field6\":2021.2"), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
259 EXPECT_NE(stringValue7d.find("\"field1\":\"json\""), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
260 EXPECT_NE(stringValue7d.find("\"field3\":0"), std::string::npos); in CheckSchemaVoidFieldDefaultResult()
[all...]
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_uri/src/
H A Dfile_uri.cpp58 if (posLast == string::npos) { in GetName()
73 if (bundleName == MEDIA_AUTHORITY && sandboxPath.find(".") != string::npos) { in GetPath()
75 if (pos == string::npos) { in GetPath()
90 uri_.ToString().find(NETWORK_PARA) == string::npos && in GetRealPath()
96 uri_.ToString().find(NETWORK_PARA) != string::npos) { in GetRealPath()
111 uri_.ToString().find(NETWORK_PARA) == string::npos && in GetRealPathBySA()
148 if (pos != string::npos && pos > 0 && pos < uri_.ToString().size() - NETWORK_PARA.size()) { in IsRemoteUri()
149 if (uri_.ToString().substr(pos + NETWORK_PARA.size()).find(BACKFLASH) == string::npos) { in IsRemoteUri()

Completed in 11 milliseconds

12345678910>>...65