#include <JUtf8Character.h>
◆ JUtf8Character() [1/4]
JUtf8Character::JUtf8Character |
( |
| ) |
|
◆ JUtf8Character() [2/4]
◆ JUtf8Character() [3/4]
JUtf8Character::JUtf8Character |
( |
const JUtf8Byte |
asciiCharacter | ) |
|
|
explicit |
◆ JUtf8Character() [4/4]
JUtf8Character::JUtf8Character |
( |
const JUtf8Byte * |
utf8Character | ) |
|
|
explicit |
◆ AllocateBytes()
JUtf8Byte * JUtf8Character::AllocateBytes |
( |
| ) |
const |
This allocates a new pointer, which the caller is responsible for deleting via "delete []".
◆ GetByteCount()
JSize JUtf8Character::GetByteCount |
( |
| ) |
const |
|
inline |
◆ GetBytes()
const JUtf8Byte * JUtf8Character::GetBytes |
( |
| ) |
const |
|
inline |
◆ GetCharacterByteCount()
bool JUtf8Character::GetCharacterByteCount |
( |
const JUtf8Byte * |
utf8Character, |
|
|
JSize * |
byteCount |
|
) |
| |
|
static |
◆ GetPrevCharacterByteCount()
bool JUtf8Character::GetPrevCharacterByteCount |
( |
const JUtf8Byte * |
lastByte, |
|
|
JSize * |
byteCount |
|
) |
| |
|
static |
Returns the length of the character ending with the specified byte.
◆ GetUtf32()
JUInt32 JUtf8Character::GetUtf32 |
( |
| ) |
const |
|
inline |
◆ IgnoreBadUtf8()
bool JUtf8Character::IgnoreBadUtf8 |
( |
| ) |
|
|
inlinestatic |
◆ IsAlnum()
bool JUtf8Character::IsAlnum |
( |
| ) |
const |
◆ IsAlpha()
bool JUtf8Character::IsAlpha |
( |
| ) |
const |
◆ IsAscii()
bool JUtf8Character::IsAscii |
( |
| ) |
const |
|
inline |
◆ IsBlank()
bool JUtf8Character::IsBlank |
( |
| ) |
const |
|
inline |
◆ IsCompleteCharacter()
bool JUtf8Character::IsCompleteCharacter |
( |
const JUtf8Byte * |
utf8Character, |
|
|
const JSize |
byteCount, |
|
|
JSize * |
characterByteCount |
|
) |
| |
|
static |
◆ IsControl()
bool JUtf8Character::IsControl |
( |
| ) |
const |
◆ IsDigit()
bool JUtf8Character::IsDigit |
( |
| ) |
const |
◆ IsLower()
bool JUtf8Character::IsLower |
( |
| ) |
const |
◆ IsPrint()
bool JUtf8Character::IsPrint |
( |
| ) |
const |
◆ IsSpace()
bool JUtf8Character::IsSpace |
( |
| ) |
const |
◆ IsUpper()
bool JUtf8Character::IsUpper |
( |
| ) |
const |
◆ IsValid()
◆ operator=() [1/3]
◆ operator=() [2/3]
◆ operator=() [3/3]
We do not copy itsBlockSize because we assume the client has set them appropriately.
◆ PrintHex()
void JUtf8Character::PrintHex |
( |
std::ostream & |
output | ) |
const |
◆ Set() [1/3]
void JUtf8Character::Set |
( |
const JUtf8Byte * |
utf8Character | ) |
|
◆ Set() [2/3]
void JUtf8Character::Set |
( |
const JUtf8Byte |
asciiCharacter | ) |
|
◆ Set() [3/3]
◆ SetIgnoreBadUtf8()
void JUtf8Character::SetIgnoreBadUtf8 |
( |
const bool |
ignore | ) |
|
|
inlinestatic |
◆ ToLower()
Only do this if you truly have a single character. Otherwise, use JString versions, because case conversion can modify more than one character in some scripts.
◆ ToUpper()
◆ Utf32ToUtf8()
Adapted from LLVM source code.
◆ Utf8ToUtf32()
Adapted from LLVM source code.
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
output, |
|
|
const JUtf8Character & |
c |
|
) |
| |
|
friend |
◆ operator>>
std::istream & operator>> |
( |
std::istream & |
input, |
|
|
JUtf8Character & |
c |
|
) |
| |
|
friend |
◆ kMaxByteCount
const JSize JUtf8Character::kMaxByteCount = 4 |
|
static |
◆ kUtf32SubstitutionCharacter
const JUInt32 JUtf8Character::kUtf32SubstitutionCharacter = 0x0000FFFD |
|
static |
◆ kUtf8SubstitutionCharacter
The documentation for this class was generated from the following files: