Home
last modified time | relevance | path

Searched refs:substr (Results 101 - 125 of 3036) sorted by relevance

12345678910>>...122

/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/src/
H A Drtsp_common.cpp52 auto token = RtspCommon::Trim(line.substr(0, index)); in SplitParameter()
53 auto value = RtspCommon::Trim(line.substr(index + 1)); in SplitParameter()
78 return str.substr(s, e + 1 - s); in Trim()
99 auto token = RtspCommon::Trim(lines[i].substr(0, index)); in ParseMessage()
100 auto value = RtspCommon::Trim(lines[i].substr(index + 1)); in ParseMessage()
129 auto bodyStr = messageV[1].substr(0, length); in ParseMessage()
H A Drtsp_response.cpp96 std::string to = session_.substr(si + 1); in Parse()
99 auto timeoutStr = to.substr(ti + 1); in Parse()
103 session_ = session_.substr(0, si); in Parse()
112 auto key = item.substr(0, separator); in Parse()
114 auto value = item.substr(separator + 2); // 2:fixed size in Parse()
118 auto value = item.substr(separator + 2); // 2:fixed size in Parse()
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/
H A Dfrontend_delegate.cpp35 fileName = fileUri.substr(slashPos + 1); in GetFileInfo()
36 filePath = fileUri.substr(0, slashPos + 1); in GetFileInfo()
40 filePath = filePath.substr(1); in GetFileInfo()
54 filePath = filePath.substr(3); // 3 : offset of filePath in ParseWorkerUri()
63 if (file.substr(filePos + 1) == fileName) { in ParseWorkerUri()
88 if ((startWithSlash && (file.substr(1) == fileName)) || (!startWithSlash && (file == fileName))) { in ParseFileUri()
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_image.cpp70 auto format = realPath.substr(dotPos + 1); in LoadLocalImage()
77 realPath = svgPath.substr(0, pos + 1) + uri; in LoadLocalImage()
82 assetSrc = assetSrc.substr(1); // get the asset src without '/'. in LoadLocalImage()
84 assetSrc = assetSrc.substr(2); // 2 : get the asset src without './'. in LoadLocalImage()
117 std::string content = uri.substr(iter + 7); in LoadBase64Image()
136 std::string head = uri.substr(0, iter); in ParseHrefAttr()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Duuid.cpp65 ret.uuid_[i / 2] = std::stoi(tmp.substr(i, 2), nullptr, 16); // uuid的长度为16,i / 2作为uuid的数组下标 in FromString()
117 ret = tmp.substr(CONSTANT_ZERO, CONSTANT_EIGHT) + "-" + in ToString()
118 tmp.substr(CONSTANT_EIGHT, CONSTANT_FOUR) + "-" + in ToString()
119 tmp.substr(CONSTANT_TWELVE, CONSTANT_FOUR) + "-" + in ToString()
120 tmp.substr(CONSTANT_SIXTEEN, CONSTANT_FOUR) + "-" + in ToString()
121 tmp.substr(CONSTANT_TWENTY); in ToString()
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/adaptor/
H A Ddistributed_object_impl.cpp143 assetValue.name = assetValue.name.substr(STRING_PREFIX_LEN); in RemovePrefix()
144 assetValue.uri = assetValue.uri.substr(STRING_PREFIX_LEN); in RemovePrefix()
145 assetValue.path = assetValue.path.substr(STRING_PREFIX_LEN); in RemovePrefix()
146 assetValue.createTime = assetValue.createTime.substr(STRING_PREFIX_LEN); in RemovePrefix()
147 assetValue.modifyTime = assetValue.modifyTime.substr(STRING_PREFIX_LEN); in RemovePrefix()
148 assetValue.size = assetValue.size.substr(STRING_PREFIX_LEN); in RemovePrefix()
H A Dasset_change_timer.cpp135 assetValue.name = assetValue.name.substr(STRING_PREFIX_LEN); in GetAssetValue()
136 assetValue.uri = assetValue.uri.substr(STRING_PREFIX_LEN); in GetAssetValue()
137 assetValue.path = assetValue.path.substr(STRING_PREFIX_LEN); in GetAssetValue()
138 assetValue.createTime = assetValue.createTime.substr(STRING_PREFIX_LEN); in GetAssetValue()
139 assetValue.modifyTime = assetValue.modifyTime.substr(STRING_PREFIX_LEN); in GetAssetValue()
140 assetValue.size = assetValue.size.substr(STRING_PREFIX_LEN); in GetAssetValue()
/foundation/distributeddatamgr/preferences/test/ndk/unittest/
H A Dpreferences_test_utils.cpp36 std::string dir = path.substr(0, pos); in CreateDirectoryRecursively()
43 std::string directory = tempDirectory.substr(0, pos); in CreateDirectoryRecursively()
47 tempDirectory = tempDirectory.substr(pos + 1); in CreateDirectoryRecursively()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DFileCheck.cpp95 Str = Str.substr(I); in parseVariable()
268 DefExpr = Expr.substr(0, DefEnd); in parseNumericSubstitutionBlock()
269 Expr = Expr.substr(DefEnd + 1); in parseNumericSubstitutionBlock()
320 PatternStr = PatternStr.substr(0, PatternStr.size() - 1); in parsePattern()
381 if (AddRegExToRegEx(PatternStr.substr(2, End - 2), CurParen, SM)) in parsePattern()
385 PatternStr = PatternStr.substr(End + 2); in parsePattern()
399 StringRef UnparsedPatternStr = PatternStr.substr(2); in parsePattern()
403 StringRef MatchStr = UnparsedPatternStr.substr(0, End); in parsePattern()
415 PatternStr = UnparsedPatternStr.substr(End + 2); in parsePattern()
430 size_t SpacePos = MatchStr.substr( in parsePattern()
[all...]
/foundation/multimedia/av_codec/services/media_engine/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()
261 attr = std::make_shared<Attribute>("DURATION", field.substr(0, pos)); in ParseAttributes()
265 attr = std::make_shared<Attribute>("TITLE", field.substr(pos)); in ParseAttributes()
331 ret.push_back(s.substr(last, index - last)); in Split()
337 ret.push_back(s.substr(last)); in Split()
347 line = line.substr(1); in ParseTag()
353 value = line.substr(ke in ParseTag()
[all...]
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dcommand_parser.cpp305 auto frameNo = stoul(s.substr(0, pos)); in ParseParamFromCmdLine()
306 string paramList = s.substr(pos + 1); in ParseParamFromCmdLine()
335 string key = s.substr(0, pos); in ParseSetParameter()
336 istringstream value(s.substr(pos + 1)); in ParseSetParameter()
365 string key = s.substr(0, pos); in ParsePerFrameParam()
366 istringstream value(s.substr(pos + 1)); in ParsePerFrameParam()
401 dst.inputFile = src.substr(0, pos); in ParseResourceParam()
402 istringstream value(src.substr(pos + 1)); in ParseResourceParam()
417 string resource = s.substr(0, pos); // "/data/test/a.rgba,1280,720,2" in ParseWaterMark()
419 istringstream coordinate(s.substr(po in ParseWaterMark()
[all...]
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DGPBUtil.php410 if (substr($timestamp, 0, 4) === "0000") {
414 if (substr($timestamp, -1, 1) === "z") {
437 $nanoseconds = substr($timestamp, $periodIndex + 1, $nanosecondsLength);
441 $date = substr($timestamp, 0, $periodIndex);
442 $timezone = substr($timestamp, $periodIndex + $nanosecondsLength + 1);
477 if (strlen($value) < 2 || substr($value, -1) !== "s") {
480 $number = substr($value, 0, -1);
489 $seconds = substr($number, 0, $pos);
491 $nanos = bcmul("0" . substr($number, $pos), -1000000000);
493 $nanos = bcmul("0" . substr(
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_log.cpp68 logFlag_ = static_cast<uint32_t>(std::stoul(flag.substr(INPUT_FLAG_MIN_LENGTH), nullptr, NUMERICAL_BASE)); in RSLogManager()
86 logFlag_ = static_cast<uint32_t>(std::stoul(flag.substr(INPUT_FLAG_MIN_LENGTH), nullptr, NUMERICAL_BASE)); in SetRSLogFlag()
96 && (flag.substr(0, INPUT_FLAG_MIN_LENGTH) == "0x" || flag.substr(0, INPUT_FLAG_MIN_LENGTH) == "0X")) { in IsFlagValid()
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
H A Dscanner_utils.cpp50 return path.substr(lastSlashPosition + 1); in GetFileNameFromUri()
65 return path.substr(dotIndex + 1); in GetFileExtension()
123 return path.substr(0, lastSlashPosition); in GetParentPath()
139 return (pos == string::npos) ? displayName : displayName.substr(0, pos); in GetFileTitle()
/foundation/multimodalinput/input/tools/event_inject/src/
H A Dget_device_node.cpp118 std::string temp = item.substr(0, 1); in AnalyseDevices()
124 name = item.substr(startPos, endPos - startPos - 1); in AnalyseDevices()
128 uint64_t eventLength = item.substr(startPos).find_first_of(" "); in AnalyseDevices()
129 std::string target = item.substr(startPos, eventLength); in AnalyseDevices()
/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/
H A Dringtone_scanner_utils.cpp45 return path.substr(lastSlashPosition + 1); in GetFileNameFromUri()
60 return path.substr(dotIndex + 1); in GetFileExtension()
118 return path.substr(0, lastSlashPosition); in GetParentPath()
129 return (pos == string::npos) ? displayName : displayName.substr(0, pos); in GetFileTitle()
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_response.cpp52 if (CommonUtils::ToLower(CommonUtils::Strip(header.substr(0, index))) == in ParseHeaders()
54 setCookie_.push_back(CommonUtils::Strip(header.substr(index + 1))); in ParseHeaders()
57 header_[CommonUtils::ToLower(CommonUtils::Strip(header.substr(0, index)))] = in ParseHeaders()
58 CommonUtils::Strip(header.substr(index + 1)); in ParseHeaders()
/foundation/communication/netstack/frameworks/js/builtin/fetch/src/
H A Dhttp_request_utils.cpp35 res.emplace_back(s.substr(0, pos)); in Split()
36 s = s.substr(pos + sep.size()); in Split()
52 return str.substr(i, j - i + 1); in Strip()
92 std::string param = url.substr(index + 1); in EncodeUrlParam()
/foundation/communication/netstack/frameworks/js/napi/http/options/src/
H A Dhttp_response.cpp52 if (CommonUtils::ToLower(CommonUtils::Strip(header.substr(0, index))) == in ParseHeaders()
54 setCookie_.push_back(CommonUtils::Strip(header.substr(index + 1))); in ParseHeaders()
57 header_[CommonUtils::ToLower(CommonUtils::Strip(header.substr(0, index)))] = in ParseHeaders()
58 CommonUtils::Strip(header.substr(index + 1)); in ParseHeaders()
/foundation/filemanagement/file_api/interfaces/kits/native/remote_uri/
H A Dremote_uri.cpp41 string media = path.substr(0, len); in IsMediaUri()
88 string scheme = path.substr(0, posDatashare); in IsRemoteUri()
93 string fragment = path.substr(posFragment + 1, REMOTE_URI_TAG.size()); in IsRemoteUri()
95 string fdStr = path.substr(posFd + 1); in IsRemoteUri()
/third_party/node/src/permission/
H A Dfs_permission.h46 std::string parent_prefix = child->prefix.substr(0, i); in CreateChild()
47 std::string child_prefix = child->prefix.substr(i); in CreateChild()
54 return split_child->CreateChild(prefix.substr(i)); in CreateChild()
57 return child->CreateChild(prefix.substr(i)); in CreateChild()
/third_party/vulkan-headers/include/vulkan/
H A Dvulkan_to_string.hpp97 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
147 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
199 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
211 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
225 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
253 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
279 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
303 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
320 return "{ " + result.substr( 0, result.size() - 3 ) + " }"; in to_string()
382 return "{ " + result.substr( in to_string()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/
H A Dbackup_file_utils.cpp54 string curPath = resultPath.substr(0, pos); in GetValidPath()
135 std::string displayName = result.substr(displayNameIndex + 1); in ConvertLowQualityPath()
144 string publicPath = result.substr(0, pos + 1); in ConvertLowQualityPath()
183 std::string garbleDisplayName = GarbleFileName(filePath.substr(displayNameIndex + 1)); in GarbleFilePath()
186 path = filePath.substr(0, displayNameIndex).replace(0, UPGRADE_FILE_DIR.length(), GARBLE); in GarbleFilePath()
188 path = filePath.substr(0, displayNameIndex).replace(0, GARBLE_DUAL_FRAME_CLONE_DIR.length(), GARBLE); in GarbleFilePath()
190 path = filePath.substr(0, displayNameIndex).replace(0, cloneFilePath.length(), GARBLE); in GarbleFilePath()
192 path = filePath.substr(0, displayNameIndex).replace(0, OTHER_CLONE_PATH.length(), GARBLE); in GarbleFilePath()
194 path = filePath.substr(0, displayNameIndex).replace(0, OTHER_CLONE_PATH.length(), GARBLE); in GarbleFilePath()
196 path = filePath.substr( in GarbleFilePath()
[all...]
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
H A Dcode_emitter.cpp42 baseName_ = StringHelper::StartWith(interfaceName_, "I") ? interfaceName_.substr(1) : interfaceName_; in Reset()
60 std::string prefix = StringHelper::Format("%c%s", tolower(baseName_[0]), baseName_.substr(1).c_str()); in Reset()
120 std::string outPath = StringHelper::EndWith(outDir, SEPARATOR) ? outDir.substr(0, outDir.size() - 1) : outDir; in GetFileParentPath()
148 fullName = fullName.substr(0, fullName.find("[")); in InterfaceToFilePath()
151 std::string prefix = fullName.substr(0, index + 1); in InterfaceToFilePath()
152 std::string suffix = fullName.substr(index + 1); in InterfaceToFilePath()
153 std::string fileName = prefix + (StringHelper::StartWith(suffix, "I") ? suffix.substr(1) : suffix) + "Proxy"; in InterfaceToFilePath()
/third_party/gn/src/base/strings/
H A Dstring_split.cc79 piece = str.substr(start); in SplitStringT()
82 piece = str.substr(start, end - start); in SplitStringT()
108 result_pair.first.assign(input.substr(0, end_key_pos)); in AppendStringKeyValue()
112 input.substr(end_key_pos, input.size() - end_key_pos); in AppendStringKeyValue()
118 remains.substr(begin_value_pos, remains.size() - begin_value_pos)); in AppendStringKeyValue()
137 ? input.substr(begin_index) in SplitStringUsingSubstrT()
138 : input.substr(begin_index, end_index - begin_index); in SplitStringUsingSubstrT()

Completed in 23 milliseconds

12345678910>>...122