/ohos5.0/foundation/ability/idl_tool/test/ts/unittest/ts_code_emitter_stub_test/ |
H A D | ts_code_emitter_stub_test.cpp | 80 EXPECT_NE(data.find("Copyright"), std::string::npos); 93 EXPECT_NE(data.find("voidMap"), std::string::npos); 126 EXPECT_NE(data.find("Copyright"), std::string::npos); 139 EXPECT_NE(data.find("voidMap"), std::string::npos); 172 EXPECT_NE(data.find("Copyright"), std::string::npos); 185 EXPECT_NE(data.find("voidMap"), std::string::npos); 218 EXPECT_NE(data.find("Copyright"), std::string::npos); 230 EXPECT_NE(data.find("voidMap"), std::string::npos); 595 EXPECT_NE(data.find("voidMap"), std::string::npos); 631 EXPECT_NE(data.find("voidMap"), std::string::npos); [all …]
|
/ohos5.0/base/hiviewdfx/hiview/test/unittest/common/ |
H A D | holistic_platform_test.cpp | 260 if (dpet.find("testbb") == dpet.npos) { in Run001Check01() 263 if (be2t.find("testbb") != be2t.npos) { in Run001Check01() 295 if ((epe2.find("testbb") != epe2.npos) || (epe2.find("testRun001") != epe2.npos)) { 300 if ((dpe.find("testbb") != dpe.npos) || (dpe.find("testRun001") != dpe.npos)) { 330 if (be1.find("testbbbb") != be1.npos) { in Run002Check01() 334 if ((be2.find("testbbbb") != be2.npos) || (be2.find("testcc") != be2.npos)) { in Run002Check01() 339 if (epe1.find("testcc") != epe1.npos) { in Run002Check01() 344 if (epe2.find("testcc") != epe2.npos) { in Run002Check01() 349 if (epe3.find("testcc") != epe3.npos) { in Run002Check01() 354 if (epe4.find("testcc") != epe4.npos) { in Run002Check01() [all …]
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_dump_test/ |
H A D | fms_form_mgr_dump_test.cpp | 78 EXPECT_NE(result.find("error"), string::npos); 122 EXPECT_EQ(result.find("error"), string::npos); 126 EXPECT_EQ(result.find("error"), string::npos); 146 EXPECT_NE(result.find("error"), string::npos); 166 EXPECT_NE(result.find("error"), string::npos); 186 EXPECT_EQ(result.find("error"), string::npos); 190 EXPECT_EQ(result.find("error"), string::npos); 230 EXPECT_EQ(result.find("error"), string::npos); 234 EXPECT_EQ(result.find("error"), string::npos); 254 EXPECT_EQ(result.find("error"), string::npos); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | asset_loader.h | 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() 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() 199 if (queryCut != BASE_NS::string::npos) { in GetExtension() 212 if (BASE_NS::string::npos != fileExtCut) { in GetBaseName() 221 if (queryPos != BASE_NS::string::npos) { in GetUriParameters() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/ |
H A D | feature_analysis.cpp | 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() 219 if (param.find(L3_SEEK_LAST) != string::npos) { in GetSeekInfo() 247 if ((rule.source.find(leftTag) != string::npos && rule.source.find(rightTag) != string::npos) || in CheckVariable() 248 (rule.depend.find(leftTag) != string::npos && rule.depend.find(rightTag) != string::npos)) { in CheckVariable() 252 …if (subParam.second.find(leftTag) != string::npos && subParam.second.find(rightTag) != string::npo… in CheckVariable() 276 if (pos != string::npos) { in ReplaceVariable() 302 if (one.first.find(rule.depend) != string::npos) { in CheckDepend() 378 if (param.find(COMPOSE_PLUS) != string::npos) { in ComposeParam() [all …]
|
/ohos5.0/base/time/time_service/test/unittest/service_test/src/ |
H A D | time_dfx_test.cpp | 96 EXPECT_NE(result.find("dump all time info"), std::string::npos); 97 EXPECT_NE(result.find("dump the time Zone"), std::string::npos); 110 EXPECT_NE(result.find("dump all timer info"), std::string::npos); 132 EXPECT_NE(result.find("timer id"), std::string::npos); 133 EXPECT_NE(result.find("timer type"), std::string::npos); 157 EXPECT_NE(result.find("timer id"), std::string::npos); 158 EXPECT_NE(result.find("timer trigger"), std::string::npos); 242 EXPECT_NE(result.find("* timer id"), std::string::npos); 274 EXPECT_NE(result.find("* timer id"), std::string::npos); 307 EXPECT_NE(result.find("dump proxy map"), std::string::npos); [all …]
|
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/ |
H A D | account_dump_helper_test.cpp | 132 EXPECT_NE(std::string::npos, pos); 163 EXPECT_NE(std::string::npos, pos); 165 EXPECT_NE(std::string::npos, pos); 167 EXPECT_NE(std::string::npos, pos); 169 EXPECT_NE(std::string::npos, pos); 171 EXPECT_NE(std::string::npos, pos); 191 EXPECT_NE(std::string::npos, pos); 229 EXPECT_NE(std::string::npos, pos); 247 EXPECT_EQ(std::string::npos, pos); 265 EXPECT_NE(std::string::npos, pos); [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | ip_tools.cpp | 42 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 + 1); in ConvertIpv6Address() 236 std::string::size_type npos = tmpExclusionList.find(","); in GetExclusionObjectList() local 237 if (npos == std::string::npos) { in GetExclusionObjectList() [all …]
|
/ohos5.0/base/update/updateservice/services/firmware/utils/src/ |
H A D | firmware_combine_version_utils.cpp | 41 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_MA… in HandlePreloadVersion() 114 …if ((start == std::string::npos) || (end == std::string::npos) || (end <= start + 1) || (end >= IN… in HandlePreloadVersion()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/src/ |
H A D | cloud_sync_notify_handler.cpp | 80 if (pos == string::npos) { in HandleInsertEvent() 102 if (dateTakenPos == string::npos) { in HandleDeleteEvent() 106 if (fileIdPos == string::npos) { in HandleDeleteEvent() 132 if (newDateTakenPos == string::npos) { in HandleTimeUpdateEvent() 136 if (formerDateTakenPos == string::npos) { in HandleTimeUpdateEvent() 140 if (fileIdPos == string::npos) { in HandleTimeUpdateEvent() 188 if (uriString.find("file://cloudsync/Photo/HeightError/") != string::npos) { in MakeResponsibilityChain() 196 if (uriString.find(PhotoColumn::PHOTO_CLOUD_URI_PREFIX) != string::npos) { in MakeResponsibilityChain() 200 if (uriString.find("file://cloudsync/Photo/RebuildCloudData/") != string::npos) { in MakeResponsibilityChain() 208 if (uriString.find(PhotoAlbumColumns::ALBUM_CLOUD_URI_PREFIX) != string::npos) { in MakeResponsibilityChain() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_nb_schema_upgrade_test.cpp | 252 EXPECT_NE(stringValue2d.find("\"field3\":0"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 253 EXPECT_NE(stringValue3d.find("\"field4\":true"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 257 EXPECT_NE(stringValue6d.find("\"field4\":true"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 260 EXPECT_NE(stringValue7d.find("\"field3\":0"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 261 EXPECT_NE(stringValue7d.find("\"field4\":true"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 462 EXPECT_NE(stringValue1n.find("\"field1\":null"), std::string::npos); in CheckNullFieldSucceed() 463 EXPECT_NE(stringValue2n.find("\"field3\":null"), std::string::npos); in CheckNullFieldSucceed() 635 EXPECT_EQ(stringValue2v.find("\"field3\":0"), std::string::npos); 643 EXPECT_EQ(stringValue7v.find("\"field3\":0"), std::string::npos); 705 EXPECT_NE(stringValue2d.find("\"field3\":0"), std::string::npos); [all …]
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/procinfo/ |
H A D | procinfo_test.cpp | 116 ASSERT_TRUE(result.find("Name:") != std::string::npos); 117 ASSERT_TRUE(result.find("SigQ:") != std::string::npos); 118 ASSERT_TRUE(result.find("nonvoluntary_ctxt_switches") != std::string::npos); 121 ASSERT_TRUE(result.find("Process wchan:") != std::string::npos); 124 ASSERT_TRUE(result.find("Tid:") != std::string::npos); 125 ASSERT_TRUE(result.find("wchan:") != std::string::npos); 128 ASSERT_TRUE(result.find("test_procinfo") != std::string::npos); 131 ASSERT_TRUE(result.find("test_procinfo") != std::string::npos); 134 ASSERT_TRUE(result.find("test_procinfo") != std::string::npos);
|
/ohos5.0/foundation/multimedia/av_session/services/session/server/ |
H A D | avsession_service_ext.cpp | 51 while (endPos != std::string::npos) { in SuperLauncher() 84 …nfo.find("SUPPORT_MIRROR_TO_STREAM") != std::string::npos && info.find("true") != std::string::npo… in SplitExtraInfo() 87 if (info.find("deviceId") != std::string::npos && info.find(":") != std::string::npos) { in SplitExtraInfo() 92 if (info.find("deviceName") != std::string::npos && info.find(":") != std::string::npos) { in SplitExtraInfo() 97 if (info.find("deviceType") != std::string::npos && info.find(":") != std::string::npos) { in SplitExtraInfo()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | library_ohos.cpp | 67 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()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | utils.cpp | 208 if (posX.find("px") != std::string::npos || posX.find('%') != std::string::npos || in BgImgPositionIsValid() 210 if (posY.find("px") != std::string::npos || posY.find('%') != std::string::npos || in BgImgPositionIsValid() 221 if (posX.find("px") != std::string::npos || posX.find('%') != std::string::npos || in ObjectImgPositionIsValid() 223 if (posY.find("px") != std::string::npos || posY.find('%') != std::string::npos || in ObjectImgPositionIsValid() 295 if (leftEmbracePosition == std::string::npos) { in ParseCurveParam() 443 if (valueX.find("px") != std::string::npos) { in ParseBackgroundImagePosition() 454 if (valueY.find("px") != std::string::npos) { in ParseBackgroundImagePosition() 467 if (value.find("px") != std::string::npos) { in ParseBackgroundImagePosition() 491 if (spaceIndex != std::string::npos) { in ParseBackgroundImageSize() 494 if (valueX.find("px") != std::string::npos) { in ParseBackgroundImageSize() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_data_manager_utils.cpp | 48 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()
|
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_uri/src/ |
H A D | file_uri.cpp | 58 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()
|
/ohos5.0/base/msdp/device_status/utils/common/src/ |
H A D | util.cpp | 113 return strs.npos; in StringToken() 115 size_t seat = strs.npos; in StringToken() 119 if (strs.npos != temp) { in StringToken() 123 if (strs.npos != seat) { in StringToken() 125 if (strs.npos != seat + 1) { in StringToken() 126 strs = strs.substr(seat + 1, strs.npos); in StringToken() 143 while (str.npos != (size = StringToken(strs, sep, token))) { in StringSplit() 192 if (path.npos == nPos) { in GetFileName() 195 if (path.npos == nPos) { in GetFileName() 198 return path.substr(nPos + 1, path.npos); in GetFileName() [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/common/helper/ |
H A D | path_helper.h | 46 if (script.find(PAG_TAG) == 0 || script.find(NAME_SPACE_TAG) != std::string::npos) { in CheckWorkerPath() 61 if (prev != std::string::npos) { in CheckWorkerPath() 66 if (prev != std::string::npos) { in CheckWorkerPath() 71 if (prev != std::string::npos) { in CheckWorkerPath() 76 if (prev != std::string::npos) { in CheckWorkerPath() 91 if (prev != std::string::npos) { in CheckNormalizedWorkerPath() 97 if (prev != std::string::npos) { in CheckNormalizedWorkerPath() 102 if (prev != std::string::npos) { in CheckNormalizedWorkerPath() 124 if (pos != std::string::npos) { in ConcatFileNameForWorker() 147 while (curr != std::string::npos) { in NormalizePath() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_file_uri.cpp | 181 if (index == std::string::npos) { in ParsePathWithExtrPara() 188 if (index == std::string::npos) { in ParsePathWithExtrPara() 200 if (index == std::string::npos) { in ParsePathWithExtrPara() 257 if (questionPosition != string::npos) { in GetTableName() 401 if (fragIndex != std::string::npos) { in RemoveAllFragment() 490 if (index == std::string::npos) { in GetTimeIdFromUri() 511 if (indexStart == std::string::npos) { in GetTimeIdFromUri() 516 if (indexEnd == std::string::npos) { in GetTimeIdFromUri() 560 if (index == string::npos) { in GetPathFromUri() 566 if (index == string::npos) { in GetPathFromUri() [all …]
|
/ohos5.0/base/powermgr/battery_statistics/test/unittest/src/servicetest/ |
H A D | stats_service_dump_test.cpp | 107 EXPECT_TRUE(index != string::npos); 115 EXPECT_TRUE(missIndex != string::npos); 159 EXPECT_TRUE(index != string::npos); 167 EXPECT_TRUE(missIndex != string::npos); 198 EXPECT_TRUE(index != string::npos); 206 EXPECT_TRUE(missIndex != string::npos); 248 EXPECT_TRUE(index != string::npos); 288 EXPECT_TRUE(index != string::npos); 338 EXPECT_TRUE(index != string::npos); 389 EXPECT_TRUE(index != string::npos); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | string_view.h | 278 return npos - 1; in max_size() 558 return string_view::npos; in find() 570 return string_view::npos; in find() 583 return string_view::npos; in find() 623 return string_view::npos; in find() 639 return string_view::npos; in rfind() 665 return string_view::npos; in rfind() 689 return string_view::npos; in find_first_of() 709 return string_view::npos; in find_first_of() 738 return string_view::npos; in find_last_of() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/mission_dump_test/ |
H A D | mission_dump_test.cpp | 109 EXPECT_TRUE(idx != string::npos); 113 EXPECT_TRUE(idx1 != string::npos); 117 EXPECT_TRUE(idx2 != string::npos); 167 EXPECT_TRUE(idx != string::npos); 170 EXPECT_TRUE(idx != string::npos); 173 EXPECT_TRUE(idx != string::npos); 223 EXPECT_TRUE(idx != string::npos); 226 EXPECT_TRUE(idx != string::npos); 229 EXPECT_TRUE(idx != string::npos); 279 EXPECT_TRUE(idx != string::npos); [all …]
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | string_ex.cpp | 53 while ((pos = strTmp.find(src, pos)) != string::npos) { in ReplaceStr() 69 if (firstBound != std::string::npos) { in TrimStr() 74 if (lastBound != std::string::npos && lastBound != strTmp.size() - 1) { in TrimStr() 102 if (string::npos == pos || sep.empty()) { in SplitStr() 202 return str.find(sub) != string::npos; in IsSubStr() 209 if (leftPos == string::npos) { in GetFirstSubStrBetween() 210 return string::npos; in GetFirstSubStrBetween() 214 if (rightPos == string::npos) { in GetFirstSubStrBetween() 215 return string::npos; in GetFirstSubStrBetween() 227 while (pos != string::npos) { in GetSubStrBetween()
|
/ohos5.0/base/update/updateservice/foundations/ability/utils/include/ |
H A D | string_utils.h | 57 while ((start = str.find_first_not_of(delimiter, end)) != std::string::npos) { in Split() 85 if (split == std::string::npos) { in GetEnumValueString() 95 if (found != std::string::npos) { in GetLastSplitString() 104 for (std::string::size_type pos = 0; pos != std::string::npos; pos += newString.length()) { in ReplaceStringAll() 106 if (pos != std::string::npos) { in ReplaceStringAll() 122 if (indexStart != std::string::npos) { in StringRemove() 124 if (indexEnd != std::string::npos) { in StringRemove()
|