refactor(string): change the placeholder escape for format string to <[{ }]> avoiding surprises

This commit is contained in:
Redstone1024 2024-11-08 22:10:22 +08:00
parent d8803880f1
commit 0bb036eec7

View File

@ -25,8 +25,8 @@ NAMESPACE_MODULE_BEGIN(Utility)
#define LEFT_BRACE LITERAL(T, '{')
#define RIGHT_BRACE LITERAL(T, '}')
#define ESCAPE_LEFT_BRACE TStringView(LITERAL(T, "#{"))
#define ESCAPE_RIGHT_BRACE TStringView(LITERAL(T, "}#"))
#define ESCAPE_LEFT_BRACE TStringView(LITERAL(T, "<[{"))
#define ESCAPE_RIGHT_BRACE TStringView(LITERAL(T, "}]>"))
NAMESPACE_PRIVATE_BEGIN