mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Merge 6f438012be into 457cf9ecef
This commit is contained in:
commit
43421249fb
2 changed files with 15 additions and 0 deletions
|
|
@ -64,6 +64,14 @@
|
||||||
#include <juce_core/juce_core.h>
|
#include <juce_core/juce_core.h>
|
||||||
#include <juce_events/juce_events.h>
|
#include <juce_events/juce_events.h>
|
||||||
|
|
||||||
|
/** Config: JUCE_ALLOW_SPECIAL_CHARS_IN_ADDRESS
|
||||||
|
Enables the use of characters in adress that are not allowed by the OSC specifications (like spaces), but that are used
|
||||||
|
by some applications anyway (e.g. /my spaced/address)
|
||||||
|
*/
|
||||||
|
#ifndef JUCE_ALLOW_SPECIAL_CHARS_IN_ADDRESS
|
||||||
|
#define JUCE_ALLOW_SPECIAL_CHARS_IN_ADDRESS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#include "osc/juce_OSCTypes.h"
|
#include "osc/juce_OSCTypes.h"
|
||||||
#include "osc/juce_OSCTimeTag.h"
|
#include "osc/juce_OSCTimeTag.h"
|
||||||
|
|
|
||||||
|
|
@ -283,10 +283,17 @@ namespace
|
||||||
return c >= ' ' && c <= '~';
|
return c >= ' ' && c <= '~';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable: 4100)
|
||||||
static bool isDisallowedChar (juce_wchar c) noexcept
|
static bool isDisallowedChar (juce_wchar c) noexcept
|
||||||
{
|
{
|
||||||
|
#if JUCE_ALLOW_SPECIAL_CHARS_IN_ADDRESS
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
return CharPointer_ASCII (Traits::getDisallowedChars()).indexOf (c, false) >= 0;
|
return CharPointer_ASCII (Traits::getDisallowedChars()).indexOf (c, false) >= 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
#pragma warning(pop)
|
||||||
|
|
||||||
static bool containsOnlyAllowedPrintableASCIIChars (const String& string) noexcept
|
static bool containsOnlyAllowedPrintableASCIIChars (const String& string) noexcept
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue