1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

restructure to avoid warning when using allow special chars option

This commit is contained in:
Ben Kuper 2024-06-23 10:27:55 +02:00
parent 4f98d0ec2f
commit fe16f518bd

View file

@ -283,14 +283,17 @@ namespace
return c >= ' ' && c <= '~';
}
static bool isDisallowedChar (juce_wchar c) noexcept
{
#if JUCE_ALLOW_SPECIAL_CHARS_IN_ADDRESS
static bool isDisallowedChar (juce_wchar) noexcept
{
return false;
#else
return CharPointer_ASCII( Traits::getDisallowedChars()).indexOf (c, false) >= 0;
#endif
}
#else
static bool isDisallowedChar(juce_wchar c) noexcept
{
return CharPointer_ASCII(Traits::getDisallowedChars()).indexOf(c, false) >= 0;
}
#endif
static bool containsOnlyAllowedPrintableASCIIChars (const String& string) noexcept
{