A set of methods for manipulating characters and character strings. More...
Static Public Member Functions | |
| static juce_wchar | toUpperCase (juce_wchar character) noexcept |
| static juce_wchar | toLowerCase (juce_wchar character) noexcept |
| static bool | isUpperCase (juce_wchar character) noexcept |
| static bool | isLowerCase (juce_wchar character) noexcept |
| static bool | isWhitespace (char character) noexcept |
| static bool | isWhitespace (juce_wchar character) noexcept |
| static bool | isDigit (char character) noexcept |
| static bool | isDigit (juce_wchar character) noexcept |
| static bool | isLetter (char character) noexcept |
| static bool | isLetter (juce_wchar character) noexcept |
| static bool | isLetterOrDigit (char character) noexcept |
| static bool | isLetterOrDigit (juce_wchar character) noexcept |
| static int | getHexDigitValue (juce_wchar digit) noexcept |
| Returns 0 to 16 for '0' to 'F", or -1 for characters that aren't a legal hex digit. | |
| template<typename CharPointerType > | |
| static double | readDoubleValue (CharPointerType &text) noexcept |
| template<typename CharPointerType > | |
| static double | getDoubleValue (const CharPointerType &text) noexcept |
| template<typename IntType , typename CharPointerType > | |
| static IntType | getIntValue (const CharPointerType &text) noexcept |
| template<typename CharPointerType > | |
| static size_t | lengthUpTo (CharPointerType text, const size_t maxCharsToCount) noexcept |
| template<typename CharPointerType > | |
| static size_t | lengthUpTo (CharPointerType start, const CharPointerType &end) noexcept |
| template<typename DestCharPointerType , typename SrcCharPointerType > | |
| static void | copyAll (DestCharPointerType &dest, SrcCharPointerType src) noexcept |
| template<typename DestCharPointerType , typename SrcCharPointerType > | |
| static int | copyWithDestByteLimit (DestCharPointerType &dest, SrcCharPointerType src, int maxBytes) noexcept |
| template<typename DestCharPointerType , typename SrcCharPointerType > | |
| static void | copyWithCharLimit (DestCharPointerType &dest, SrcCharPointerType src, int maxChars) noexcept |
| template<typename CharPointerType1 , typename CharPointerType2 > | |
| static int | compare (CharPointerType1 s1, CharPointerType2 s2) noexcept |
| template<typename CharPointerType1 , typename CharPointerType2 > | |
| static int | compareUpTo (CharPointerType1 s1, CharPointerType2 s2, int maxChars) noexcept |
| template<typename CharPointerType1 , typename CharPointerType2 > | |
| static int | compareIgnoreCase (CharPointerType1 s1, CharPointerType2 s2) noexcept |
| template<typename CharPointerType1 , typename CharPointerType2 > | |
| static int | compareIgnoreCaseUpTo (CharPointerType1 s1, CharPointerType2 s2, int maxChars) noexcept |
| template<typename CharPointerType1 , typename CharPointerType2 > | |
| static int | indexOf (CharPointerType1 haystack, const CharPointerType2 &needle) noexcept |
| template<typename CharPointerType1 , typename CharPointerType2 > | |
| static int | indexOfIgnoreCase (CharPointerType1 haystack, const CharPointerType2 &needle) noexcept |
| template<typename Type > | |
| static int | indexOfChar (Type text, const juce_wchar charToFind) noexcept |
| template<typename Type > | |
| static int | indexOfCharIgnoreCase (Type text, juce_wchar charToFind) noexcept |
| template<typename Type > | |
| static Type | findEndOfWhitespace (const Type &text) noexcept |
| template<typename Type > | |
| static Type | findEndOfToken (const Type &text, const Type &breakCharacters, const Type "eCharacters) |
A set of methods for manipulating characters and character strings.
These are defined as wrappers around the basic C string handlers, to provide a clean, cross-platform layer, (because various platforms differ in the range of C library calls that they provide).
| static juce_wchar CharacterFunctions::toUpperCase | ( | juce_wchar | character ) | [static] |
| static juce_wchar CharacterFunctions::toLowerCase | ( | juce_wchar | character ) | [static] |
Referenced by indexOfCharIgnoreCase().
| static bool CharacterFunctions::isUpperCase | ( | juce_wchar | character ) | [static] |
| static bool CharacterFunctions::isLowerCase | ( | juce_wchar | character ) | [static] |
| static bool CharacterFunctions::isWhitespace | ( | char | character ) | [static] |
| static bool CharacterFunctions::isWhitespace | ( | juce_wchar | character ) | [static] |
| static bool CharacterFunctions::isDigit | ( | char | character ) | [static] |
| static bool CharacterFunctions::isDigit | ( | juce_wchar | character ) | [static] |
| static bool CharacterFunctions::isLetter | ( | char | character ) | [static] |
| static bool CharacterFunctions::isLetter | ( | juce_wchar | character ) | [static] |
| static bool CharacterFunctions::isLetterOrDigit | ( | char | character ) | [static] |
| static bool CharacterFunctions::isLetterOrDigit | ( | juce_wchar | character ) | [static] |
| static int CharacterFunctions::getHexDigitValue | ( | juce_wchar | digit ) | [static] |
Returns 0 to 16 for '0' to 'F", or -1 for characters that aren't a legal hex digit.
| static double CharacterFunctions::readDoubleValue | ( | CharPointerType & | text ) | [static] |
References findEndOfWhitespace().
| static double CharacterFunctions::getDoubleValue | ( | const CharPointerType & | text ) | [static] |
| static IntType CharacterFunctions::getIntValue | ( | const CharPointerType & | text ) | [static] |
| static size_t CharacterFunctions::lengthUpTo | ( | CharPointerType | text, |
| const size_t | maxCharsToCount | ||
| ) | [static] |
| static size_t CharacterFunctions::lengthUpTo | ( | CharPointerType | start, |
| const CharPointerType & | end | ||
| ) | [static] |
| static void CharacterFunctions::copyAll | ( | DestCharPointerType & | dest, |
| SrcCharPointerType | src | ||
| ) | [static] |
| static int CharacterFunctions::copyWithDestByteLimit | ( | DestCharPointerType & | dest, |
| SrcCharPointerType | src, | ||
| int | maxBytes | ||
| ) | [static] |
| static void CharacterFunctions::copyWithCharLimit | ( | DestCharPointerType & | dest, |
| SrcCharPointerType | src, | ||
| int | maxChars | ||
| ) | [static] |
| static int CharacterFunctions::compare | ( | CharPointerType1 | s1, |
| CharPointerType2 | s2 | ||
| ) | [static] |
| static int CharacterFunctions::compareUpTo | ( | CharPointerType1 | s1, |
| CharPointerType2 | s2, | ||
| int | maxChars | ||
| ) | [static] |
| static int CharacterFunctions::compareIgnoreCase | ( | CharPointerType1 | s1, |
| CharPointerType2 | s2 | ||
| ) | [static] |
| static int CharacterFunctions::compareIgnoreCaseUpTo | ( | CharPointerType1 | s1, |
| CharPointerType2 | s2, | ||
| int | maxChars | ||
| ) | [static] |
| static int CharacterFunctions::indexOf | ( | CharPointerType1 | haystack, |
| const CharPointerType2 & | needle | ||
| ) | [static] |
| static int CharacterFunctions::indexOfIgnoreCase | ( | CharPointerType1 | haystack, |
| const CharPointerType2 & | needle | ||
| ) | [static] |
| static int CharacterFunctions::indexOfChar | ( | Type | text, |
| const juce_wchar | charToFind | ||
| ) | [static] |
| static int CharacterFunctions::indexOfCharIgnoreCase | ( | Type | text, |
| juce_wchar | charToFind | ||
| ) | [static] |
References toLowerCase().
Referenced by CharPointer_UTF8::indexOf(), CharPointer_UTF32::indexOf(), CharPointer_UTF16::indexOf(), and CharPointer_ASCII::indexOf().
| static Type CharacterFunctions::findEndOfWhitespace | ( | const Type & | text ) | [static] |
Referenced by readDoubleValue().
| static Type CharacterFunctions::findEndOfToken | ( | const Type & | text, |
| const Type & | breakCharacters, | ||
| const Type & | quoteCharacters | ||
| ) | [static] |