/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/navigation/ |
H A D | sem_ver.cpp | 33 size_t pos2 = versionString.find(BUILD_META_SEPARATOR); in SemVer() local 37 } else if (pos2 != std::string::npos) { in SemVer() 38 base = versionString.substr(0, pos2); in SemVer() 45 if (pos2 != std::string::npos) { in SemVer() 46 preRel = versionString.substr(pos1 + 1, pos2 - pos1 - 1); in SemVer() 47 build = versionString.substr(pos2 + 1); in SemVer() 51 } else if (pos2 != std::string::npos) { in SemVer() 52 build = versionString.substr(pos2 + 1); in SemVer()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_style.cpp | 69 std::string::size_type pos2; in SplitString() local 71 pos2 = source.find(mark); in SplitString() 73 while (std::string::npos != pos2) { in SplitString() 74 res.push_back(source.substr(pos1, pos2 - pos1)); in SplitString() 75 pos1 = pos2 + mark.size(); in SplitString() 76 pos2 = source.find(mark, pos1); in SplitString()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_style.cpp | 69 std::string::size_type pos2; in SplitString() local 71 pos2 = source.find(mark); in SplitString() 73 while (std::string::npos != pos2) { in SplitString() 74 res.push_back(source.substr(pos1, pos2 - pos1)); in SplitString() 75 pos1 = pos2 + mark.size(); in SplitString() 76 pos2 = source.find(mark, pos1); in SplitString()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | util.cpp | 24 string::size_type pos2 = str.find(pattern); in SplitString() local 25 while (string::npos != pos2) { in SplitString() 26 vec.push_back(str.substr(pos1, pos2 - pos1)); in SplitString() 27 pos1 = pos2 + pattern.size(); in SplitString() 28 pos2 = str.find(pattern, pos1); in SplitString()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | theme_pack_resource.cpp | 188 auto pos2 = iconPath.rfind('/'); in ParseIcon() local 189 if (pos1 == std::string::npos || pos2 == std::string::npos) { in ParseIcon() 193 if (pos1 < pos2 + 1) { in ParseIcon() 196 std::string iconName = iconPath.substr(pos2 + 1, pos1 - pos2 - 1); in ParseIcon() 263 auto pos2 = path.find('/', len + 1); in GetBundleInfo() local 264 if (pos2 == std::string::npos) { in GetBundleInfo() 268 if (pos2 < len + 1) { in GetBundleInfo() 271 std::string moduleName = path.substr(len + 1, pos2 - len -1); in GetBundleInfo() 335 auto pos2 = path.rfind('/'); in LoadThemeIconResource() local 336 if (pos1 == std::string::npos || pos2 == std::string::npos || pos1 < pos2 + 1) { in LoadThemeIconResource() [all …]
|
H A D | hap_manager.cpp | 1046 auto pos2 = resTypeName.rfind('.'); in GetResTypeAndResName() local 1047 if (pos1 == std::string::npos || pos2 == std::string::npos) { in GetResTypeAndResName() 1050 if (pos2 < pos1 + 1) { in GetResTypeAndResName() 1053 const std::string resType = resTypeName.substr(pos1 + 1, pos2 - pos1 - 1); in GetResTypeAndResName() 1057 const std::string resName = resTypeName.substr(pos2 + 1); in GetResTypeAndResName()
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | element_name.cpp | 112 std::string::size_type pos2 = str.find(delim); in Split() local 113 while (std::string::npos != pos2) { in Split() 114 vec.push_back(str.substr(pos1, pos2 - pos1)); in Split() 115 pos1 = pos2 + delim.size(); in Split() 116 pos2 = str.find(delim, pos1); in Split()
|
/ohos5.0/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/src/ |
H A D | rs_graphic_test_main.cpp | 42 string::size_type pos2 = str.find(pattern); in SplitString() local 43 while (pos2 != string::npos) { in SplitString() 44 vec.push_back(str.substr(pos1, pos2 - pos1)); in SplitString() 45 pos1 = pos2 + pattern.size(); in SplitString() 46 pos2 = str.find(pattern, pos1); in SplitString()
|
/ohos5.0/foundation/communication/nfc/services/src/card_emulation/ |
H A D | setting_data_share_impl.cpp | 116 std::string::size_type pos2 = str.find(delim); in Split() local 117 while (std::string::npos != pos2) { in Split() 118 vec.push_back(str.substr(pos1, pos2 - pos1)); in Split() 119 pos1 = pos2 + delim.size(); in Split() 120 pos2 = str.find(delim, pos1); in Split()
|
/ohos5.0/base/telephony/call_manager/services/call_voice_assistant/src/ |
H A D | call_voice_assistant_manager.cpp | 691 std::size_t pos1 = 0, pos2 = 0; in UpdateReplyData() local 693 while (pos1 != std::string::npos && pos2 != std::string::npos) { in UpdateReplyData() 694 pos1 = str.find("\"", pos2 + 1); in UpdateReplyData() 698 pos2 = str.find("\"", pos1 + 1); in UpdateReplyData() 699 if (pos2 == std::string::npos) { in UpdateReplyData() 702 auto key = str.substr(pos1 + 1, pos2 -pos1 - 1); in UpdateReplyData() 703 pos1 = str.find("\"", pos2 + 1); in UpdateReplyData() 707 pos2 = str.find("\"", pos1 + 1); in UpdateReplyData() 708 if (pos2 == std::string::npos) { in UpdateReplyData() 711 auto value = str.substr(pos1 + 1, pos2 -pos1 - 1); in UpdateReplyData()
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/ |
H A D | egl_wrapper_layer.cpp | 106 size_t pos2 = str.find(DEBUG_LAYERS_DELIMITER); in SplitEnvString() local 107 while (pos2 != std::string::npos) { in SplitEnvString() 108 layers->emplace_back(str.substr(pos1, pos2-pos1)); in SplitEnvString() 109 pos1 = pos2 + 1; in SplitEnvString() 110 pos2 = str.find(DEBUG_LAYERS_DELIMITER, pos1); in SplitEnvString()
|
/ohos5.0/foundation/distributedhardware/distributed_input/common/include/ |
H A D | white_list_util.cpp | 165 std::size_t pos2 = column.find(SPLIT_LINE); in ReadLineDataStepOne() local 166 while (pos2 != std::string::npos) { in ReadLineDataStepOne() 167 std::string single = column.substr(0, pos2); in ReadLineDataStepOne() 168 column = column.substr(pos2 + 1, column.size()); in ReadLineDataStepOne() 169 pos2 = column.find(SPLIT_LINE); in ReadLineDataStepOne()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/ |
H A D | ylong_tokio_mem.rs | 31 let pos2 = out.find("total").unwrap(); in get_memory_info() localVariable 32 out.drain(pos1 + 8..pos2); in get_memory_info()
|
H A D | ylong_tokio_spawn.rs | 34 let pos2 = out.find("total").unwrap(); in get_memory_info() localVariable 35 out.drain(pos1 + 8..pos2); in get_memory_info()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | calendar_composed_element.cpp | 172 std::string::size_type pos1, pos2; in SplitString() local 174 pos2 = s.find(c); in SplitString() 175 while (std::string::npos != pos2) { in SplitString() 176 v.push_back(s.substr(pos1, pos2 - pos1)); in SplitString() 177 pos1 = pos2 + c.size(); in SplitString() 178 pos2 = s.find(c, pos1); in SplitString()
|
/ohos5.0/foundation/ability/ability_base/test/unittest/want/ |
H A D | want_test.cpp | 225 size_t pos2; variable 231 pos2 = in.GetWritePosition(); 237 pos2 = in.GetWritePosition(); 285 size_t pos2; variable 290 pos2 = in.GetWritePosition(); 295 pos2 = in.GetWritePosition(); 344 size_t pos2; variable 350 pos2 = in.GetWritePosition(); 356 pos2 = in.GetWritePosition(); 409 size_t pos2; variable [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | extension_config.cpp | 224 std::string::size_type pos2 = uri.find('/', pos1 + 1); in CheckServiceExtensionUriValid() local 225 std::string::size_type pos3 = uri.find('/', pos2 + 1); in CheckServiceExtensionUriValid() 227 if ((pos3 == pos2 + 1) || (pos4 == pos3 + 1) || (pos4 == uri.size() - 1)) { in CheckServiceExtensionUriValid()
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/distributedWant/ |
H A D | distributed_want_test.cpp | 448 pos2 = in.GetWritePosition(); 455 pos2 = in.GetReadPosition(); 464 pos2 = in.GetReadPosition(); 496 size_t pos2; variable 501 pos2 = in.GetWritePosition(); 506 pos2 = in.GetWritePosition(); 555 size_t pos2; variable 561 pos2 = in.GetWritePosition(); 567 pos2 = in.GetWritePosition(); 628 pos2 = in.GetWritePosition(); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_system_properties.cpp | 55 std::string::size_type pos2 = paramsStr.find(seperator); in ParseDfxSurfaceNamesString() local 56 if (std::string::npos == pos2) { in ParseDfxSurfaceNamesString() 60 while (std::string::npos != pos2) { in ParseDfxSurfaceNamesString() 61 splitStrs.push_back(paramsStr.substr(pos1, pos2 - pos1)); in ParseDfxSurfaceNamesString() 62 pos1 = pos2 + seperator.size(); in ParseDfxSurfaceNamesString() 63 pos2 = paramsStr.find(seperator, pos1); in ParseDfxSurfaceNamesString()
|
/ohos5.0/base/print/print_fwk/services/scan_service/src/ |
H A D | scan_system_data.cpp | 169 size_t pos2 = deviceId.rfind(':', pos1 - 1); in ReplaceDeviceIdUsbPort() local 170 if (pos2 == std::string::npos) { in ReplaceDeviceIdUsbPort() 174 …std::string newDeviceId = deviceId.substr(0, pos2 + 1).append(formattedStart).append(":").append(f… in ReplaceDeviceIdUsbPort()
|
/ohos5.0/base/telephony/core_service/utils/vcard/src/ |
H A D | vcard_utils.cpp | 114 std::string::size_type pos2 = str.find_last_not_of(" \t\n\r\f\v"); in Trim() local 115 if (pos1 != std::string::npos && pos2 != std::string::npos) { in Trim() 116 str = str.substr(pos1, pos2 - pos1 + 1); in Trim()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | string_view.h | 124 … size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2) const; 376 size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2) const in compare() argument 378 return substr(pos1, count1).compare(v.substr(pos2, count2)); in compare()
|
H A D | string.h | 671 …int compare(size_type pos1, size_type count1, string_view v, size_type pos2, size_type count2) con… in compare() argument 673 return substr(pos1, count1).compare(v.substr(pos2, count2)); in compare()
|
/ohos5.0/foundation/multimedia/player_framework/services/services/player/server/ |
H A D | player_server.cpp | 1118 size_t pos2 = uri.find("offset="); in SetMediaSource() local 1120 …if (mimeType == AVMimeType::APPLICATION_M3U8 && pos1 != std::string::npos && pos2 != std::string::… in SetMediaSource() 1123 … std::string offsetStr = uri.substr(pos2 + strlen("offset="), pos3 - pos2 - strlen("offset=")); in SetMediaSource()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_builder.cpp | 872 const auto& pos2 = posPtr[bb]; in SmoothNormal() local 874 auto faceNorm = Math::Cross(pos2 - pos1, pos3 - pos1); in SmoothNormal() 892 const auto& pos2 = posPtr[i + 1]; in GenerateDefaultNormals() local 894 auto faceNorm = Math::Normalize(Math::Cross(pos2 - pos1, pos3 - pos1)); in GenerateDefaultNormals()
|