Home
last modified time | relevance | path

Searched refs:substr (Results 151 - 175 of 2345) sorted by relevance

12345678910>>...94

/foundation/arkui/ace_engine/frameworks/core/image/
H A Dimage_source_info.cpp32 auto srcSuffix = src.substr(src.size() - FILE_SUFFIX_LEN); in CheckSvgExtension()
46 std::string cleanUrl = (queryPos != std::string::npos) ? src.substr(0, queryPos) : src; in IsSVGSource()
60 ? src.substr(src.size() - APNG_FILE_SUFFIX_LEN, APNG_FILE_SUFFIX_LEN) in IsPngSource()
61 : src.size() == 4 ? src.substr(src.size() - FILE_SUFFIX_LEN, FILE_SUFFIX_LEN) in IsPngSource()
65 return (head.size() > FILE_SUFFIX_LEN && head.substr(head.size() - FILE_SUFFIX_LEN) == ".png") || in IsPngSource()
66 (head.size() > APNG_FILE_SUFFIX_LEN && head.substr(head.size() - APNG_FILE_SUFFIX_LEN) == ".apng"); in IsPngSource()
80 std::string base64Head = uri.substr(0, iter); in IsValidBase64Head()
100 std::string head = uri.substr(0, iter); in ResolveURIType()
363 return src.substr(0, MAX_BASE64_LENGTH) + "...(truncated)"; in ToString()
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/hls/
H A Dhls_tags.cpp77 if (value_.length() > 2 && (value_.substr(0, 2) == "0X" || value_.substr(0, 2) == "0x")) { // 2 in HexSequence()
80 std::stringstream ss(value_.substr(i, 2)); // 2 in HexSequence()
142 std::istringstream is(value_.substr(1, value_.length() - 2)); // 2 in QuotedString()
265 attr = std::make_shared<Attribute>("DURATION", field.substr(0, pos)); in ParseAttributes()
269 attr = std::make_shared<Attribute>("TITLE", field.substr(pos)); in ParseAttributes()
326 ret.push_back(s.substr(last, index - last)); in Split()
332 ret.push_back(s.substr(last)); in Split()
340 line = line.substr(1); in ParseTag()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dsqlite_utils.cpp62 std::string prefixSql = StrToUpper(sql.substr(pos, 3)); in GetSqlStatementType()
212 last = name.substr(name.size() - shortEndDigitsNum); in AnonyDigits()
214 last = name.substr(name.size() - endDigitsNum); in AnonyDigits()
226 auto path = srcFile.substr(pre, end - pre); in Anonymous()
231 path = path.substr(area, AREA_MINI_SIZE) + "/***"; in Anonymous()
233 path = path.substr(area, AREA_MINI_SIZE); in Anonymous()
235 std::string fileName = srcFile.substr(end); // rdb file name in Anonymous()
237 return srcFile.substr(0, pre + PRE_OFFSET_SIZE) + "***" + path + fileName; in Anonymous()
301 return name.substr(0, pos) + slaveSuffix; in GetSlavePath()
/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
H A Dohos_resource_adapter_impl.cpp90 if (rawFile.substr(0, RAWFILE_PREFIX.size()) != RAWFILE_PREFIX) { in ParseRawFile()
95 std::string subStr = rawFile.substr(RAWFILE_PREFIX.size()); in ParseRawFile()
96 if (subStr.substr(0, BUNDLE_NAME_PREFIX.size()) != BUNDLE_NAME_PREFIX) { in ParseRawFile()
99 subStr = subStr.substr(BUNDLE_NAME_PREFIX.size()); in ParseRawFile()
105 bundleName = subStr.substr(0, pos); in ParseRawFile()
107 subStr = subStr.substr(pos + 1); in ParseRawFile()
108 if (subStr.substr(0, MODULE_NAME_PREFIX.size()) != MODULE_NAME_PREFIX) { in ParseRawFile()
111 subStr = subStr.substr(MODULE_NAME_PREFIX.size()); in ParseRawFile()
117 moduleName = subStr.substr(0, pos); in ParseRawFile()
119 fileName = subStr.substr(po in ParseRawFile()
[all...]
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_worker.cpp157 normalizedFilePath = fileName.substr(0, index) + ".abc"; in NormalizedFileName()
195 realPath = uri.substr(1); in operator ()()
198 realPath = uri.substr(PATH_THREE); in operator ()()
201 realPath = uri.substr(uri.find_first_of("/") + 1); in operator ()()
233 realPath = uri.substr(fileNamePos + 1); in operator ()()
243 realPath = uri.substr(1); in operator ()()
390 if (hapModuleInfo.moduleName == filePath.substr(0, pos)) { in ReadFilePathData()
422 realfilePath = filePath.substr(pos + 1); in ReadFilePathData()
466 std::string fileName = filePath.substr(slashPos + 1); in GetAmi()
467 std::string path = filePath.substr( in GetAmi()
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dcommon_util.cpp43 type = str.substr(0, typePos); in ParseTypeAndValue()
44 std::string valueStr = str.substr(typePos + 1); in ParseTypeAndValue()
96 return StringUtil::StrToInt(fileName.substr(startPos + 1, endPos - startPos - 1)); in GetFileNameNum()
123 int fileNameNum = GetFileNameNum(files.back().substr(startPos), ext); // yyyymmddHHMMSS_1.txt in CreateExportFile()
/base/hiviewdfx/hilog/test/unittest/common/
H A Dhilog_print_test.cpp108 log = vec[i].substr(LOGINDEX); in HWTEST_F()
146 log = vec[i].substr(LOGINDEX); in HWTEST_F()
172 log = vec[i].substr(LOGINDEX); in HWTEST_F()
204 log = vec[i].substr(LOGINDEX); in HWTEST_F()
/foundation/CastEngine/castengine_cast_plus_stream/src/rtsp/src/
H A Drtsp_parse.cpp70 subStrL = spiltStrings[index].substr(0, dotPos); in ParseMsg()
71 subStrR = spiltStrings[index].substr(dotPos + 1); in ParseMsg()
150 std::string leftStr = srcStr.substr(strPos + specificStr.length()); in GetTargetStr()
164 std::string strResult = leftStr.substr(0, strPos); in GetTargetStr()
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/rtsp/src/
H A Drtsp_parse.cpp70 subStrL = spiltStrings[index].substr(0, dotPos); in ParseMsg()
71 subStrR = spiltStrings[index].substr(dotPos + 1); in ParseMsg()
150 std::string leftStr = srcStr.substr(strPos + specificStr.length()); in GetTargetStr()
164 std::string strResult = leftStr.substr(0, strPos); in GetTargetStr()
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_uri_utils.cpp153 string pairString = uri.substr(index + 1); in GetDateTakenFromUri()
160 if (pairString.substr(0, splitIndex) == ML_URI_DATE_TAKEN) { in GetDateTakenFromUri()
161 return pairString.substr(splitIndex + 1); in GetDateTakenFromUri()
173 return uri.substr(0, index); in GetFileUriFromUri()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/
H A Duri_utils.cpp98 return (DEFAULT_ANONYMOUS + uri.substr(uri.length() - END_LENGTH, END_LENGTH)); in Anonymous()
123 std::string queryParams = uri.substr(queryStartPos + 1); in GetQueryParams()
135 std::string key = queryParams.substr(startPos, equalIndex - startPos); in GetQueryParams()
136 std::string value = queryParams.substr(equalIndex + 1, delimiterIndex - equalIndex - 1); in GetQueryParams()
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_uri/src/
H A Dfile_uri.cpp66 return sandboxPath.substr(posLast + 1); in GetName()
78 return sandboxPath.substr(0, pos); in GetPath()
135 return uri.substr(0, pos); in GetFullDirectoryUri()
149 if (uri_.ToString().substr(pos + NETWORK_PARA.size()).find(BACKFLASH) == string::npos) { in IsRemoteUri()
/kernel/linux/linux-6.6/scripts/
H A Ddecodecode128 substr=""
132 substr+="$opc"
134 opcode="$substr"
146 substr+=" "
/third_party/gn/src/gn/
H A Dpath_output.cc156 if (str.substr(0, current_dir_.value().size()) == in WritePathStr()
160 EscapeStringToStream(out, str.substr(current_dir_.value().size()), in WritePathStr()
163 WriteSourceRelativeString(out, str.substr(2)); in WritePathStr()
170 EscapeStringToStream(out, str.substr(1), options_); in WritePathStr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DRegex.cpp149 Repl = Repl.substr(1); in sub()
155 Repl = Repl.substr(1); in sub()
159 Repl = Repl.substr(1); in sub()
167 Repl = Repl.substr(Ref.size()); in sub()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DRegex.cpp168 Repl = Repl.substr(1); in sub()
174 Repl = Repl.substr(1); in sub()
178 Repl = Repl.substr(1); in sub()
186 Repl = Repl.substr(Ref.size()); in sub()
/base/global/i18n/frameworks/intl/src/
H A Dholiday_manager.cpp133 if (formatedYear == key.substr(0, 4)) { // 4 is the length of full year
200 std::string value = line.substr(line.find_last_of(":") + 1, line.length()); in ParseFileLine()
202 std::string startDate = value.size() >= 8 ? value.substr(0, 8) : ""; // 8 is date formarted string length in ParseFileLine()
213 std::string displayName = line.substr(line.find_last_of("=") + 1, line.length()); in ParseFileLine()
214 std::string language = displayName.substr(0, displayName.find_first_of(":")); in ParseFileLine()
215 std::string localName = displayName.substr(displayName.find_first_of(":") + 1, displayName.length()); in ParseFileLine()
/base/notification/distributed_notification_service/tools/dump/src/
H A Dnotification_shell_command.cpp325 bundleOption.SetBundleName(info.substr(0, pos)); in RunSetEnableCmd()
326 info = info.substr(pos + 1); in RunSetEnableCmd()
328 bundleOption.SetUid(atoi(info.substr(0, pos).c_str())); in RunSetEnableCmd()
329 bool enable = atoi(info.substr(pos + 1).c_str()); in RunSetEnableCmd()
357 deviceType = info.substr(0, pos); in RunSetDeviceStatusCmd()
358 status = atoi(info.substr(pos + 1).c_str()); in RunSetDeviceStatusCmd()
/foundation/ability/idl_tool/idl_tool_2/codegen/
H A Dcode_emitter.cpp62 std::string outPath = StringHelper::EndWith(outDir, SEPARATOR) ? outDir.substr(0, outDir.size() - 1) : outDir; in GetFileParentPath()
92 fullName = fullName.substr(0, index); in InterfaceToFilePath()
96 std::string prefix = fullName.substr(0, index + 1); in InterfaceToFilePath()
97 std::string suffix = fullName.substr(index + 1); in InterfaceToFilePath()
98 std::string fileName = prefix + (StringHelper::StartWith(suffix, "I") ? suffix.substr(1) : suffix) + "Proxy"; in InterfaceToFilePath()
213 return fpnp.substr(pos + strlen("..")); in GetNamespace()
/third_party/tzdata/
H A Dtzselect.ksh39 # awk 'BEGIN { VAR = substr(ARGV[1], 2); ARGV[1] = "" } ...' ="VALUE"
40 # The substr avoids problems when VALUE is of the form X=Y and would be
214 continent_re = substr(ARGV[1], 2)
215 TZ_COUNTRY_TABLE = substr(ARGV[2], 2)
216 TZ_ZONE_TABLE = substr(ARGV[3], 2)
226 col1ccs = substr($1, 3)
271 coord = substr(ARGV[1], 2)
272 TZ_COUNTRY_TABLE = substr(ARGV[2], 2)
273 TZ_ZONE_TABLE = substr(ARGV[3], 2)
312 return convert_coord(substr(coor
[all...]
/third_party/skia/experimental/sktext/editor/
H A DTexts.h167 text.append(this->fText.substr(0, toRemove.fStart)); in removeElement()
168 text.append(this->fText.substr(toRemove.fEnd, std::u16string::npos)); in removeElement()
174 text.append(fText.substr(0, toInsert)); in insertElement()
176 text.append(fText.substr(toInsert, std::u16string::npos)); in insertElement()
182 text.append(fText.substr(0, toReplace.fStart)); in replaceElement()
184 text.append(fText.substr(toReplace.fEnd, std::u16string::npos)); in replaceElement()
/base/account/os_account/frameworks/common/log/src/
H A Daccount_log_wrapper.cpp32 return file.substr(pos + 1); in GetBriefFileName()
37 return file.substr(pos + 1); in GetBriefFileName()
/base/notification/distributed_notification_service/services/ans/src/notification_smart_reminder/
H A Dstring_utils.cpp30 std::string temp = strs.substr(0, pos); in Split()
32 strs = strs.substr(pos + 1, strs.size()); in Split()
/base/telephony/telephony_data/common/src/
H A Ddata_storage_log_wrapper.cpp38 return file.substr(pos + 1); in GetBriefFileName()
43 return file.substr(pos + 1); in GetBriefFileName()
/foundation/multimedia/av_session/services/session/server/softbus/
H A Dsoftbus_session_utils.h34 std::string prefix = deviceId.substr(0, index); in AnonymizeDeviceId()
35 std::string suffix = deviceId.substr(deviceId.length() - index, deviceId.length()); in AnonymizeDeviceId()

Completed in 15 milliseconds

12345678910>>...94