/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/src/ |
H A D | rtsp_common.cpp | 52 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 D | rtsp_response.cpp | 96 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 D | frontend_delegate.cpp | 35 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 D | svg_image.cpp | 70 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 D | uuid.cpp | 65 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 D | distributed_object_impl.cpp | 143 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 D | asset_change_timer.cpp | 135 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 D | preferences_test_utils.cpp | 36 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 D | FileCheck.cpp | 95 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 D | hls_tags.cpp | 77 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 D | command_parser.cpp | 305 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 D | GPBUtil.php | 410 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 D | rs_log.cpp | 68 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 D | scanner_utils.cpp | 50 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 D | get_device_node.cpp | 118 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 D | ringtone_scanner_utils.cpp | 45 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 D | net_http_response.cpp | 52 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 D | http_request_utils.cpp | 35 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 D | http_response.cpp | 52 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 D | remote_uri.cpp | 41 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 D | fs_permission.h | 46 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 D | vulkan_to_string.hpp | 97 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 D | backup_file_utils.cpp | 54 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 D | code_emitter.cpp | 42 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 D | string_split.cc | 79 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()
|