Home
last modified time | relevance | path

Searched refs:temp (Results 1 - 24 of 24) sorted by relevance

/commonlibrary/ets_utils/js_api_module/uri/
H A Dnative_module_uri.cpp111 std::string temp = muri->IsFailed(); in IsFailed() local
112 size_t templen = temp.size(); in IsFailed()
113 NAPI_CALL(env, napi_create_string_utf8(env, temp.c_str(), templen, &result)); in IsFailed()
124 std::string temp = muri->ToString(); in UriToString() local
125 size_t templen = temp.size(); in UriToString()
126 NAPI_CALL(env, napi_create_string_utf8(env, temp.c_str(), templen, &result)); in UriToString()
185 std::string temp = muri->AddQueryValue(key, value); in AddQueryValue() local
186 if (temp.empty()) { in AddQueryValue()
190 size_t templen = temp.size(); in AddQueryValue()
191 NAPI_CALL(env, napi_create_string_utf8(env, temp in AddQueryValue()
209 std::string temp = muri->AddSegment(segment); AddSegment() local
226 std::vector<std::string> temp = muri->GetSegment(); GetSegment() local
248 std::string temp = muri->GetScheme(); GetScheme() local
265 std::string temp = muri->GetAuthority(); GetAuthority() local
282 std::string temp = muri->GetSsp(); GetSsp() local
295 std::string temp = muri->GetUserinfo(); GetUserinfo() local
312 std::string temp = muri->GetHost(); GetHost() local
329 std::string temp = muri->GetPort(); GetPort() local
342 std::string temp = muri->GetPath(); GetPath() local
359 std::string temp = muri->GetQuery(); GetQuery() local
376 std::string temp = muri->GetFragment(); GetFragment() local
393 std::string temp = muri->ClearQuery(); ClearQuery() local
[all...]
H A Djs_uri.cpp505 std::vector<std::string> temp; in Normalize() local
513 temp.push_back(uriData_.path.substr(left, pos - left)); in Normalize()
517 temp.push_back(uriData_.path.substr(left)); in Normalize()
519 size_t tempLen = temp.size(); in Normalize()
522 if (!temp[i].empty() && !(temp[i] == ".") && !(temp[i] == "..")) { in Normalize()
523 normalizeTemp.push_back(temp[i]); in Normalize()
525 if (temp[i] == "..") { in Normalize()
529 normalizeTemp.push_back(temp[ in Normalize()
[all...]
/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.cpp104 std::string temp = input; in DecodeSpecialChars() local
105 size_t len = temp.size(); in DecodeSpecialChars()
107 return temp; in DecodeSpecialChars()
109 size_t pos = temp.find("%"); in DecodeSpecialChars()
111 if (IsHexDigit(temp[pos + 1]) && IsHexDigit(temp[pos + 2])) { // 2:Determine the second character after % in DecodeSpecialChars()
112 std::string subStr = temp.substr(pos + 1, 2); // 2:Truncate the last two digits of the % in DecodeSpecialChars()
116 return temp; in DecodeSpecialChars()
119 temp.replace(pos, 3, convertedChar); // 3:Replace the percent character with the corresponding char in DecodeSpecialChars()
122 pos = temp in DecodeSpecialChars()
168 auto temp = g_head.count(scheme); IsSpecial() local
260 std::vector<std::string> temp; AnalysisPath() local
350 std::vector<std::string> temp; DealIpv4() local
389 std::string temp = ""; FormatIpv6() local
473 std::vector<std::string> temp; Compress() local
577 RemovalIpv4(std::vector<std::string> &temp, std::string str, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)> &flags) RemovalIpv4() argument
672 std::string temp = SplitNum(nums[index], number); FormatIpv4() local
692 std::vector<std::string> temp; AnalyseIPv4() local
770 std::vector<std::string> temp; AnalysisFilePath() local
812 AnalysisSpecialFile(std::string& temp, size_t pos, UrlData& urlinfo, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisSpecialFile() argument
834 std::string temp = input.substr(2); // 2:Intercept from 2 subscripts AnalysisFile() local
1182 std::string temp = ""; BasePathToStr() local
1308 std::string temp = ""; GetHostname() local
1319 std::string temp = ""; GetSearch() local
1330 std::string temp = ""; GetUsername() local
1341 std::string temp = ""; GetPassword() local
1352 std::string temp = ""; GetFragment() local
1363 std::string temp = ""; GetScheme() local
1374 std::string temp = "/"; GetPath() local
1401 std::string temp = ""; GetPort() local
1412 std::string temp = urlData_.host; GetHost() local
1609 std::string temp; SetSearch() local
1629 std::string temp; SetFragment() local
1829 Append(napi_env env, napi_value buffer, napi_value temp) Append() argument
1949 std::string temp = ""; Set() local
[all...]
H A Djs_url.h96 void AnalysisSpecialFile(std::string& temp, size_t pos, UrlData& urlinfo,
331 * @param temp Values of search parameters to be inserted.
333 void Append(napi_env env, napi_value buffer, napi_value temp);
H A Dnative_module_url.cpp41 std::string temp = ""; in UrlStructor() local
49 temp.reserve(tempSize); in UrlStructor()
50 temp.resize(tempSize); in UrlStructor()
51 if (napi_get_value_string_utf8(env, argv[0], temp.data(), tempSize + 1, &tempSize) != napi_ok) { in UrlStructor()
55 std::string input = temp; in UrlStructor()
/commonlibrary/ets_utils/js_sys_module/test/
H A Dtest_process.cpp109 napi_value temp = nullptr; in HWTEST_F() local
110 napi_create_string_utf8(env, command.c_str(), command.length(), &temp); in HWTEST_F()
112 OHOS::JsSysModule::Process::ChildProcess childprocess = RunCommand(env, temp, nullptr); in HWTEST_F()
134 napi_value temp = nullptr; in HWTEST_F() local
135 napi_create_string_utf8(env, command.c_str(), command.length(), &temp); in HWTEST_F()
137 OHOS::JsSysModule::Process::ChildProcess childprocess = RunCommand(env, temp, nullptr); in HWTEST_F()
159 napi_value temp = nullptr; in HWTEST_F() local
160 napi_create_string_utf8(env, command.c_str(), command.length(), &temp); in HWTEST_F()
162 OHOS::JsSysModule::Process::ChildProcess childprocess = RunCommand(env, temp, nullptr); in HWTEST_F()
181 napi_value temp in HWTEST_F() local
317 napi_value temp = nullptr; HWTEST_F() local
342 napi_value temp = nullptr; HWTEST_F() local
387 napi_value temp = nullptr; HWTEST_F() local
419 napi_value temp = nullptr; HWTEST_F() local
442 napi_value temp = nullptr; HWTEST_F() local
539 napi_value temp = nullptr; HWTEST_F() local
562 napi_value temp = nullptr; HWTEST_F() local
585 napi_value temp = nullptr; HWTEST_F() local
691 napi_value temp = nullptr; HWTEST_F() local
720 napi_value temp = nullptr; HWTEST_F() local
[all...]
/commonlibrary/ets_utils/js_util_module/util/
H A Djs_base64.cpp145 size_t temp = 0; in EncodeAchieveInner() local
149 temp = 0; in EncodeAchieveInner()
151 while (temp < TRAGET_THREE) { in EncodeAchieveInner()
157 temp++; in EncodeAchieveInner()
159 bitWise = (bitWise << ((TRAGET_THREE - temp) * TRAGET_EIGHT)); in EncodeAchieveInner()
161 if (temp < i && (valueType == Type::BASIC_URL_SAFE || valueType == Type::MIME_URL_SAFE)) { in EncodeAchieveInner()
162 outputLen -= (temp == 1) ? TRAGET_TWO : 1; in EncodeAchieveInner()
164 } else if (temp < i && valueType != Type::BASIC_URL_SAFE && valueType != Type::MIME_URL_SAFE) { in EncodeAchieveInner()
295 size_t temp = 0; in DecodeAchieveInner() local
298 temp in DecodeAchieveInner()
326 size_t temp = retLen; DecodeOut() local
472 size_t temp = 0; EncodeAchievesInner() local
709 size_t temp = 0; DecodeAchievesInner() local
[all...]
H A Djs_textdecoder.h98 int32_t temp = label_ & static_cast<int32_t>(ConverterFlags::BOM_SEEN_FLG); in IsBomFlag() local
99 return temp == static_cast<int32_t>(ConverterFlags::BOM_SEEN_FLG); in IsBomFlag()
107 int32_t temp = label_ & static_cast<int32_t>(ConverterFlags::UNICODE_FLG); in IsUnicode() local
108 return temp == static_cast<int32_t>(ConverterFlags::UNICODE_FLG); in IsUnicode()
116 int32_t temp = label_ & static_cast<int32_t>(ConverterFlags::IGNORE_BOM_FLG); in IsIgnoreBom() local
117 return temp == static_cast<int32_t>(ConverterFlags::IGNORE_BOM_FLG); in IsIgnoreBom()
H A Djs_uuid.cpp93 unsigned char temp = 0; // 0: initialization in ConvertBits() local
97 temp = CharToHex(input[0]); in ConvertBits()
98 temp *= HEX_SIXTEEN_FLG; in ConvertBits()
100 temp += CharToHex(input[0]); in ConvertBits()
102 return temp; in ConvertBits()
H A Dnative_module_util.cpp82 static std::string temp = "cdfijoOs"; member
94 } else if (format[i] == '%' && (i + 1 < formatSize && (temp.find(format[i + 1])) != std::string::npos)) { in DealWithPrintf()
101 } else if (format[i] == '%' && (i + 1 < formatSize && (temp.find(format[i + 1])) == std::string::npos)) { in DealWithPrintf()
149 if (str[i] == '%' && (i + 1 < strSize && temp.find(str[i + 1]) != std::string::npos)) { in FormatString()
559 for (char &temp : buffer) { in TextEncoderConstructor()
560 temp = std::tolower(static_cast<unsigned char>(temp)); in TextEncoderConstructor()
/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Dpath_helper.h64 std::string temp = script.substr(prev + 1); in CheckWorkerPath() local
65 prev = temp.find_first_of(SLASH_TAG); in CheckWorkerPath()
67 moduleName = temp.substr(0, prev); in CheckWorkerPath()
189 std::string temp; in SplitNormalizedRecordName() local
194 res[index] = temp; in SplitNormalizedRecordName()
196 temp = ""; in SplitNormalizedRecordName()
199 temp = element + temp; in SplitNormalizedRecordName()
201 if (temp.size()) { in SplitNormalizedRecordName()
202 res[index] = temp; in SplitNormalizedRecordName()
[all...]
/commonlibrary/rust/ylong_json/tests/
H A Dylong_json_sdv_test.rs338 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
341 rfc7159_example1_check!(temp); in sdv_json_output()
343 json = temp; in sdv_json_output()
355 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
358 rfc7159_example2_check!(temp); in sdv_json_output()
360 json = temp; in sdv_json_output()
372 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
375 json_parse_test_check!(temp); in sdv_json_output()
377 json = temp; in sdv_json_output()
/commonlibrary/ets_utils/js_api_module/xml/
H A Djs_xml.cpp766 unsigned char temp = strXml_[position_]; in SkipInvalidChar() local
767 if (temp > ' ') { in SkipInvalidChar()
956 size_t temp = GetNSCount(depth) << 1; in GetNamespace() local
957 if (temp) { in GetNamespace()
958 size_t i = temp - 2; // 2: number of args in GetNamespace()
1115 unsigned char temp = strXml_[position_]; in ParseStartTagFunc() local
1117 if (temp == '?') { in ParseStartTagFunc()
1123 if (temp == '/') { in ParseStartTagFunc()
1129 } else if (temp == '>') { in ParseStartTagFunc()
1763 int temp in GetColumnNumber() local
1779 int temp = (reinterpret_cast<XmlPullParser *>(obj))->GetDepth(); GetDepth() local
1795 int temp = (reinterpret_cast<XmlPullParser *>(obj))->GetLineNumber(); GetLineNumber() local
1811 std::string temp = (reinterpret_cast<XmlPullParser *>(obj))->GetName(); GetName() local
1827 std::string temp = (reinterpret_cast<XmlPullParser *>(obj))->GetNamespace(); GetNamespace() local
1843 std::string temp = (reinterpret_cast<XmlPullParser *>(obj))->GetPrefix(); GetPrefix() local
1859 std::string temp = (reinterpret_cast<XmlPullParser *>(obj))->GetText(); GetText() local
1875 bool temp = (reinterpret_cast<XmlPullParser *>(obj))->IsEmptyElementTag(); IsEmptyElementTag() local
1891 bool temp = (reinterpret_cast<XmlPullParser *>(obj))->IsWhitespace(); IsWhitespace() local
1907 int temp = (reinterpret_cast<XmlPullParser *>(obj))->GetAttributeCount(); GetAttributeCount() local
[all...]
H A Dnative_module_xml.cpp95 std::string temp = strEnd.substr(foundPosBegin, foundPosEnd - foundPosBegin + cDataEnd.length()); in DealCdata() local
97 for (char c : temp) { in DealCdata()
110 strEnd.replace(foundPosBegin, temp.length(), resStr); in DealCdata()
374 std::string temp = object->XmlSerializerError(); in XmlSerializerError() local
375 size_t templen = temp.size(); in XmlSerializerError()
376 NAPI_CALL(env, napi_create_string_utf8(env, temp.c_str(), templen, &result)); in XmlSerializerError()
432 std::string temp = object->XmlPullParserError(); in XmlPullParserError() local
433 size_t templen = temp.size(); in XmlPullParserError()
434 NAPI_CALL(env, napi_create_string_utf8(env, temp.c_str(), templen, &result)); in XmlPullParserError()
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/
H A Dmod.rs113 let mut temp = &buf[..buf.len() - 1]; variables
114 if temp.ends_with(&[CR]) {
115 temp = &temp[..temp.len() - 1];
117 trim_back_lwsp(temp)
/commonlibrary/rust/ylong_http/ylong_http_client/examples/
H A Dasync_certs_adapter.rs53 let temp = client.clone(); in main()
54 handles.push(ylong_runtime::spawn(request(temp))); in main()
/commonlibrary/ets_utils/js_sys_module/process/
H A Djs_process.cpp271 std::string temp = ""; in Off() local
272 temp = result; in Off()
273 auto iter = eventMap.equal_range(temp); in Off()
354 std::string temp = ""; in GetEnvironmentVar() local
355 temp = result; in GetEnvironmentVar()
356 auto envNum = uv_os_getenv(temp.c_str(), buf, &length); in GetEnvironmentVar()
557 std::string temp = ""; in GetEnvironmentVar() local
558 temp = result; in GetEnvironmentVar()
561 auto envNum = uv_os_getenv(temp.c_str(), buf, &length); in GetEnvironmentVar()
H A Djs_childprocess.cpp410 auto temp = reinterpret_cast<OptionsInfo*>(data); in TimeoutListener() local
411 int32_t timeout = temp->timeout * TIME_EXCHANGE; in TimeoutListener()
414 if (*(temp->isNeedRun)) { in TimeoutListener()
415 if (!kill(temp->pid, temp->killSignal)) { in TimeoutListener()
416 auto res = std::find(signalType.begin(), signalType.end(), temp->killSignal); in TimeoutListener()
417 (res != signalType.end()) ? *(temp->isNeedRun) = false : 0; in TimeoutListener()
/commonlibrary/c_utils/base/include/
H A Dsingleton.h128 std::shared_ptr<T> temp(new (std::nothrow) T); in GetInstance()
129 instance_ = temp; in GetInstance()
/commonlibrary/c_utils/base/src/
H A Dparcel.cpp943 int32_t temp = Read<int32_t>(); in ReadBool() local
944 return (temp != 0); in ReadBool()
954 int32_t temp = Read<int32_t>(); in ReadInt8() local
955 return static_cast<int8_t>(temp); in ReadInt8()
960 int32_t temp = Read<int32_t>(); in ReadInt16() local
961 return static_cast<int16_t>(temp); in ReadInt16()
976 uint32_t temp = Read<uint32_t>(); in ReadUint8() local
977 return static_cast<uint8_t>(temp); in ReadUint8()
982 uint32_t temp = Read<uint32_t>(); in ReadUint16() local
983 return static_cast<uint16_t>(temp); in ReadUint16()
1009 int32_t temp; ReadPadded() local
[all...]
/commonlibrary/ets_utils/js_api_module/uri/test/
H A Dtest_napi.cpp687 std::string temp = uri.AddQueryValue("bbb", "2"); in HWTEST_F() local
688 ASSERT_STREQ(temp.c_str(), "https://username:password@host:8080/file?aaa=1&bbb=2#myfragment"); in HWTEST_F()
694 std::string temp = uri.AddQueryValue("bb", "cc"); in HWTEST_F() local
695 ASSERT_STREQ(temp.c_str(), "mao:?bb=cc"); in HWTEST_F()
701 std::string temp = uri.ClearQuery(); in HWTEST_F() local
702 ASSERT_STREQ(temp.c_str(), "https://username:password@host:8080/file#myfragment"); in HWTEST_F()
708 std::vector<std::string> temp = uri.GetSegment(); in HWTEST_F() local
709 ASSERT_EQ(temp.size(), 1); in HWTEST_F()
715 std::string temp = uri.AddSegment("segment"); in HWTEST_F() local
716 ASSERT_STREQ(temp in HWTEST_F()
722 std::string temp = uri.AddSegment("aaa"); HWTEST_F() local
926 std::vector<std::string> temp = GetArray(env, result); HWTEST_F() local
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/
H A Dslab.rs540 let mut temp = vec![3, 2, 1]; in ut_slab_for_each() variables
542 assert_eq!(temp.pop().unwrap(), value.id.load(SeqCst)); in ut_slab_for_each()
789 let temp = free_queue_4.clone().lock().unwrap().pop().unwrap(); in ut_slab_multi_allocate()
790 assert_eq!(slab.get(temp.0).unwrap().id.load(SeqCst), temp.2); in ut_slab_multi_allocate()
/commonlibrary/ets_utils/js_sys_module/dfx/
H A Dnative_module_dfx.cpp59 bool temp = engine->BuildNativeAndJsStackTrace(stackTraceResult); in BuildNativeAndJsStackTrace() local
61 if (temp) { in BuildNativeAndJsStackTrace()
/commonlibrary/ets_utils/js_api_module/url/test/
H A Dtest_napi.cpp1803 std::string temp = ""; in HWTEST_F() local
1805 bool isFalse = OHOS::Url::AnalysisScheme(inPut, temp, flags); in HWTEST_F()
1808 OHOS::Url::AnalysisUsernameAndPasswd(inPut, temp, temp, flags); in HWTEST_F()
1810 OHOS::Url::AnalysisUsernameAndPasswd(inPut, temp, temp, flags); in HWTEST_F()
1815 OHOS::Url::AnalysisOpaqueHost(inPut, temp, flags); in HWTEST_F()
1817 OHOS::Url::AnalysisOpaqueHost(inPut, temp, flags); in HWTEST_F()
1826 std::string temp = ""; in HWTEST_F() local
1835 OHOS::Url::AnalyseIPv4(inPut, temp, flag in HWTEST_F()
2135 std::string temp = ""; HWTEST_F() local
2144 std::string temp = ""; HWTEST_F() local
2154 std::string temp = ""; HWTEST_F() local
2336 std::string temp = "w:51"; HWTEST_F() local
[all...]

Completed in 38 milliseconds