juce_CharacterFunctions.h File Reference

Go to the source code of this file.

Classes

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

Defines

#define JUCE_T(stringLiteral)   (stringLiteral)
#define juce_tcharToWideChar(c)   ((juce_wchar) (unsigned char) (c))
#define T(stringLiteral)   JUCE_T(stringLiteral)
 The 'T' macro allows a literal string to be compiled using either 8-bit characters or unicode.

Typedefs

typedef char tchar


Define Documentation

#define JUCE_T stringLiteral   )     (stringLiteral)
 

#define juce_tcharToWideChar  )     ((juce_wchar) (unsigned char) (c))
 

#define T stringLiteral   )     JUCE_T(stringLiteral)
 

The 'T' macro allows a literal string to be compiled using either 8-bit characters or unicode.

If you write your string literals in the form T("xyz"), this will either be compiled as "xyz" for non-unicode builds, or L"xyz" for unicode builds, depending on whether the JUCE_STRINGS_ARE_UNICODE macro has been set in juce_Config.h

Because the 'T' symbol is occasionally used inside 3rd-party library headers which you may need to include after juce.h, you can use the juce_withoutMacros.h file (in the juce/src directory) to avoid defining this macro. See the comments in juce_withoutMacros.h for more info.


Typedef Documentation

typedef char tchar