/base/global/resource_management_lite/frameworks/resmgr_lite/include/utils/ |
H A D | string_utils.h | 27 std::string FormatString(const char *fmt, ...); 29 std::string FormatString(const char *fmt, va_list args);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | string_utils.cpp | 27 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 D | hap_parser.cpp | 55 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()
|
/base/global/resource_management/frameworks/resmgr/include/utils/ |
H A D | string_utils.h | 29 std::string FormatString(const char *fmt, ...); 31 std::string FormatString(const char *fmt, va_list args);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | res_desc.cpp | 116 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()
|
H A D | resource_manager_impl.cpp | 93 outValue = FormatString(temp.c_str(), args); in GetStringFormatById() 108 outValue = FormatString(temp.c_str(), args); in GetStringFormatByName() 203 outValue = FormatString(temp.c_str(), args); in GetPluralStringByIdFormat() 221 outValue = FormatString(temp.c_str(), args); in GetPluralStringByNameFormat()
|
H A D | global.cpp | 129 ret.append(FormatString("'%s',", idItem->values_[i].c_str())); in GetValue()
|
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | res_desc.cpp | 191 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() 326 std::string ret = FormatString("keyCount:%u\n", keys_.size()); in ToString()
|
H A D | resource_manager_impl.cpp | 129 outValue = FormatString(temp.c_str(), args); in GetStringFormatById() 144 outValue = FormatString(temp.c_str(), args); in GetStringFormatByName() 337 outValue = FormatString(temp.c_str(), args); in GetPluralStringByIdFormat() 362 outValue = FormatString(temp.c_str(), args); in GetPluralStringByNameFormat()
|
/base/web/webview/interfaces/kits/napi/webdatabase/ |
H A D | napi_web_data_base.cpp | 147 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 D | napi_geolocation_permission.cpp | 135 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", "three")); 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", "three")); in JsGetStoredGeolocation() 545 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "callback", "function")); in JsGetStoredGeolocation() 551 NWebError::FormatString(ParamCheckErrorMsgTemplat in JsGetStoredGeolocation() [all...] |
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | string_utils_test.cpp | 62 * @tc.desc: Test FormatString, none file case. 67 std::string result = FormatString("%d", 10001); in HWTEST_F() 70 result = FormatString("I'm %s, I'm %d", "cici", 5); in HWTEST_F()
|
H A D | resource_manager_test.cpp | 1557 std::string value(FormatString("$integer:%d", id)); in HWTEST_F() 1565 value.assign(FormatString("$string:%d", id)); in HWTEST_F() 1571 value.assign(FormatString("$string:%d", id)); in HWTEST_F() 1577 value.assign(FormatString("$boolean:%d", id)); in HWTEST_F() 1583 value.assign(FormatString("$color:%d", id)); in HWTEST_F() 1589 value.assign(FormatString("$float:%d", id)); in HWTEST_F() 1595 value.assign(FormatString("$pattern:%d", id)); in HWTEST_F() 1605 value.assign(FormatString("$string:%d", id)); in HWTEST_F() 1611 value.assign(FormatString("$string:%d", id)); in HWTEST_F() 1618 value.assign(FormatString(" in HWTEST_F() [all...] |
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | napi_webview_controller.cpp | 353 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginTop", "number")); in ParsePDFMarginConfigArgs() 363 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginBottom", "number")); in ParsePDFMarginConfigArgs() 373 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginRight", "number")); in ParsePDFMarginConfigArgs() 383 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginLeft", "number")); in ParsePDFMarginConfigArgs() 398 env, PARAM_CHECK_ERROR, NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "width", "number")); in ParsePDFConfigArgs() 407 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "height", "number")); in ParsePDFConfigArgs() 451 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "name", "string")); 457 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "methodList", "array")); 468 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "permission", "string")); 935 NWebError::FormatString(ParamCheckErrorMsgTemplat in SetHttpDns() [all...] |
H A D | napi_web_scheme_handler_request.cpp | 500 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() 698 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "encoding", "string")); in JS_SetEncoding() 756 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "three")); in JS_SetHeaderByName() 762 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "name", "string")); in JS_SetHeaderByName() 768 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "value", "string")); in JS_SetHeaderByName() 774 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "overwrite", "booleane")); in JS_SetHeaderByName() 820 NWebError::FormatString(ParamCheckErrorMsgTemplat in JS_SetNetErrorCode() [all...] |
/base/web/webview/interfaces/kits/napi/webadsblockmanager/ |
H A D | napi_web_adsblock_manager.cpp | 84 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()
|
/base/web/webview/interfaces/kits/napi/webcookiemanager/ |
H A D | napi_web_cookie_manager.cpp | 163 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "one", "two")); in JsFetchCookieAsync() 170 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsFetchCookieAsync() 193 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_TYEPS_ERROR)); in JsFetchCookieAsync() 217 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "one", "two")); in JsGetCookie() 224 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsGetCookie() 231 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "incognito", "boolean")); in JsGetCookie() 262 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_THREE, "two", "three", "four")); in JsSetCookie() 270 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsSetCookie() 275 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "value", "string")); in JsSetCookie() 282 NWebError::FormatString(ParamCheckErrorMsgTemplat in JsSetCookie() [all...] |
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | string_utils_test.cpp | 60 * @tc.desc: Test FormatString, none file case. 65 std::string result = FormatString("%d", 10001); in HWTEST_F() 68 result = FormatString("I'm %s, I'm %d", "cici", 5); in HWTEST_F() 305 * @tc.desc: Test FormatString function 310 std::string result = FormatString(nullptr); in HWTEST_F() 314 result = FormatString(nullptr, args); in HWTEST_F() 330 * @tc.desc: Test FormatString function 342 * @tc.desc: Test FormatString function 354 * @tc.desc: Test FormatString function 366 * @tc.desc: Test FormatString functio [all...] |
H A D | resource_manager_test.cpp | 1706 std::string value(FormatString("$integer:%d", id)); in HWTEST_F() 1714 value.assign(FormatString("$string:%d", id)); in HWTEST_F() 1720 value.assign(FormatString("$string:%d", id)); in HWTEST_F() 1726 value.assign(FormatString("$boolean:%d", id)); in HWTEST_F() 1732 value.assign(FormatString("$color:%d", id)); in HWTEST_F() 1738 value.assign(FormatString("$float:%d", id)); in HWTEST_F() 1744 value.assign(FormatString("$pattern:%d", id)); in HWTEST_F() 1771 std::string value(FormatString("$string:%d", id)); in HWTEST_F() 1777 value.assign(FormatString("$string:%d", id)); in HWTEST_F() 1784 value.assign(FormatString(" in HWTEST_F() [all...] |
/base/web/webview/interfaces/kits/napi/common/ |
H A D | web_errors.h | 64 std::string FormatString(const char *errorMsgTemplate, ...);
|
H A D | web_errors.cpp | 97 std::string FormatString(const char *errorMsgTemplate, ...) in FormatString() function
|
/base/web/webview/interfaces/kits/napi/webstorage/ |
H A D | napi_web_storage.cpp | 90 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()
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | string_utils.cpp | 56 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
|
/base/telephony/core_service/services/network_search/include/ |
H A D | network_utils.h | 57 static std::string FormatString(const std::string &format, Args... args); 76 std::string NetworkUtils::FormatString(const std::string &format, Args... args) in FormatString() function in OHOS::Telephony::NetworkUtils
|
/base/telephony/core_service/services/network_search/src/ |
H A D | operator_name.cpp | 249 spn = NetworkUtils::FormatString(csSpnFormat_, spn.c_str()); in UpdateSpn() 332 plmn = NetworkUtils::FormatString(csSpnFormat_, plmn.c_str()); in NotifyCdmaSpnChanged()
|