Static Public Member Functions

CharacterFunctions Class Reference

A set of methods for manipulating characters and character strings. More...

List of all members.

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 &quoteCharacters)

Detailed Description

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).

See also:
String

Member Function Documentation

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.

template<typename CharPointerType >
static double CharacterFunctions::readDoubleValue ( CharPointerType &  text ) [static]

References findEndOfWhitespace().

template<typename CharPointerType >
static double CharacterFunctions::getDoubleValue ( const CharPointerType &  text ) [static]
template<typename IntType , typename CharPointerType >
static IntType CharacterFunctions::getIntValue ( const CharPointerType &  text ) [static]
template<typename CharPointerType >
static size_t CharacterFunctions::lengthUpTo ( CharPointerType  text,
const size_t  maxCharsToCount 
) [static]
template<typename CharPointerType >
static size_t CharacterFunctions::lengthUpTo ( CharPointerType  start,
const CharPointerType &  end 
) [static]
template<typename DestCharPointerType , typename SrcCharPointerType >
static void CharacterFunctions::copyAll ( DestCharPointerType &  dest,
SrcCharPointerType  src 
) [static]
template<typename DestCharPointerType , typename SrcCharPointerType >
static int CharacterFunctions::copyWithDestByteLimit ( DestCharPointerType &  dest,
SrcCharPointerType  src,
int  maxBytes 
) [static]
template<typename DestCharPointerType , typename SrcCharPointerType >
static void CharacterFunctions::copyWithCharLimit ( DestCharPointerType &  dest,
SrcCharPointerType  src,
int  maxChars 
) [static]
template<typename CharPointerType1 , typename CharPointerType2 >
static int CharacterFunctions::compare ( CharPointerType1  s1,
CharPointerType2  s2 
) [static]
template<typename CharPointerType1 , typename CharPointerType2 >
static int CharacterFunctions::compareUpTo ( CharPointerType1  s1,
CharPointerType2  s2,
int  maxChars 
) [static]
template<typename CharPointerType1 , typename CharPointerType2 >
static int CharacterFunctions::compareIgnoreCase ( CharPointerType1  s1,
CharPointerType2  s2 
) [static]
template<typename CharPointerType1 , typename CharPointerType2 >
static int CharacterFunctions::compareIgnoreCaseUpTo ( CharPointerType1  s1,
CharPointerType2  s2,
int  maxChars 
) [static]
template<typename CharPointerType1 , typename CharPointerType2 >
static int CharacterFunctions::indexOf ( CharPointerType1  haystack,
const CharPointerType2 &  needle 
) [static]
template<typename CharPointerType1 , typename CharPointerType2 >
static int CharacterFunctions::indexOfIgnoreCase ( CharPointerType1  haystack,
const CharPointerType2 &  needle 
) [static]
template<typename Type >
static int CharacterFunctions::indexOfChar ( Type  text,
const juce_wchar  charToFind 
) [static]
template<typename Type >
static int CharacterFunctions::indexOfCharIgnoreCase ( Type  text,
juce_wchar  charToFind 
) [static]
template<typename Type >
static Type CharacterFunctions::findEndOfWhitespace ( const Type &  text ) [static]

Referenced by readDoubleValue().

template<typename Type >
static Type CharacterFunctions::findEndOfToken ( const Type &  text,
const Type &  breakCharacters,
const Type &  quoteCharacters 
) [static]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines