Home
last modified time | relevance | path

Searched refs:FormatString (Results 1 – 25 of 52) sorted by relevance

123

/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dres_desc.cpp116 std::string ret = FormatString("[type:%d, value:%u", type_, value_); in ToString()
118 ret.append(FormatString(", str:%s", str_.c_str())); in ToString()
190 std::string ret = FormatString( in ToString()
196 ret.append(FormatString("'%s',", values_[i].c_str())); in ToString()
200 ret.append(FormatString("'%s'", value_.c_str())); in ToString()
213 return FormatString("[id:%u, offset:%u, data:%s]", id_, offset_, in ToString()
227 std::string ret = FormatString("idcount:%u, ", count_); in ToString()
246 …std::string ret = FormatString("offset:%u, keyParamsCount:%u, keyParams:", offset_, keyParamsCount… in ToString()
273 std::string ret = FormatString("version:%s, length:%u, keyCount:%u\n", in ToString()
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dres_desc.cpp191 std::string ret = FormatString("[type:%d, value:%u", type_, value_); in ToString()
193 ret.append(FormatString(", str:%s", str_.c_str())); in ToString()
263 std::string ret = FormatString( in ToString()
269 ret.append(FormatString("'%s',", values_[i].c_str())); in ToString()
273 ret.append(FormatString("'%s'", value_.c_str())); in ToString()
284 return FormatString("[id:%u, offset:%u, data:%s]", id_, offset_, in ToString()
293 std::string ret = FormatString("idcount:%u, ", count_); in ToString()
307 …std::string ret = FormatString("offset:%u, keyParamsCount:%u, keyParams:", offset_, keyParamsCount… in ToString()
333 std::string ret = FormatString("version:%s, length:%u, keyCount:%u\n", in ToString()
/ohos5.0/base/web/webview/interfaces/kits/napi/webdatabase/
H A Dnapi_web_data_base.cpp147 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "four")); in JsSaveHttpAuthCredentials()
153 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "host", "string")); in JsSaveHttpAuthCredentials()
159 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "realm", "string")); in JsSaveHttpAuthCredentials()
165 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "username", "string")); in JsSaveHttpAuthCredentials()
170 … NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NOT_NULL_TWO, "username", "string")); in JsSaveHttpAuthCredentials()
206 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "two")); in JsGetHttpAuthCredentials()
213 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "host", "string")); in JsGetHttpAuthCredentials()
220 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "realm", "string")); in JsGetHttpAuthCredentials()
226 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NOT_NULL, "host")); in JsGetHttpAuthCredentials()
H A Dnapi_geolocation_permission.cpp135 … NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "one", "two")); in ProcessActionByType()
142 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "origin", "string")); in ProcessActionByType()
348 …NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_THREE, "one", "two", "thre… in JsGetAccessibleGeolocation()
354 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "origin", "string")); in JsGetAccessibleGeolocation()
364 … NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "callback", "function")); in JsGetAccessibleGeolocation()
369 … NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "incognito", "boolean")); in JsGetAccessibleGeolocation()
382 … NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "incognito", "boolean")); in JsGetAccessibleGeolocation()
535 …NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_THREE, "one", "two", "thre… in JsGetStoredGeolocation()
545 … NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "callback", "function")); in JsGetStoredGeolocation()
551 … NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "incognito", "boolean")); in JsGetStoredGeolocation()
[all …]
/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_client_state_machine_test.cpp487 dhcpClient->FormatString(result);
491 dhcpClient->FormatString(&result1);
494 dhcpClient->FormatString(&result1);
498 dhcpClient->FormatString(&result2);
501 dhcpClient->FormatString(&result2);
505 dhcpClient->FormatString(&result3);
508 dhcpClient->FormatString(&result3);
512 dhcpClient->FormatString(&result4);
515 dhcpClient->FormatString(&result4);
519 dhcpClient->FormatString(&result5);
[all …]
/ohos5.0/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dnapi_webview_controller.cpp451 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "name", "string")); in ParseRegisterJavaScriptProxyParam()
1542 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_TYPE_INVALID, "type")); in SetType()
1548 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NOT_NULL, "type")); in SetType()
1569 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_TYPE_INVALID, "type")); in SetType()
1575 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NOT_NULL, "type")); in SetType()
2163 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NOT_NULL, "message")); in PostMessageEventExt()
2884 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_TYPE_INVALID, "url")); in LoadUrl()
4285 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "x", "number")); in ScrollTo()
4291 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "y", "number")); in ScrollTo()
6496 NWebError::FormatString( in TrimMemoryByPressureLevel()
[all …]
H A Dnapi_web_scheme_handler_request.cpp500 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JS_SetUrl()
545 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "code", "int")); in JS_SetStatus()
597 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "text", "string")); in JS_SetStatusText()
647 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "type", "string")); in JS_SetMimeType()
762 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "name", "string")); in JS_SetHeaderByName()
768 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "value", "string")); in JS_SetHeaderByName()
820 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JS_SetNetErrorCode()
825 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "code", "int")); in JS_SetNetErrorCode()
889 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JS_RequestStart()
996 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JS_DidReceiveResponse()
[all …]
/ohos5.0/base/web/webview/interfaces/kits/napi/webcookiemanager/
H A Dnapi_web_cookie_manager.cpp170 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsFetchCookieAsync()
193 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_TYEPS_ERROR)); in JsFetchCookieAsync()
224 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsGetCookie()
270 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsSetCookie()
275 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "value", "string")); in JsSetCookie()
364 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsConfigCookieAsync()
370 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "value", "string")); in JsConfigCookieAsync()
437 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JsPutAcceptCookieEnabled()
444 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "accept", "booleane")); in JsPutAcceptCookieEnabled()
482 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JsPutAcceptThirdPartyCookieEnabled()
[all …]
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
H A Dstring_utils.cpp27 std::string FormatString(const char *fmt, ...) in FormatString() function
33 strResult = FormatString(fmt, marker); in FormatString()
39 std::string FormatString(const char *fmt, va_list args) in FormatString() function
H A Dhap_parser.cpp55 errInfo = FormatString("Cannot open %s", zipFile); in ReadFileFromZip()
62 errInfo = FormatString("File %s not found in %s", fileName, zipFile); in ReadFileFromZip()
68 errInfo = FormatString("Error %d with zipfile %s in unzGetCurrentFileInfo.", err, zipFile); in ReadFileFromZip()
76 errInfo = FormatString("Error allocating memory for read buffer"); in ReadFileFromZip()
82 … errInfo = FormatString("Error %d with zipfile %s in unzOpenCurrentFilePassword.", err, zipFile); in ReadFileFromZip()
92 errInfo = FormatString("Error %d with zipfile %s in unzReadCurrentFile", err, zipFile); in ReadFileFromZip()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/include/utils/
H A Dstring_utils.h27 std::string FormatString(const char *fmt, ...);
29 std::string FormatString(const char *fmt, va_list args);
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/utils/
H A Dstring_utils.h29 std::string FormatString(const char *fmt, ...);
31 std::string FormatString(const char *fmt, va_list args);
/ohos5.0/base/web/webview/interfaces/kits/napi/webadsblockmanager/
H A Dnapi_web_adsblock_manager.cpp84 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "two")); in JsSetAdsBlockRules()
132 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JsAddAdsBlockDisallowedList()
165 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JsRemoveAdsBlockDisallowedList()
212 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JsAddAdsBlockAllowedList()
245 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JsRemoveAdsBlockAllowedList()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dstring_utils_test.cpp67 std::string result = FormatString("%d", 10001);
70 result = FormatString("I'm %s, I'm %d", "cici", 5);
H A Dresource_manager_test.cpp1557 std::string value(FormatString("$integer:%d", id));
1565 value.assign(FormatString("$string:%d", id));
1571 value.assign(FormatString("$string:%d", id));
1577 value.assign(FormatString("$boolean:%d", id));
1583 value.assign(FormatString("$color:%d", id));
1589 value.assign(FormatString("$float:%d", id));
1595 value.assign(FormatString("$pattern:%d", id));
1605 value.assign(FormatString("$string:%d", id));
1611 value.assign(FormatString("$string:%d", id));
1618 value.assign(FormatString("$boolean:%d", NON_EXIST_ID));
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_types.inl245 const std::string str = StringUtils::FormatString(format, args...);
254 const std::string str = StringUtils::FormatString(format, args...);
270 const std::string str = StringUtils::FormatString(format, args...);
279 const std::string str = StringUtils::FormatString(format, args...);
289 const std::string str = StringUtils::FormatString(format, args...);
299 const std::string str = StringUtils::FormatString(format, args...);
308 const std::string str = StringUtils::FormatString(format, args...);
/ohos5.0/base/web/webview/interfaces/kits/napi/webstorage/
H A Dnapi_web_storage.cpp90 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JsDeleteOrigin()
98 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "origin", "string")); in JsDeleteOrigin()
293 … NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "zero", "one")); in JsGetOrigins()
302 … NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "callback", "function")); in JsGetOrigins()
462 … NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "one", "two")); in JsGetOriginUsageOrQuota()
469 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "origin", "string")); in JsGetOriginUsageOrQuota()
494 … NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "callback", "function")); in JsGetOriginUsageOrQuota()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Dcjson_parser.h146 …uint8_t FormatString(const char *format, jerry_value_t arg, ListNode *&node, bool isPlural, jerry_…
155 uint8_t FormatString(const char *format, jerry_value_t arg, ListNode *&node, jerry_value_t num);
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/process_group/src/
H A Dprocess_group_util.cpp37 std::string FormatString(const char* fmt, va_list vararg) in FormatString() function
54 std::string result = FormatString(fmt, vararg); in StringPrintf()
/ohos5.0/foundation/communication/dhcp/test/fuzztest/dhcpclientfun_fuzzer/
H A Ddhcpclientfun_fuzzer.cpp634 dhcpClient->FormatString(nullptr); in FormatStringFuzzerTest()
638 dhcpClient->FormatString(&result); in FormatStringFuzzerTest()
641 dhcpClient->FormatString(&result); in FormatStringFuzzerTest()
644 dhcpClient->FormatString(&result); in FormatStringFuzzerTest()
647 dhcpClient->FormatString(&result); in FormatStringFuzzerTest()
650 dhcpClient->FormatString(&result); in FormatStringFuzzerTest()
653 dhcpClient->FormatString(&result); in FormatStringFuzzerTest()
656 dhcpClient->FormatString(&result); in FormatStringFuzzerTest()
659 dhcpClient->FormatString(&result); in FormatStringFuzzerTest()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dstring_utils.cpp32 const std::string FormatString(const char* fmt, ...) in FormatString() function
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/process_group/include/
H A Dprocess_group_util.h25 std::string FormatString(const char* fmt, va_list vararg);
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dresource_manager_test.cpp1708 std::string value(FormatString("$integer:%d", id));
1716 value.assign(FormatString("$string:%d", id));
1722 value.assign(FormatString("$string:%d", id));
1728 value.assign(FormatString("$boolean:%d", id));
1734 value.assign(FormatString("$color:%d", id));
1740 value.assign(FormatString("$float:%d", id));
1746 value.assign(FormatString("$pattern:%d", id));
1773 std::string value(FormatString("$string:%d", id));
1779 value.assign(FormatString("$string:%d", id));
1786 value.assign(FormatString("$boolean:%d", NON_EXIST_ID));
[all …]
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dstring_utils.cpp56 std::string FormatString(const char *fmt, ...) in FormatString() function
62 strResult = FormatString(fmt, marker); in FormatString()
68 std::string FormatString(const char *fmt, va_list args) in FormatString() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_date_picker_bridge.cpp74 …StringUtils::FormatString(FORMAT_FONT.c_str(), fontSize.c_str(), weight.c_str(), fontFamily.c_str(… in SetSelectedTextStyle()
132 …StringUtils::FormatString(FORMAT_FONT.c_str(), fontSize.c_str(), weight.c_str(), fontFamily.c_str(… in SetTextStyle()
190 …StringUtils::FormatString(FORMAT_FONT.c_str(), fontSize.c_str(), weight.c_str(), fontFamily.c_str(… in SetDisappearTextStyle()

123