From 0bb036eec796914a15b5ac49c9fc528ff05b436e Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Fri, 8 Nov 2024 22:10:22 +0800 Subject: [PATCH] refactor(string): change the placeholder escape for format string to <[{ }]> avoiding surprises --- Redcraft.Utility/Source/Public/String/Conversion.h.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Redcraft.Utility/Source/Public/String/Conversion.h.inl b/Redcraft.Utility/Source/Public/String/Conversion.h.inl index 252e569..9e1a837 100644 --- a/Redcraft.Utility/Source/Public/String/Conversion.h.inl +++ b/Redcraft.Utility/Source/Public/String/Conversion.h.inl @@ -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