![]() | InDesign SDK 20.5 |
Public Types | |
| enum | ConversionError { kNoError = 0, kNotNumber } |
Public Member Functions | |
| PlatformChar (char inChar, int8 script=-1) | |
| PlatformChar (uchar16 inChar, int8 script=-1) | |
| PlatformChar (uchar highByte, uchar lowByte, int8 script=-1) | |
| void | Set (uchar highByte, uchar lowByte, int8 script=-1) |
| void | Set (uchar16 inChar, int8 script=-1) |
| void | Set (char inChar, int8 script=-1) |
| void | Set (uchar inChar, int8 script=-1) |
| void | SetFromUnicode (textchar uniChar) |
| bool16 | IsTwoByte () const |
| bool16 | IsLowASCII () const |
| bool16 | IsNumber () const |
| bool16 | IsHexNumber () const |
| bool16 | IsAlpha () const |
| bool16 | IsUpper () const |
| bool16 | IsLower () const |
| PlatformChar | ToUpper () const |
| PlatformChar | ToLower () const |
| bool16 | IsSpace () const |
| bool16 | IsComma () const |
| bool16 | IsDash () const |
| bool16 | IsPeriod () const |
| bool16 | IsColon () const |
| bool16 | IsSemiColon () const |
| bool16 | IsBackSlash () const |
| bool16 | IsSlash () const |
| bool16 | IsTilde () const |
| bool16 | IsLineBreakChar () const |
| bool16 | IsChar (char compareChar) const |
| uchar | HighByte () const |
| uchar | LowByte () const |
| uchar | GetAsOneByteChar () const |
| uchar16 | GetValue () const |
| int32 | GetScript () const |
| PMString * | GetAsHexString () const |
| int16 | GetAsNumber (ConversionError *pError=nil) const |
| void | SetFromNumber (int16 number) |
| bool16 | IsValid () const |
| bool16 | IsValidCharForScript (int32 script=-1) const |
| bool16 | IsValidInUnicode (int32 script=-1) const |
| bool16 | operator== (const PlatformChar &value) const |
| bool16 | operator!= (const PlatformChar &value) const |
| bool16 | operator< (const PlatformChar &value) const |
| bool16 | operator> (const PlatformChar &value) const |
| bool16 | operator<= (const PlatformChar &value) const |
| bool16 | operator>= (const PlatformChar &value) const |
| PlatformChar & | operator++ () |
| PlatformChar | operator++ (int) |
| PlatformChar | operator+= (const PlatformChar &value) |
| PlatformChar | operator+ (const PlatformChar &value) const |
| PlatformChar & | operator-- () |
| PlatformChar | operator-- (int) |
| PlatformChar | operator-= (const PlatformChar &value) |
| PlatformChar | operator- (const PlatformChar &value) const |
| PMString* PlatformChar::GetAsHexString | ( | ) | const |
Get value as hex string
| int16 PlatformChar::GetAsNumber | ( | ConversionError * | pError = nil | ) | const |
Get as number. Sets pError to a ConversionError if the character cannot be converted.
| pError | error |
| uchar PlatformChar::GetAsOneByteChar | ( | ) | const |
Get a uchar from PlatformChar this is only for special cases where you know you have a one byte string and you want to get its uchar value.
| inline |
Return the platform-encoded value
| inline |
Character is alphabetic
| inline |
Character is a valid representation of hex.
| inline |
Is lower ASCII
| bool16 PlatformChar::IsLower | ( | ) | const |
Character is lower case
| inline |
Is character between '0' and '9'
| inline |
Is PlatformChar 2-byte.
| bool16 PlatformChar::IsUpper | ( | ) | const |
Character is upper case
| bool16 PlatformChar::IsValidCharForScript | ( | int32 | script = -1 | ) | const |
Check if character high and low bytes are valid if 2-byte script
| script | script to check. If -1 internal script value is used. |
| bool16 PlatformChar::IsValidInUnicode | ( | int32 | script = -1 | ) | const |
Check if character can be represented in unicode with script
| script | script to check. If -1 internal script value is used. |
| inline |
Set value of PlatformChar
| highByte | high byte of 2-byte character. 0 if not 2-byte. |
| lowByte | low byte of 2-byte character. |
| script | encoding of character. -1 if you don't care. |
| inline |
Set value of PlatformChar
| inChar | character value. |
| script | encoding of character. -1 if you don't care. |
| inline |
Set value of PlatformChar
| inChar | character value. |
| script | encoding of character. -1 if you don't care. |
| inline |
Set value of PlatformChar
| inChar | character value. |
| script | encoding of character. -1 if you don't care. |
| void PlatformChar::SetFromUnicode | ( | textchar | uniChar | ) |
Set value of PlatformChar from Unicode.
| uniChar | unicode value |
| PlatformChar PlatformChar::ToLower | ( | ) | const |
Return lower case version of character
| PlatformChar PlatformChar::ToUpper | ( | ) | const |
Return upper case version of character