Home
last modified time | relevance | path

Searched refs:substr (Results 126 - 150 of 2023) sorted by relevance

12345678910>>...81

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
H A Dstr_cat_test.cc347 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
351 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
355 EXPECT_EQ(result.substr(old_size), "std::Hello, World"); in TEST()
359 EXPECT_EQ(result.substr(old_size), "Hello, std::Cruel World!"); in TEST()
363 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World"); in TEST()
367 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World"); in TEST()
371 EXPECT_EQ(result.substr(old_size), "ASCII 72, 67 87!"); in TEST()
375 EXPECT_EQ(result.substr(old_size), "12345678910, 10987654321!"); in TEST()
384 EXPECT_EQ(result.substr(old_size), "And a 1 and a 2 and a 1 2 3 4!"); in TEST()
391 EXPECT_EQ(result.substr(old_siz in TEST()
[all...]
/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/src/
H A Dmock_bundle_mgr_helper.cpp49 auto tokenIdStr = bundleName.substr(bundleName.size() - TOKENID_LENGTH, TOKENID_LENGTH); in GetSandboxBundleInfo()
64 auto tokenIdStr = bundleName.substr(bundleName.size() - TOKENID_LENGTH, TOKENID_LENGTH); in GetBundleInfo()
91 auto tokenIdStr = bundleName.substr(bundleName.size() - TOKENID_LENGTH, TOKENID_LENGTH); in GetCloneBundleInfo()
/foundation/bundlemanager/app_domain_verify/interfaces/kits/js/src/
H A Dconfig_parser.cpp56 std::string key = trim(line.substr(0, delimiterPos)); in load()
57 std::string value = trim(line.substr(delimiterPos + 1)); in load()
79 return str.substr(first, last - first + 1); in trim()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dphoto_file_utils.cpp34 return "/storage/cloud/" + to_string(userId) + "/files/" + path.substr(ROOT_MEDIA_DIR.length()); in AppendUserId()
48 return AppendUserId(MEDIA_EDIT_DATA_DIR, userId) + photoPath.substr(ROOT_MEDIA_DIR.length()); in GetEditDataDir()
105 return AppendUserId(ROOT_MEDIA_DIR, userId) + metaPath.substr(ROOT_MEDIA_DIR.length()); in GetMetaDataRealPath()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dutil.cpp26 vec.push_back(str.substr(pos1, pos2 - pos1)); in SplitString()
31 vec.push_back(str.substr(pos1)); in SplitString()
82 string webgl2Str = info[0].substr(webglItem, 6); // length of webgl2 in GetContextObject()
/kernel/linux/linux-6.6/scripts/
H A Dcheck-sysctl-docs39 value = substr(value, 2)
42 value = substr(value, 1, length(value) - 1)
73 if (!inbrackets && substr($i, 1, 1) == "(") {
83 if (inbrackets && substr($i, length($i), 1) == ")") {
H A Ddecodecode128 substr=""
132 substr+="$opc"
134 opcode="$substr"
146 substr+=" "
/third_party/gn/src/gn/
H A Dversion.cc26 if (!base::StringToInt(s.substr(major_begin, major_end - major_begin), in FromString()
33 if (!base::StringToInt(s.substr(minor_begin, minor_end - minor_begin), in FromString()
38 if (!base::StringToInt(s.substr(patch_begin, std::string::npos), &patch)) in FromString()
H A Dstandard_out.cc250 OutputString(" " + line.substr(0, colon_offset), DECORATION_YELLOW); in PrintShortHelp()
264 OutputString(line.substr(begin_bracket, first_normal - begin_bracket), in PrintShortHelp()
268 OutputString(line.substr(first_normal) + "\n"); in PrintShortHelp()
311 OutputString(line.substr(0, chars_to_highlight), DECORATION_YELLOW); in PrintLongHelp()
312 OutputString(line.substr(chars_to_highlight)); in PrintLongHelp()
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-10.0/llvm/lib/Object/
H A DDecompressor.cpp40 SectionData = SectionData.substr(4); in consumeCompressedGnuHeader()
46 SectionData = SectionData.substr(8); in consumeCompressedGnuHeader()
71 SectionData = SectionData.substr(HdrSize); in consumeCompressedZLibHeader()
/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()
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Ddirectory_ex.cpp54 return string(fileFullName).substr(0, fileFullName.rfind("/") + 1); in ExtractFilePath()
59 return string(fileFullName).substr(fileFullName.rfind("/") + 1, fileFullName.size()); in ExtractFileName()
69 return string(fileName).substr(pos + 1, fileName.size()); in ExtractFileExt()
79 return path.substr(0, static_cast<int>(path.size()) - 1); in ExcludeTrailingPathDelimiter()
138 subPath = path.substr(0, index); in ForceCreateDirectory()
/third_party/mesa3d/src/gallium/frontends/clover/core/
H A Dprintf.cpp77 std::string s = format.substr(fmt_last_pos, in print_formatted()
83 print_str = format.substr(cur_tok, spec_pos + 1 - cur_tok); in print_formatted()
110 std::string s = format.substr(vec_pos + 1, l); in print_formatted()
115 std::string mod = format.substr(mod_pos, 2); in print_formatted()
159 std::string s = format.substr(spec_pos + 1, in print_formatted()
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
H A DSystemInfo.cpp179 *version = content.substr(begin); in ParseAMDBrahmaDriverVersion()
183 *version = content.substr(begin, end - begin); in ParseAMDBrahmaDriverVersion()
244 *type = identifier.substr(0, numberLoc); in ParseMacMachineModel()
254 bool success = id.length() >= 21 && HexStringToUInt(id.substr(8, 4), &vendor) && in CMDeviceIDToDeviceAndVendorID()
255 HexStringToUInt(id.substr(17, 4), &device); in CMDeviceIDToDeviceAndVendorID()
/third_party/vk-gl-cts/external/amber/src/src/vkscript/
H A Dsection_parser.cc58 name = data.substr(0, pos); in NameToNodeType()
63 name = data.substr(0, pos); in NameToNodeType()
72 name = data.substr(0, pos); in NameToNodeType()
152 {section_type, shader_type, fmt, line_count, contents.substr(0, size)}); in AddSection()
195 std::string name = line.substr(1, name_end - 1); in SplitSections()
/foundation/distributeddatamgr/pasteboard/services/dfx/src/
H A Dpasteboard_event_dfx.cpp26 return deviceId.substr(0, maskIdLen) + "**" + deviceId.substr(deviceId.length() - maskIdLen); in GetAnonymousID()
/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...]
/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()

Completed in 14 milliseconds

12345678910>>...81