Home
last modified time | relevance | path

Searched refs:tempUrl (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/communication/netstack/utils/common_utils/src/
H A Dnetstack_common_utils.cpp308 std::string tempUrl = url; in GetHostnameFromURL() local
309 std::replace(tempUrl.begin(), tempUrl.end(), '\\', '/'); in GetHostnameFromURL()
310 size_t posStart = tempUrl.find(delimiter); in GetHostnameFromURL()
316 size_t notSlash = tempUrl.find_first_not_of('/', posStart); in GetHostnameFromURL()
320 size_t posEnd = std::min({ tempUrl.find(':', posStart), in GetHostnameFromURL()
321 tempUrl.find('/', posStart), tempUrl.find('?', posStart) }); in GetHostnameFromURL()
323 return tempUrl.substr(posStart, posEnd - posStart); in GetHostnameFromURL()
325 return tempUrl.substr(posStart); in GetHostnameFromURL()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/download/network_client/
H A Dhttp_curl_client.cpp92 std::string tempUrl = url; in GetHostnameFromURL() local
93 size_t posStart = tempUrl.find(delimiter); in GetHostnameFromURL()
99 …size_t posEnd = std::min({tempUrl.find(":", posStart), tempUrl.find("/", posStart), tempUrl.find("… in GetHostnameFromURL()
101 return tempUrl.substr(posStart, posEnd - posStart); in GetHostnameFromURL()
103 return tempUrl.substr(posStart); in GetHostnameFromURL()
/ohos5.0/base/request/request/frameworks/js/napi/src/
H A Djs_initialize.cpp673 std::string tempUrl = url; in GetHostnameFromURL() local
674 std::replace(tempUrl.begin(), tempUrl.end(), '\\', '/'); in GetHostnameFromURL()
675 size_t posStart = tempUrl.find(delimiter); in GetHostnameFromURL()
681 size_t notSlash = tempUrl.find_first_not_of('/', posStart); in GetHostnameFromURL()
686 …std::min({ tempUrl.find(':', posStart), tempUrl.find('/', posStart), tempUrl.find('?', posStart) }… in GetHostnameFromURL()
688 return tempUrl.substr(posStart, posEnd - posStart); in GetHostnameFromURL()
690 return tempUrl.substr(posStart); in GetHostnameFromURL()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/
H A Ddash_mpd_downloader.cpp137 …entInitValue AddOneSegment(unsigned int segRealDur, int64_t segmentSeq, const std::string &tempUrl, in AddOneSegment() argument
146 segment->url_ = tempUrl; in AddOneSegment()
1533 std::string tempUrl = mediaUrl; in GetSegmentsWithTmpltDurationStatic() local
1535 if (DashSubstituteTmpltStr(tempUrl, "$Time", std::to_string(startTime)) == -1) { in GetSegmentsWithTmpltDurationStatic()
1541 if (DashSubstituteTmpltStr(tempUrl, "$Number", std::to_string(segmentSeq)) == -1) { in GetSegmentsWithTmpltDurationStatic()
1547 if (DASH_SEGMENT_INIT_FAILED == AddOneSegment(segRealDur, segmentSeq, tempUrl, desc)) { in GetSegmentsWithTmpltDurationStatic()
1615 std::string tempUrl = sampleInfo.mediaUrl_; in GetSegmentsInOneTimeline() local
1616 if (DashSubstituteTmpltStr(tempUrl, "$Time", std::to_string(startTime)) == -1) { in GetSegmentsInOneTimeline()
1622 if (DashSubstituteTmpltStr(tempUrl, "$Number", std::to_string(segmentSeq)) == -1) { in GetSegmentsInOneTimeline()
1628 …if (DASH_SEGMENT_INIT_FAILED == AddOneSegment(sampleInfo.segDuration_, segmentSeq, tempUrl, stream… in GetSegmentsInOneTimeline()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ng/
H A Dpage_router_manager.cpp810 std::string tempUrl = url; in GetPageNameAndPath() local
813 tempUrl = pagePath; in GetPageNameAndPath()
815 auto pos = tempUrl.rfind(".js"); in GetPageNameAndPath()
816 if (pos == tempUrl.length() - JS_FILE_EXTENSION_LENGTH) { in GetPageNameAndPath()
817 tempUrl = tempUrl.substr(0, pos); in GetPageNameAndPath()
819 pos = tempUrl.rfind("/"); in GetPageNameAndPath()
821 name = tempUrl.substr(pos + 1); in GetPageNameAndPath()
822 path = tempUrl.substr(0, pos + 1); in GetPageNameAndPath()
828 path = "/" + tempUrl; in GetPageNameAndPath()
/ohos5.0/commonlibrary/ets_utils/js_api_module/url/
H A Dnative_module_url.cpp76 URL *tempUrl = nullptr; in UrlStructor() local
77 napi_unwrap(env, argv[1], reinterpret_cast<void**>(&tempUrl)); in UrlStructor()
78 if (tempUrl == nullptr) { in UrlStructor()
82 object = new (std::nothrow) URL(input, *tempUrl); in UrlStructor()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/
H A Dfrontend_delegate_declarative.cpp1125 std::string tempUrl; in GetRouterStateByUrl() local
1139 tempUrl = url.substr(0, pos); in GetRouterStateByUrl()
1141 pos = tempUrl.rfind("/"); in GetRouterStateByUrl()
1143 stateInfo.name = tempUrl.substr(pos + 1); in GetRouterStateByUrl()
1144 stateInfo.path = tempUrl.substr(0, pos + 1); in GetRouterStateByUrl()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_declarative_engine.cpp305 std::string tempUrl = OHMURL_START_TAG + bundleName + "/" + moduleName; in BuildOhmUrl() local
306 std::string ohmUrl = tempUrl + "/ets/" + pagePath; in BuildOhmUrl()
322 return tempUrl + "@" + harModuleName + "/" + newPagePath; in BuildOhmUrl()