CharacterFunctions Class Reference

List of all members.

Detailed Description

A set of methods for manipulating characters and character strings, with duplicate methods to handle 8-bit and unicode characters.

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


Static Public Member Functions

static int length (const char *const s) throw ()
static int length (const juce_wchar *const s) throw ()
static void copy (char *dest, const char *src, const int maxBytes) throw ()
static void copy (juce_wchar *dest, const juce_wchar *src, const int maxChars) throw ()
static void copy (juce_wchar *dest, const char *src, const int maxChars) throw ()
static void copy (char *dest, const juce_wchar *src, const int maxBytes) throw ()
static int bytesRequiredForCopy (const juce_wchar *src) throw ()
static void append (char *dest, const char *src) throw ()
static void append (juce_wchar *dest, const juce_wchar *src) throw ()
static int compare (const char *const s1, const char *const s2) throw ()
static int compare (const juce_wchar *s1, const juce_wchar *s2) throw ()
static int compare (const char *const s1, const char *const s2, const int maxChars) throw ()
static int compare (const juce_wchar *s1, const juce_wchar *s2, int maxChars) throw ()
static int compareIgnoreCase (const char *const s1, const char *const s2) throw ()
static int compareIgnoreCase (const juce_wchar *s1, const juce_wchar *s2) throw ()
static int compareIgnoreCase (const char *const s1, const char *const s2, const int maxChars) throw ()
static int compareIgnoreCase (const juce_wchar *s1, const juce_wchar *s2, int maxChars) throw ()
static const char * find (const char *const haystack, const char *const needle) throw ()
static const juce_wcharfind (const juce_wchar *haystack, const juce_wchar *const needle) throw ()
static int indexOfChar (const char *const haystack, const char needle, const bool ignoreCase) throw ()
static int indexOfChar (const juce_wchar *const haystack, const juce_wchar needle, const bool ignoreCase) throw ()
static int indexOfCharFast (const char *const haystack, const char needle) throw ()
static int indexOfCharFast (const juce_wchar *const haystack, const juce_wchar needle) throw ()
static int getIntialSectionContainingOnly (const char *const text, const char *const allowedChars) throw ()
static int getIntialSectionContainingOnly (const juce_wchar *const text, const juce_wchar *const allowedChars) throw ()
static int ftime (char *const dest, const int maxChars, const char *const format, const struct tm *const tm) throw ()
static int ftime (juce_wchar *const dest, const int maxChars, const juce_wchar *const format, const struct tm *const tm) throw ()
static int getIntValue (const char *const s) throw ()
static int getIntValue (const juce_wchar *s) throw ()
static int64 getInt64Value (const char *s) throw ()
static int64 getInt64Value (const juce_wchar *s) throw ()
static double getDoubleValue (const char *const s) throw ()
static double getDoubleValue (const juce_wchar *const s) throw ()
static char toUpperCase (const char character) throw ()
static juce_wchar toUpperCase (const juce_wchar character) throw ()
static void toUpperCase (char *s) throw ()
static void toUpperCase (juce_wchar *s) throw ()
static bool isUpperCase (const char character) throw ()
static bool isUpperCase (const juce_wchar character) throw ()
static char toLowerCase (const char character) throw ()
static juce_wchar toLowerCase (const juce_wchar character) throw ()
static void toLowerCase (char *s) throw ()
static void toLowerCase (juce_wchar *s) throw ()
static bool isLowerCase (const char character) throw ()
static bool isLowerCase (const juce_wchar character) throw ()
static bool isWhitespace (const char character) throw ()
static bool isWhitespace (const juce_wchar character) throw ()
static bool isDigit (const char character) throw ()
static bool isDigit (const juce_wchar character) throw ()
static bool isLetter (const char character) throw ()
static bool isLetter (const juce_wchar character) throw ()
static bool isLetterOrDigit (const char character) throw ()
static bool isLetterOrDigit (const juce_wchar character) throw ()
static int getHexDigitValue (const tchar digit) throw ()
 Returns 0 to 16 for '0' to 'F", or -1 for characters that aren't a legel hex digit.
static int printf (char *const dest, const int maxLength, const char *const format,...) throw ()
static int printf (juce_wchar *const dest, const int maxLength, const juce_wchar *const format,...) throw ()
static int vprintf (char *const dest, const int maxLength, const char *const format, va_list &args) throw ()
static int vprintf (juce_wchar *const dest, const int maxLength, const juce_wchar *const format, va_list &args) throw ()


Member Function Documentation

static int CharacterFunctions::length const char *const   s  )  throw () [static]
 

static int CharacterFunctions::length const juce_wchar *const   s  )  throw () [static]
 

static void CharacterFunctions::copy char *  dest,
const char *  src,
const int  maxBytes
throw () [static]
 

static void CharacterFunctions::copy juce_wchar dest,
const juce_wchar src,
const int  maxChars
throw () [static]
 

static void CharacterFunctions::copy juce_wchar dest,
const char *  src,
const int  maxChars
throw () [static]
 

static void CharacterFunctions::copy char *  dest,
const juce_wchar src,
const int  maxBytes
throw () [static]
 

static int CharacterFunctions::bytesRequiredForCopy const juce_wchar src  )  throw () [static]
 

static void CharacterFunctions::append char *  dest,
const char *  src
throw () [static]
 

static void CharacterFunctions::append juce_wchar dest,
const juce_wchar src
throw () [static]
 

static int CharacterFunctions::compare const char *const   s1,
const char *const   s2
throw () [static]
 

