Home
last modified time | relevance | path

Searched refs:substr (Results 1 - 25 of 2137) sorted by relevance

12345678910>>...86

/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dpath_tools.cpp49 protocol = uri.substr(0, index); in ParseUri()
73 path = path.substr(1); in NormalizePath()
77 if (const string_view sub = path.substr(0, pos); sub == "..") { in NormalizePath()
96 path = path.substr(pos); in NormalizePath()
105 path = path.substr(pos); in NormalizePath()
166 pathIn = pathIn.substr(1); in SplitPath()
171 drive = pathIn.substr(0, 1); in SplitPath()
172 pathIn = pathIn.substr(2); // 2: remove the drive part in SplitPath()
176 filename = pathIn.substr(lastSlash + 1); in SplitPath()
177 path = pathIn.substr( in SplitPath()
[all...]
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/src/util/
H A Dpath_util.cpp35 path = path.substr(1); in NormalizePath()
39 string_view sub = path.substr(0, pos); in NormalizePath()
41 path = path.substr(pos); in NormalizePath()
64 path = path.substr(pos); in NormalizePath()
75 return string(path.substr(0, separatorPos + 1)); in GetParentPath()
82 string_view path = (string::npos != queryPos) ? uri.substr(0, queryPos) : uri; in ResolvePath()
93 path = path.substr(1); in ResolvePath()
156 path = path.substr(0, path.size() - 1); in GetFilename()
161 return string(path.substr(cutPos + 1)); in GetFilename()
173 return string(path.substr(fileExtCu in GetExtension()
[all...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dlight_impl.cpp45 PropertyNameMask()[LIGHT_COMPONENT_NAME] = { LIGHT_COLOR.substr(LIGHT_COMPONENT_NAME_LEN),
46 LIGHT_INTENSITY.substr(LIGHT_COMPONENT_NAME_LEN), LIGHT_NEARPLANE.substr(LIGHT_COMPONENT_NAME_LEN),
47 LIGHT_SHADOWENABLED.substr(LIGHT_COMPONENT_NAME_LEN),
48 LIGHT_SHADOWSTRENGTH.substr(LIGHT_COMPONENT_NAME_LEN),
49 LIGHT_SHADOWDEPTHBIAS.substr(LIGHT_COMPONENT_NAME_LEN),
50 LIGHT_SHADOWNORMALBIAS.substr(LIGHT_COMPONENT_NAME_LEN),
51 LIGHT_SPOTINNERANGLE.substr(LIGHT_COMPONENT_NAME_LEN),
52 LIGHT_SPOTOUTERANGLE.substr(LIGHT_COMPONENT_NAME_LEN), LIGHT_TYPE.substr(LIGHT_COMPONENT_NAME_LE
[all...]
H A Denv_impl.cpp71 PropertyNameMask()[ENV_COMPONENT_NAME] = { ENV_BG.substr(ENV_COMPONENT_NAME_LEN),
72 ENV_DF.substr(ENV_COMPONENT_NAME_LEN), ENV_SF.substr(ENV_COMPONENT_NAME_LEN),
73 ENV_MF.substr(ENV_COMPONENT_NAME_LEN), ENV_CH.substr(ENV_COMPONENT_NAME_LEN),
74 ENV_CMC.substr(ENV_COMPONENT_NAME_LEN), ENV_MH.substr(ENV_COMPONENT_NAME_LEN),
75 ENV_MLL.substr(ENV_COMPONENT_NAME_LEN), ENV_IC.substr(ENV_COMPONENT_NAME_LEN),
76 ENV_ER.substr(ENV_COMPONENT_NAME_LE
[all...]
H A Dasset_loader.h51 path = path.substr(1); in NormalizePath()
55 BASE_NS::string_view sub = path.substr(0, pos); in NormalizePath()
57 path = path.substr(pos); in NormalizePath()
84 path = path.substr(pos); in NormalizePath()
96 path = path.substr(0, path.size() - 1); in GetParentPath()
103 return BASE_NS::string(path.substr(0, separatorPos + 1)); in GetParentPath()
110 BASE_NS::string_view path = (BASE_NS::string::npos != queryPos) ? uri.substr(0, queryPos) : uri; in ResolvePath()
121 path = path.substr(1); in ResolvePath()
183 path = path.substr(0, path.size() - 1); in GetFilename()
188 return BASE_NS::string(path.substr(cutPo in GetFilename()
[all...]
H A Dcamera_impl.cpp84 PropertyNameMask()[CAMERA_COMPONENT_NAME] = { CAMERA_FOV.substr(CAMERA_COMPONENT_NAME_LEN),
85 CAMERA_ASPECT.substr(CAMERA_COMPONENT_NAME_LEN), CAMERA_ZNEAR.substr(CAMERA_COMPONENT_NAME_LEN),
86 CAMERA_ZFAR.substr(CAMERA_COMPONENT_NAME_LEN), CAMERA_XMAG.substr(CAMERA_COMPONENT_NAME_LEN),
87 CAMERA_YMAG.substr(CAMERA_COMPONENT_NAME_LEN), CAMERA_XOFFSET.substr(CAMERA_COMPONENT_NAME_LEN),
88 CAMERA_YOFFSET.substr(CAMERA_COMPONENT_NAME_LEN), CAMERA_PROJECTION.substr(CAMERA_COMPONENT_NAME_LEN),
89 CAMERA_CULLING.substr(CAMERA_COMPONENT_NAME_LE
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/navigation/
H A Dsem_ver.cpp36 base = versionString.substr(0, pos1); in SemVer()
38 base = versionString.substr(0, pos2); in SemVer()
46 preRel = versionString.substr(pos1 + 1, pos2 - pos1 - 1); in SemVer()
47 build = versionString.substr(pos2 + 1); in SemVer()
49 preRel = versionString.substr(pos1 + 1); in SemVer()
52 build = versionString.substr(pos2 + 1); in SemVer()
/foundation/ability/idl_tool/idl_tool_2/util/
H A Dstring_helper.cpp39 std::string element = sources.substr(begin, pos - begin); in Split()
48 std::string element = sources.substr(begin); in Split()
110 const std::string &value, size_t position, const std::string &substr, const std::string &newstr) in Replace()
116 std::string prefix = value.substr(0, position); in Replace()
117 std::string suffix = value.substr(position); in Replace()
118 return prefix + Replace(suffix, substr, newstr); in Replace()
127 std::string prefix = value.substr(0, position); in Replace()
128 std::string suffix = value.substr(position); in Replace()
137 return (end == std::string::npos) ? value.substr(start) : value.substr(star in SubStr()
109 Replace( const std::string &value, size_t position, const std::string &substr, const std::string &newstr) Replace() argument
[all...]
/foundation/window/window_manager/utils/include/
H A Dsingleton_delegator.h31 nameT = nameT.substr(nameT.find("T = ")); in SingletonDelegator()
32 nameT = nameT.substr(sizeof("T ="), nameT.length() - sizeof("T = ")); in SingletonDelegator()
41 nameS = nameS.substr(nameS.find("S = ")); in Dep()
42 nameS = nameS.substr(sizeof("S ="), nameS.length() - sizeof("S = ")); in Dep()
/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/
H A Dsvg_style.cpp36 auto styles = SplitString(newStyle.substr(1), "}."); in ParseCssStyle()
42 auto names = style.substr(0, nameEnd); in ParseCssStyle()
47 auto attrs = style.substr(nameEnd + 1); in ParseCssStyle()
74 res.push_back(source.substr(pos1, pos2 - pos1)); in SplitString()
79 res.push_back(source.substr(pos1)); in SplitString()
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_style.cpp36 auto styles = SplitString(newStyle.substr(1), "}."); in ParseCssStyle()
42 auto names = style.substr(0, nameEnd); in ParseCssStyle()
47 auto attrs = style.substr(nameEnd + 1); in ParseCssStyle()
74 res.push_back(source.substr(pos1, pos2 - pos1)); in SplitString()
79 res.push_back(source.substr(pos1)); in SplitString()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_uri.cpp149 queryMap[pairString.substr(0, splitIndex)] = pairString.substr(splitIndex + 1); in SetQueryMap()
187 auto lastStr = path.substr(index + 1); in ParsePathWithExtrPara()
188 auto uriTempNext = path.substr(0, index); in ParsePathWithExtrPara()
194 auto preStr = uriTempNext.substr(index + 1); in ParsePathWithExtrPara()
197 path = uriTempNext.substr(0, index); in ParsePathWithExtrPara()
200 preStr = uriTempNext.substr(0, index); in ParsePathWithExtrPara()
228 std::string fileId = path.substr(index + 1); in CalFileId()
260 uriString = uriString.substr(0, questionPosition); in GetTableName()
404 uri = uri.substr( in RemoveAllFragment()
[all...]
/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Dwant_params_wrapper.cpp148 wantParams.SetParam(key, WantParamWrapper::Parse(str.substr(strnum, num - strnum + 1))); in Parse()
155 key = str.substr(strnum, str.find('"', strnum) - strnum); in Parse()
159 typeId = atoi(str.substr(strnum, str.find('"', strnum) - strnum).c_str()); in Parse()
167 WantParams::GetInterfaceByType(typeId, str.substr(strnum, str.find('"', strnum) - strnum))); in Parse()
201 wantParams.SetParam(key, WantParamWrapper::Parse(str.substr(strnum, num - strnum))); in ParseWantParams()
208 key = str.substr(strnum, str.find('"', strnum) - strnum); in ParseWantParams()
212 typeId = atoi(str.substr(strnum, str.find('"', strnum) - strnum).c_str()); in ParseWantParams()
220 WantParams::GetInterfaceByType(typeId, str.substr(strnum, str.find('"', strnum) - strnum))); in ParseWantParams()
253 wantParams.SetParam(key, WantParamWrapper::Parse(str.substr(strnum, num - strnum + 1))); in ParseWantParamsWithBrackets()
260 key = str.substr(strnu in ParseWantParamsWithBrackets()
[all...]
/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/common/
H A Djs_backend_asset_manager.cpp46 fileName = fileUri.substr(slashPos + 1); in GetFileInfo()
47 filePath = fileUri.substr(0, slashPos + 1); in GetFileInfo()
51 filePath = filePath.substr(1); in GetFileInfo()
65 filePath = filePath.substr(3); // 3 : offset of filePath in ParseWorkerUri()
74 if (file.substr(filePos + 1) == fileName) { in ParseWorkerUri()
99 if ((startWithSlash && (file.substr(1) == fileName)) || (!startWithSlash && (file == fileName))) { in ParseFileUri()
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/common/
H A Dunified_key.cpp68 std::string schema = data.substr(0, pos + separator.size()); // schema in IsValid()
74 data = data.substr(pos + separator.size()); // intention/bundleName/groupId in IsValid()
79 std::string intentionTmp = data.substr(0, pos); in IsValid()
85 data = data.substr(pos + 1); in IsValid()
90 std::string bundle = data.substr(0, pos); in IsValid()
97 data = data.substr(pos + 1); // groupId in IsValid()
/foundation/filemanagement/app_file_service/utils/src/b_anony/
H A Db_anony.cpp40 result += value.substr(0, plaintextLength); in GetAnonyString()
42 result += value.substr(strLen - plaintextLength, plaintextLength); in GetAnonyString()
56 sub = value.substr(found + 1); in GetAnonyPath()
57 res = value.substr(0, found + 1); in GetAnonyPath()
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/mpd_parser/
H A Ddash_mpd_manager.cpp83 mpdUrlBase = mpdUrlBase.substr(0, sepCharIndex); in GetBaseUrlList()
88 std::string newBaseUrl(mpdUrlBase.substr(0, end + 1)); in GetBaseUrlList()
101 mpdUrlBase = mpdUrlBase.substr(0, sepCharIndex); in GetBaseUrl()
108 urlSchem = mpdUrlBase.substr(0, schemIndex + schemLength); in GetBaseUrl()
109 mpdUrlBase = mpdUrlBase.substr(schemIndex + schemLength); in GetBaseUrl()
114 mpdUrlBase = mpdUrlBase.substr(0, end + 1); in GetBaseUrl()
136 mpdUrlBase = mpdUrlBase.substr(0, beginPathIndex); in MakeBaseUrl()
/foundation/multimedia/media_library/frameworks/services/media_dfx/src/
H A Ddfx_utils.cpp44 string temp = strs.substr(0, pos); in Split()
46 strs = strs.substr(pos + 1, strs.size()); in Split()
67 displayName = safePath.substr(splitIndex + 1); in GetSafePath()
70 safePath = safePath.substr(0, splitIndex) + safeDisplayName; in GetSafePath()
84 extension = displayName.substr(splitIndex); in GetSafeDiaplayName()
93 safeDisplayName = GARBLE + title.substr(length - GARBLE_LAST_ONE) + extension; in GetSafeDiaplayName()
95 safeDisplayName = GARBLE + title.substr(GARBLE_LARGE) + extension; in GetSafeDiaplayName()
97 safeDisplayName = GARBLE + title.substr(length - GARBLE_LAST_TWO) + extension; in GetSafeDiaplayName()
/foundation/ability/ability_runtime/services/dataobsmgr/include/
H A Dcommon_utils.h37 return (name.substr(0, HEAD_SIZE) + REPLACE_CHAIN); in Anonymous()
40 return (name.substr(0, HEAD_SIZE) + REPLACE_CHAIN + name.substr(name.length() - END_SIZE, END_SIZE)); in Anonymous()
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/include/common/
H A Danonymous.h31 return (data.substr(0, HEAD_SIZE) + REPLACE_CHAIN); in Change()
33 return (data.substr(0, HEAD_SIZE) + REPLACE_CHAIN + data.substr(data.size() - END_SIZE, END_SIZE)); in Change()
/foundation/distributeddatamgr/preferences/frameworks/native/platform/include/
H A Dpreferences_anonymous.h31 return (data.substr(0, HEAD_SIZE) + REPLACE_CHAIN); in ToBeAnonymous()
33 return (data.substr(0, HEAD_SIZE) + REPLACE_CHAIN + data.substr(data.size() - END_SIZE, END_SIZE)); in ToBeAnonymous()
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dpage_url_checker_ohos.cpp188 if (url.substr(0, strlen(BUNDLE_TAG)) != BUNDLE_TAG) { in LoadPageUrl()
193 std::string bundleName = url.substr(BUNDLE_START_POS, bundleEndPos - BUNDLE_START_POS); in LoadPageUrl()
196 std::string moduleName = url.substr(moduleStartPos, moduleEndPos - moduleStartPos); in LoadPageUrl()
199 moduleName = moduleName.substr(0, harStartPos); in LoadPageUrl()
244 if (url.substr(0, strlen(BUNDLE_TAG)) != BUNDLE_TAG) { in CheckPreload()
249 std::string bundleName = url.substr(BUNDLE_START_POS, bundleEndPos - BUNDLE_START_POS); in CheckPreload()
252 std::string moduleName = url.substr(moduleStartPos, moduleEndPos - moduleStartPos); in CheckPreload()
302 if (pageName.substr(0, strlen(BUNDLE_TAG)) == BUNDLE_TAG) { in GetTargetPageInfo()
304 targetBundleName = pageName.substr(BUNDLE_START_POS, bundleEndPos - BUNDLE_START_POS); in GetTargetPageInfo()
307 targetModuleName = pageName.substr(moduleStartPo in GetTargetPageInfo()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dip_tools.cpp46 std::string value = tmpAddress.substr(0, npos); in ConvertIpv4Address()
52 tmpAddress = tmpAddress.substr(npos + 1); in ConvertIpv4Address()
99 std::string value = tmpAddress.substr(0, npos); in ConvertIpv6Address()
103 std::string valueFromPos0 = value.substr(POS_0, HEX_BYTE_DIGIT_NUM); in ConvertIpv6Address()
104 std::string valueFromPos2 = value.substr(POS_2, HEX_BYTE_DIGIT_NUM); in ConvertIpv6Address()
107 tmpAddress = tmpAddress.substr(npos + 1); in ConvertIpv6Address()
116 std::string addressFromPos0 = tmpAddress.substr(POS_0, HEX_BYTE_DIGIT_NUM); in ConvertIpv6Address()
117 std::string addressFromPos2 = tmpAddress.substr(POS_2, HEX_BYTE_DIGIT_NUM); in ConvertIpv6Address()
241 std::string exclusionOne = tmpExclusionList.substr(0, npos); in GetExclusionObjectList()
244 tmpExclusionList = tmpExclusionList.substr(npo in GetExclusionObjectList()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/src/
H A Dcloud_sync_notify_handler.cpp68 string idString = uriString.substr(pos + 1); in HandleInsertEvent()
91 string dateTaken = uriString.substr(dateTakenPos + 1); in HandleDeleteEvent()
92 string fileId = uriString.substr(fileIdPos + 1, dateTakenPos - fileIdPos - 1); in HandleDeleteEvent()
120 string newDateTaken = uriString.substr(newDateTakenPos + 1); in HandleTimeUpdateEvent()
121 string formerDateTaken = uriString.substr(formerDateTakenPos + 1, newDateTakenPos - formerDateTakenPos - 1); in HandleTimeUpdateEvent()
122 string fileId = uriString.substr(fileIdPos + 1, formerDateTakenPos - fileIdPos - 1); in HandleTimeUpdateEvent()
/foundation/multimedia/player_framework/services/utils/
H A Dtime_format_utils.cpp55 if (iso8601Str.substr(length - 1, length).compare("Z") != 0) { in FormatDateTimeByTimeZone()
56 int mins = std::stoi(iso8601Str.substr(length - 2, 2)); in FormatDateTimeByTimeZone()
57 int hours = std::stoi(iso8601Str.substr(length - 4, 2)); in FormatDateTimeByTimeZone()
103 data = dataTime.substr(0, position); in FormatDataTimeByString()
104 time = dataTime.substr(position); in FormatDataTimeByString()
115 time = time.substr(0, time.find(".")); in FormatDataTimeByString()

Completed in 11 milliseconds

12345678910>>...86