Home
last modified time | relevance | path

Searched refs:pos1 (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/
H A Dsvg_style.cpp68 std::string::size_type pos1; in SplitString() local
72 pos1 = 0; 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()
78 if (pos1 != source.length()) { in SplitString()
79 res.push_back(source.substr(pos1)); in SplitString()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_style.cpp68 std::string::size_type pos1; in SplitString() local
72 pos1 = 0; 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()
78 if (pos1 != source.length()) { in SplitString()
79 res.push_back(source.substr(pos1)); in SplitString()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/navigation/
H A Dsem_ver.cpp32 size_t pos1 = versionString.find(PRE_RELEASE_SEPARATOR); in SemVer() local
35 if (pos1 != std::string::npos) { in SemVer()
36 base = versionString.substr(0, pos1); in SemVer()
44 if (pos1 != std::string::npos) { in SemVer()
46 preRel = versionString.substr(pos1 + 1, pos2 - pos1 - 1); in SemVer()
49 preRel = versionString.substr(pos1 + 1); in SemVer()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dutil.cpp23 string::size_type pos1 = 0; in SplitString() local
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()
30 if (pos1 != str.length()) { in SplitString()
31 vec.push_back(str.substr(pos1)); in SplitString()
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Delement_name.cpp111 std::string::size_type pos1 = 0; in Split() local
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()
118 if (pos1 != str.size()) { in Split()
119 vec.push_back(str.substr(pos1)); in Split()
/ohos5.0/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/src/
H A Drs_graphic_test_main.cpp41 string::size_type pos1 = 0; in SplitString() local
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()
49 if (pos1 != str.length()) { in SplitString()
50 vec.push_back(str.substr(pos1)); in SplitString()
/ohos5.0/foundation/communication/nfc/services/src/card_emulation/
H A Dsetting_data_share_impl.cpp115 std::string::size_type pos1 = 0; in Split() local
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()
122 if (pos1 != str.size()) { in Split()
123 vec.push_back(str.substr(pos1)); in Split()
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl_wrapper_layer.cpp105 size_t pos1 = 0; in SplitEnvString() local
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()
113 if (pos1 != str.length()) { in SplitEnvString()
114 layers->emplace_back(str.substr(pos1)); in SplitEnvString()
/ohos5.0/base/telephony/call_manager/services/call_voice_assistant/src/
H A Dcall_voice_assistant_manager.cpp691 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()
695 if (pos1 == std::string::npos) { in UpdateReplyData()
698 pos2 = str.find("\"", pos1 + 1); in UpdateReplyData()
702 auto key = str.substr(pos1 + 1, pos2 -pos1 - 1); in UpdateReplyData()
703 pos1 = str.find("\"", pos2 + 1); in UpdateReplyData()
704 if (pos1 == std::string::npos) { in UpdateReplyData()
707 pos2 = str.find("\"", pos1 + 1); in UpdateReplyData()
711 auto value = str.substr(pos1 + 1, pos2 -pos1 - 1); in UpdateReplyData()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dcalendar_composed_element.cpp172 std::string::size_type pos1, pos2; in SplitString() local
173 pos1 = 0; 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()
180 if (pos1 != s.length()) { in SplitString()
181 v.push_back(s.substr(pos1)); in SplitString()
/ohos5.0/foundation/distributedhardware/distributed_input/common/include/
H A Dwhite_list_util.cpp195 std::size_t pos1 = line.find(SPLIT_COMMA); in SplitCombinationKey() local
196 while (pos1 != std::string::npos) { in SplitCombinationKey()
197 std::string column = line.substr(0, pos1); in SplitCombinationKey()
198 line = line.substr(pos1 + 1, line.size()); in SplitCombinationKey()
199 pos1 = line.find(SPLIT_COMMA); in SplitCombinationKey()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/
H A Dstring_view.h122 constexpr int compare(size_type pos1, size_type count1, basic_string_view v) const;
124 … size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2) const;
126 constexpr int compare(size_type pos1, size_type count1, CharT const* const s) const;
127 …constexpr int compare(size_type pos1, size_type count1, CharT const* const s, size_type count2) co…
369 constexpr int basic_string_view<CharT>::compare(size_type pos1, size_type count1, basic_string_view… in compare() argument
371 return substr(pos1, count1).compare(v); in compare()
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()
405 return substr(pos1, count1).compare(s); in compare()
410 size_type pos1, size_type count1, CharT const* const s, size_type count2) const in compare() argument
[all …]
H A Dstring.h666 int compare(size_type pos1, size_type count1, string_view v) const in compare() argument
668 return substr(pos1, count1).compare(v); in compare()
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()
681 int compare(size_type pos1, size_type count1, CharT const* const s) const in compare() argument
683 return substr(pos1, count1).compare(s); in compare()
686 int compare(size_type pos1, size_type count1, CharT const* const s, size_type count2) const in compare() argument
688 return substr(pos1, count1).compare(basic_string_view(s, count2)); in compare()
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dtheme_pack_resource.cpp187 auto pos1 = 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()
334 auto pos1 = path.rfind('.'); in LoadThemeIconResource() local
336 if (pos1 == std::string::npos || pos2 == std::string::npos || pos1 < pos2 + 1) { in LoadThemeIconResource()
340 std::string iconName = path.substr(pos2 + 1, pos1 - pos2 - 1); in LoadThemeIconResource()
H A Dhap_manager.cpp1045 auto pos1 = resTypeName.find('.'); 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()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/
H A Dylong_tokio_mem.rs30 let pos1 = out.find("Mapping").unwrap(); in get_memory_info() localVariable
32 out.drain(pos1 + 8..pos2); in get_memory_info()
H A Dylong_tokio_spawn.rs33 let pos1 = out.find("Mapping").unwrap(); in get_memory_info() localVariable
35 out.drain(pos1 + 8..pos2); in get_memory_info()
/ohos5.0/foundation/ability/ability_base/test/unittest/want/
H A Dwant_test.cpp224 size_t pos1; variable
241 pos1 = in.GetReadPosition();
250 pos1 = in.GetReadPosition();
284 size_t pos1; variable
297 pos1 = in.GetReadPosition();
306 pos1 = in.GetReadPosition();
343 size_t pos1; variable
360 pos1 = in.GetReadPosition();
369 pos1 = in.GetReadPosition();
408 size_t pos1; variable
[all …]
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/distributedWant/
H A Ddistributed_want_test.cpp452 pos1 = in.GetReadPosition();
461 pos1 = in.GetReadPosition();
495 size_t pos1; variable
508 pos1 = in.GetReadPosition();
517 pos1 = in.GetReadPosition();
554 size_t pos1; variable
571 pos1 = in.GetReadPosition();
580 pos1 = in.GetReadPosition();
632 pos1 = in.GetReadPosition();
641 pos1 = in.GetReadPosition();
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_system_properties.cpp54 std::string::size_type pos1 = 0; in ParseDfxSurfaceNamesString() local
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()
65 if (pos1 != paramsStr.length()) { in ParseDfxSurfaceNamesString()
66 splitStrs.push_back(paramsStr.substr(pos1)); in ParseDfxSurfaceNamesString()
/ohos5.0/base/telephony/core_service/utils/vcard/src/
H A Dvcard_utils.cpp113 std::string::size_type pos1 = str.find_first_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/ability/ability_runtime/services/abilitymgr/src/
H A Dextension_config.cpp223 std::string::size_type pos1 = 0; in CheckServiceExtensionUriValid() local
224 std::string::size_type pos2 = uri.find('/', pos1 + 1); in CheckServiceExtensionUriValid()
/ohos5.0/base/print/print_fwk/services/scan_service/src/
H A Dscan_system_data.cpp164 size_t pos1 = deviceId.rfind(':'); in ReplaceDeviceIdUsbPort() local
165 if (pos1 == std::string::npos) { in ReplaceDeviceIdUsbPort()
169 size_t pos2 = deviceId.rfind(':', pos1 - 1); in ReplaceDeviceIdUsbPort()
/ohos5.0/commonlibrary/ets_utils/js_api_module/uri/
H A Djs_uri.cpp269 size_t pos1 = data_.rfind(']'); in AnalysisHostAndPath() local
270 if (pos1 == std::string::npos || pos > pos1) { in AnalysisHostAndPath()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Ddwarf_test.cpp695 auto pos1 = pcRange.find(".."); in ParseFdeResultFromFile() local
696 std::string pcStart = pcRange.substr(0, pos1); in ParseFdeResultFromFile()
697 std::string pcEnd = pcRange.substr(pos1 + strlen("..")); in ParseFdeResultFromFile()

12