52 size_t bracket = format.find(
'{');
53 if (bracket == std::string_view::npos) {
57 ret += format.substr(0, bracket);
58 if (format.substr(bracket, 4) ==
"{{}}") {
61 return stringFormatHelper(ret, format.substr(bracket + 4), std::forward<Args>(args)...);
62 }
else if (format.substr(bracket, 2) ==
"{}") {
68 return stringFormatHelper(ret, format.substr(bracket + 1), std::forward<Args>(args)...);
74 size_t bracket = format.find(
'{');
75 if (bracket == std::string_view::npos) {
78 ret += format.substr(0, bracket);
79 if (format.substr(bracket, 4) ==
"{{}}") {
83 std::forward<Args>(args)...);
84 }
else if (format.substr(bracket, 2) ==
"{}") {
87 return stringFormatHelper(ret, format.substr(bracket + 2), std::forward<Args>(args)...);
92 std::forward<Args>(args)...);