Home
last modified time | relevance | path

Searched refs:strValue (Results 1 - 9 of 9) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_string_test.cpp408 string strValue = "12345"; in HWTEST_F() local
410 EXPECT_EQ(result, strValue); in HWTEST_F()
427 string strValue = "12345"; in HWTEST_F() local
429 bool result = StrToInt(strValue, iValue); in HWTEST_F()
433 strValue = "123r54"; in HWTEST_F()
434 result = StrToInt(strValue, iValue); in HWTEST_F()
440 string strValue = "-12345"; in HWTEST_F() local
442 bool result = StrToInt(strValue, iValue); in HWTEST_F()
446 strValue = "123= 54"; in HWTEST_F()
447 result = StrToInt(strValue, iValu in HWTEST_F()
457 string strValue = "2147483648"; HWTEST_F() local
465 string strValue = " "; HWTEST_F() local
491 string strValue = "hello world!"; HWTEST_F() local
599 string strValue; HWTEST_F() local
616 string strValue; HWTEST_F() local
628 vector<string> strValue; HWTEST_F() local
641 vector<string> strValue; HWTEST_F() local
672 string strValue = "hello world"; HWTEST_F() local
[all...]
/commonlibrary/c_utils/base/test/benchmarktest/string_benchmark_test/
H A Dstring_benchmark_test.cpp487 string strValue = "12345"; in BENCHMARK_F() local
489 AssertEqual(result, strValue, "result did not equal strValue as expected.", state); in BENCHMARK_F()
510 string strValue = "12345"; in BENCHMARK_F() local
512 bool result = StrToInt(strValue, iValue); in BENCHMARK_F()
516 strValue = "123r54"; in BENCHMARK_F()
517 result = StrToInt(strValue, iValue); in BENCHMARK_F()
527 string strValue = "-12345"; in BENCHMARK_F() local
529 bool result = StrToInt(strValue, iValue); in BENCHMARK_F()
533 strValue in BENCHMARK_F()
548 string strValue = "2147483648"; BENCHMARK_F() local
560 string strValue = " "; BENCHMARK_F() local
594 string strValue = "hello world!"; BENCHMARK_F() local
670 string strValue; BENCHMARK_F() local
691 string strValue; BENCHMARK_F() local
706 vector<string> strValue; BENCHMARK_F() local
723 vector<string> strValue; BENCHMARK_F() local
[all...]
/commonlibrary/ets_utils/js_sys_module/process/
H A Djs_childprocess.h148 std::string RequireStrValue(napi_env env, const napi_value strValue);
H A Djs_childprocess.cpp461 std::string ChildProcess::RequireStrValue(napi_env env, const napi_value strValue) in RequireStrValue() argument
464 if (napi_get_value_string_utf8(env, strValue, nullptr, 0, &bufferSize) != napi_ok) { in RequireStrValue()
465 HILOG_ERROR("can not get strValue size"); in RequireStrValue()
471 if (napi_get_value_string_utf8(env, strValue, result.data(), bufferSize + 1, &bufferSize) != napi_ok) { in RequireStrValue()
472 HILOG_ERROR("can not get strValue value"); in RequireStrValue()
/commonlibrary/ets_utils/js_api_module/buffer/
H A Dnative_module_buffer.cpp59 static string GetStringUtf8(napi_env env, napi_value strValue) in GetStringUtf8() argument
63 NAPI_CALL(env, napi_get_value_string_utf8(env, strValue, nullptr, 0, &strSize)); in GetStringUtf8()
66 NAPI_CALL(env, napi_get_value_string_utf8(env, strValue, const_cast<char *>(str.data()), strSize + 1, &strSize)); in GetStringUtf8()
74 static string GetStringASCII(napi_env env, napi_value strValue) in GetStringASCII() argument
78 NAPI_CALL(env, napi_get_value_string_latin1(env, strValue, nullptr, 0, &strSize)); in GetStringASCII()
81 NAPI_CALL(env, napi_get_value_string_latin1(env, strValue, const_cast<char *>(str.data()), strSize + 1, &strSize)); in GetStringASCII()
85 static string GetString(napi_env env, EncodingType encodingType, napi_value strValue) in GetString() argument
88 return GetStringASCII(env, strValue); in GetString()
90 return GetStringUtf8(env, strValue); in GetString()
114 static std::u16string GetStringUtf16LE(napi_env env, napi_value strValue) in GetStringUtf16LE() argument
[all...]
/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Dnapi_helper.cpp356 napi_value strValue = nullptr; in GetPrintString() local
357 if (napi_coerce_to_string(env, value, &strValue) != napi_ok) { in GetPrintString()
360 value = strValue; in GetPrintString()
/commonlibrary/ets_utils/js_api_module/convertxml/
H A Djs_convertxml.h134 const std::string strValue) const;
H A Djs_convertxml.cpp72 const std::string strValue) const in SetKeyValue()
75 napi_create_string_utf8(env, strValue.c_str(), NAPI_AUTO_LENGTH, &attrValue); in SetKeyValue()
/commonlibrary/ets_utils/js_api_module/url/test/
H A Dtest_napi.cpp155 std::string strValue = ReviseStr(searchParams[pos + 1], reviseChar); in ToString() local
156 output += +"&" + strKey + "=" + strValue; in ToString()

Completed in 13 milliseconds