#include <juce_CharPointer_UTF32.h>
Wraps a pointer to a null-terminated UTF-32 character string, and provides various methods to operate on the data.
- See also
- CharPointer_UTF8, CharPointer_UTF16
Atomically swaps this pointer for a new value, returning the previous value.
static bool CharPointer_UTF32::canRepresent |
( |
juce_wchar |
character | ) |
|
|
inlinestaticnoexcept |
Returns true if the given unicode character can be represented in this encoding.
template<typename CharPointer >
int CharPointer_UTF32::compare |
( |
const CharPointer |
other | ) |
const |
|
inlinenoexcept |
Compares this string with another one.
template<typename CharPointer >
int CharPointer_UTF32::compareIgnoreCase |
( |
const CharPointer |
other | ) |
const |
|
inline |
Compares this string with another one.
template<typename CharPointer >
int CharPointer_UTF32::compareIgnoreCaseUpTo |
( |
const CharPointer |
other, |
|
|
const int |
maxChars |
|
) |
| const |
|
inlinenoexcept |
Compares this string with another one, up to a specified number of characters.
template<typename CharPointer >
int CharPointer_UTF32::compareUpTo |
( |
const CharPointer |
other, |
|
|
const int |
maxChars |
|
) |
| const |
|
inlinenoexcept |
Compares this string with another one, up to a specified number of characters.
Returns the first non-whitespace character in the string.
Returns a pointer to the null character that terminates this string.
CharType* CharPointer_UTF32::getAddress |
( |
| ) |
const |
|
inlinenoexcept |
Returns the address that this pointer is pointing to.
Returns the character that this pointer is currently pointing to, and then advances the pointer to point to the next character.
Returns the number of bytes that would be needed to represent the given unicode character in this encoding format.
template<class CharPointer >
static size_t CharPointer_UTF32::getBytesRequiredFor |
( |
const CharPointer |
text | ) |
|
|
inlinestaticnoexcept |
Returns the number of bytes that would be needed to represent the given string in this encoding format. The value returned does NOT include the terminating null character.
double CharPointer_UTF32::getDoubleValue |
( |
| ) |
const |
|
inlinenoexcept |
Parses this string as a floating point double.
int CharPointer_UTF32::getIntValue32 |
( |
| ) |
const |
|
inlinenoexcept |
Parses this string as a 32-bit integer.
int64 CharPointer_UTF32::getIntValue64 |
( |
| ) |
const |
|
inlinenoexcept |
Parses this string as a 64-bit integer.
template<typename CharPointer >
int CharPointer_UTF32::indexOf |
( |
const CharPointer |
stringToFind | ) |
const |
|
inlinenoexcept |
Returns the character index of a substring, or -1 if it isn't found.
Returns the character index of a unicode character, or -1 if it isn't found.
Returns the character index of a unicode character, or -1 if it isn't found.
bool CharPointer_UTF32::isDigit |
( |
| ) |
const |
|
inline |
Returns true if the first character of this string is a digit.
bool CharPointer_UTF32::isEmpty |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if this pointer is pointing to a null character.
bool CharPointer_UTF32::isLetter |
( |
| ) |
const |
|
inline |
Returns true if the first character of this string is a letter.
bool CharPointer_UTF32::isLetterOrDigit |
( |
| ) |
const |
|
inline |
Returns true if the first character of this string is a letter or digit.
bool CharPointer_UTF32::isLowerCase |
( |
| ) |
const |
|
inline |
Returns true if the first character of this string is lower-case.
bool CharPointer_UTF32::isUpperCase |
( |
| ) |
const |
|
inline |
Returns true if the first character of this string is upper-case.
static bool CharPointer_UTF32::isValidString |
( |
const CharType * |
dataToTest, |
|
|
int |
maxBytesToRead |
|
) |
| |
|
inlinestatic |
Returns true if this data contains a valid string in this encoding.
bool CharPointer_UTF32::isWhitespace |
( |
| ) |
const |
|
inline |
Returns true if the first character of this string is whitespace.
size_t CharPointer_UTF32::length |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of characters in this string.
size_t CharPointer_UTF32::lengthUpTo |
( |
const size_t |
maxCharsToCount | ) |
const |
|
inlinenoexcept |
Returns the number of characters in this string, or the given value, whichever is lower.
Returns the number of characters in this string, or up to the given end pointer, whichever is lower.
Returns the address that this pointer is pointing to.
Returns the unicode character that this pointer is pointing to.
Returns a pointer which is moved forwards from this one by the specified number of characters.
Moves this pointer along to the next character in the string.
Moves this pointer along to the next character in the string.
void CharPointer_UTF32::operator+= |
( |
const int |
numToSkip | ) |
|
|
inlinenoexcept |
Moves this pointer forwards by the specified number of characters.
Returns a pointer which is moved backwards from this one by the specified number of characters.
Moves this pointer to the previous character in the string.
void CharPointer_UTF32::operator-= |
( |
const int |
numToSkip | ) |
|
|
inlinenoexcept |
This is a pointer comparison, it doesn't compare the actual text.
Returns the character at a given character index from the start of the string.
size_t CharPointer_UTF32::sizeInBytes |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of bytes that are used to represent this string. This includes the terminating null character.
juce_wchar CharPointer_UTF32::toLowerCase |
( |
| ) |
const |
|
inlinenoexcept |
Returns a lower-case version of the first character of this string.
juce_wchar CharPointer_UTF32::toUpperCase |
( |
| ) |
const |
|
inlinenoexcept |
Returns an upper-case version of the first character of this string.
Writes a unicode character to this string, and advances this pointer to point to the next position.
template<typename CharPointer >
void CharPointer_UTF32::writeAll |
( |
const CharPointer |
src | ) |
|
|
inlinenoexcept |
Copies a source string to this pointer, advancing this pointer as it goes.
Copies a source string to this pointer, advancing this pointer as it goes.
void CharPointer_UTF32::writeNull |
( |
| ) |
const |
|
inlinenoexcept |
Writes a null character to this string (leaving the pointer's position unchanged).
template<typename CharPointer >
void CharPointer_UTF32::writeWithCharLimit |
( |
const CharPointer |
src, |
|
|
const int |
maxChars |
|
) |
| |
|
inlinenoexcept |
Copies a source string to this pointer, advancing this pointer as it goes. The maxChars parameter specifies the maximum number of characters that can be written to the destination buffer before stopping (including the terminating null).
template<typename CharPointer >
size_t CharPointer_UTF32::writeWithDestByteLimit |
( |
const CharPointer |
src, |
|
|
const size_t |
maxDestBytes |
|
) |
| |
|
inlinenoexcept |
Copies a source string to this pointer, advancing this pointer as it goes. The maxDestBytes parameter specifies the maximum number of bytes that can be written to the destination buffer before stopping.
The documentation for this class was generated from the following file: