/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | path_tools.cpp | 49 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 D | path_util.cpp | 35 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 D | light_impl.cpp | 45 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 D | env_impl.cpp | 71 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 D | asset_loader.h | 51 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 D | camera_impl.cpp | 84 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 D | sem_ver.cpp | 36 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/window/window_manager/utils/include/ |
H A D | singleton_delegator.h | 31 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()
|
H A D | singleton_container.h | 49 nameT = nameT.substr(nameT.find("T = ")); in Get() 50 nameT = nameT.substr(sizeof("T ="), nameT.length() - sizeof("T = ")); in Get() 61 nameT = nameT.substr(nameT.find("T = ")); in Set() 62 nameT = nameT.substr(sizeof("T ="), nameT.length() - sizeof("T = ")); in Set()
|
/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | string_helper.cpp | 39 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/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_style.cpp | 36 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 D | svg_style.cpp | 36 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/filemanagement/app_file_service/utils/src/b_anony/ |
H A D | b_anony.cpp | 40 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/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/common/ |
H A D | js_backend_asset_manager.cpp | 46 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 D | unified_key.cpp | 68 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/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | want_params_wrapper.cpp | 148 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/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_file_uri.cpp | 149 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/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/mpd_parser/ |
H A D | dash_mpd_manager.cpp | 83 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/ability/ability_runtime/services/dataobsmgr/include/ |
H A D | common_utils.h | 37 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 D | anonymous.h | 31 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 D | preferences_anonymous.h | 31 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/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/utils/src/ |
H A D | kvstore_utils.cpp | 35 return (name.substr(0, HEAD_SIZE) + REPLACE_CHAIN); in ToBeAnonymous() 38 return (name.substr(0, HEAD_SIZE) + REPLACE_CHAIN + name.substr(name.length() - END_SIZE, END_SIZE)); in ToBeAnonymous()
|
/foundation/multimedia/media_library/frameworks/services/media_dfx/src/ |
H A D | dfx_utils.cpp | 44 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/CastEngine/castengine_wifi_display/services/protocol/rtsp/include/ |
H A D | rtsp_url.h | 60 username_ = path_.substr(ui + 10, pi - ui - 10); // 10:matching position in Parse() 61 password_ = path_.substr(pi + 10); // 10:matching position in Parse() 63 username_ = path_.substr(ui + 10); // 10:matching position in Parse() 65 path_ = path_.substr(0, path_.find('?')); in Parse()
|
/foundation/arkui/ace_engine/adapter/preview/osal/ |
H A D | response_data.cpp | 56 std::string header = headersStr.substr(0, posSeparator - 1); in SetHeaders() 64 headers_["\"" + header.substr(0, posColon) + "\""] = "[\"" + header.substr(posColon + 2) + "\"]"; in SetHeaders() 66 headersStr = headersStr.substr(posSeparator + 1); in SetHeaders()
|