static int CharacterFunctions::compare const juce_wchar s1,
const juce_wchar s2
throw () [static]
 

static int CharacterFunctions::compare const char *const   s1,
const char *const   s2,
const int  maxChars
throw () [static]
 

static int CharacterFunctions::compare const juce_wchar s1,
const juce_wchar s2,
int  maxChars
throw () [static]
 

static int CharacterFunctions::compareIgnoreCase const char *const   s1,
const char *const   s2
throw () [static]
 

static int CharacterFunctions::compareIgnoreCase const juce_wchar s1,
const juce_wchar s2
throw () [static]
 

static int CharacterFunctions::compareIgnoreCase const char *const   s1,
const char *const   s2,
const int  maxChars
throw () [static]
 

static int CharacterFunctions::compareIgnoreCase const juce_wchar s1,
const juce_wchar s2,
int  maxChars
throw () [static]
 

static const char* CharacterFunctions::find const char *const   haystack,
const char *const   needle
throw () [static]
 

static const juce_wchar* CharacterFunctions::find const juce_wchar haystack,
const juce_wchar *const   needle
throw () [static]
 

static int CharacterFunctions::indexOfChar const char *const   haystack,
const char  needle,
const bool  ignoreCase
throw () [static]
 

static int CharacterFunctions::indexOfChar const juce_wchar *const   haystack,
const juce_wchar  needle,
const bool  ignoreCase
throw () [static]
 

static int CharacterFunctions::indexOfCharFast const char *const   haystack,
const char  needle
throw () [static]
 

static int CharacterFunctions::indexOfCharFast const juce_wchar *const   haystack,
const juce_wchar  needle
throw () [static]
 

static int CharacterFunctions::getIntialSectionContainingOnly const char *const   text,
const char *const   allowedChars
throw () [static]
 

static int CharacterFunctions::getIntialSectionContainingOnly const juce_wchar *const   text,
const juce_wchar *const   allowedChars
throw () [static]
 

static int CharacterFunctions::ftime char *const   dest,
const int  maxChars,
const char *const   format,
const struct tm *const   tm
throw () [static]
 

static int CharacterFunctions::ftime juce_wchar *const   dest,
const int  maxChars,
const juce_wchar *const   format,
const struct tm *const   tm
throw () [static]
 

static int CharacterFunctions::getIntValue const char *const   s  )  throw () [static]
 

static int CharacterFunctions::getIntValue const juce_wchar s  )  throw () [static]
 

static int64 CharacterFunctions::getInt64Value const char *  s  )  throw () [static]
 

static int64 CharacterFunctions::getInt64Value const juce_wchar s  )  throw () [static]
 

static double CharacterFunctions::getDoubleValue const char *const   s  )  throw () [static]
 

static double CharacterFunctions::getDoubleValue const juce_wchar *const   s  )  throw () [static]
 

static char CharacterFunctions::toUpperCase const char  character  )  throw () [static]
 

static juce_wchar CharacterFunctions::toUpperCase const juce_wchar  character  )  throw () [static]
 

static void CharacterFunctions::toUpperCase char *  s  )  throw () [static]
 

static void CharacterFunctions::toUpperCase juce_wchar s  )  throw () [static]
 

static bool CharacterFunctions::isUpperCase const char  character  )  throw () [static]
 

static bool CharacterFunctions::isUpperCase const juce_wchar  character  )  throw () [static]
 

static char CharacterFunctions::toLowerCase const char  character  )  throw () [static]
 

static juce_wchar CharacterFunctions::toLowerCase const juce_wchar  character  )  throw () [static]
 

static void CharacterFunctions::toLowerCase char *  s  )  throw () [static]
 

static void CharacterFunctions::toLowerCase juce_wchar s  )  throw () [static]
 

static bool CharacterFunctions::isLowerCase const char  character  )  throw () [static]
 

static bool CharacterFunctions::isLowerCase const juce_wchar  character  )  throw () [static]
 

static bool CharacterFunctions::isWhitespace const char  character  )  throw () [static]
 

static bool CharacterFunctions::isWhitespace const juce_wchar  character  )  throw () [static]
 

static bool CharacterFunctions::isDigit const char  character  )  throw () [static]
 

static bool CharacterFunctions::isDigit const juce_wchar  character  )  throw () [static]
 

static bool CharacterFunctions::isLetter const char  character  )  throw () [static]
 

static bool CharacterFunctions::isLetter const juce_wchar  character  )  throw () [static]
 

static bool CharacterFunctions::isLetterOrDigit const char  character  )  throw () [static]
 

static bool CharacterFunctions::isLetterOrDigit const juce_wchar  character  )  throw () [static]
 

static int CharacterFunctions::getHexDigitValue const tchar  digit  )  throw () [static]
 

Returns 0 to 16 for '0' to 'F", or -1 for characters that aren't a legel hex digit.

static int CharacterFunctions::printf char *const   dest,
const int  maxLength,
const char *const   format,
  ...
throw () [static]
 

static int CharacterFunctions::printf juce_wchar *const   dest,
const int  maxLength,
const juce_wchar *const   format,
  ...
throw () [static]
 

static int CharacterFunctions::vprintf char *const   dest,
const int  maxLength,
const char *const   format,
va_list &  args
throw () [static]
 

static int CharacterFunctions::vprintf juce_wchar *const   dest,
const int  maxLength,
const juce_wchar *const   format,
va_list &  args
throw () [static]
 


The documentation for this class was generated from the following file: