diff --git a/Redcraft.Utility/Source/Public/Strings/Char.h b/Redcraft.Utility/Source/Public/Strings/Char.h index 9b9fcf6..b53e9f3 100644 --- a/Redcraft.Utility/Source/Public/Strings/Char.h +++ b/Redcraft.Utility/Source/Public/Strings/Char.h @@ -85,7 +85,14 @@ struct TChar NODISCARD FORCEINLINE static constexpr bool IsValid(FCharType InChar) { - if constexpr (CSameAs) + if constexpr (TChar::IsASCII() && CSameAs) + { + if (0x00 <= InChar && InChar <= 0x7F) return true; + + return false; + } + + else if constexpr (CSameAs) { if ((InChar & 0b10000000) == 0b00000000) return true;