Home
last modified time | relevance | path

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

/base/hiviewdfx/hiview/base/
Ddefault_logger.cpp33 std::string formatStr("%s: %s ", format); in Print() local
34 StringReplace(formatStr, "%{public}", "%"); in Print()
35 StringReplace(formatStr, "%{private}", "%"); in Print()
37 vprintf(formatStr.c_str(), args); in Print()
/base/theme/wallpaper_mgr/utils/dfx/hidumper_adapter/
Dcommand.cpp40 std::string formatStr; in GetFormat() local
42 formatStr += seg; in GetFormat()
43 formatStr += " "; in GetFormat()
45 return formatStr; in GetFormat()
/base/time/time_service/services/dfx/src/
Dtime_cmd_parse.cpp45 std::string formatStr; in GetFormat() local
47 formatStr += seg; in GetFormat()
48 formatStr += " "; in GetFormat()
50 return formatStr; in GetFormat()
/base/theme/screenlock_mgr/services/src/
Dcommand.cpp46 std::string formatStr; in GetFormat() local
48 formatStr += seg; in GetFormat()
49 formatStr += " "; in GetFormat()
51 return formatStr; in GetFormat()
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/hilog/src/
Dhilog_napi_base.cpp43 void ParseLogContent(string& formatStr, vector<napiParam>& params, string& logContent) in ParseLogContent() argument
47 ret += formatStr; in ParseLogContent()
51 auto len = formatStr.size(); in ParseLogContent()
64 if (formatStr[pos] != '%') { in ParseLogContent()
65 ret += formatStr[pos]; in ParseLogContent()
70 formatStr.substr(pos + PROPERTY_POS, PUBLIC_LEN) == "public") { in ParseLogContent()
74 formatStr.substr(pos + PROPERTY_POS, PRIVATE_LEN) == "private") { in ParseLogContent()
81 switch (formatStr[pos + 1]) { in ParseLogContent()
107 ret += formatStr[pos]; in ParseLogContent()
111 ret += formatStr[pos]; in ParseLogContent()
[all …]
/base/update/update_app/common/src/main/ets/util/
DFormatUtils.ts56 export function formatStr(message: string, ...args: (string | number)[]): string { function
88 return formatStr(message, ...args).toUpperCase();
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/
Dhilog_module.cpp44 void HilogModule::ParseLogContent(const HilogString *formatStr, const HilogVector *params, HilogStr… in ParseLogContent() argument
46 if (formatStr == nullptr || params == nullptr || logContent == nullptr) { in ParseLogContent()
51 HilogString::Puts(HilogString::Get(formatStr), logContent); in ParseLogContent()
54 char *format = HilogString::Get(formatStr); in ParseLogContent()
55 size_t len = HilogString::Length(formatStr); in ParseLogContent()
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/include/
Dhilog_module.h49 …static void ParseLogContent(const HilogString *formatStr, const HilogVector *params, HilogString *…