Drag[en]gine Script Module DragonScript
1.23
|
Unicode string. More...
Public Member Functions | |
Constructors | |
UTF8Decoder | new (String string, int position) |
Create utf8 decoder. More... | |
Management | |
String | getString () |
Sstring. More... | |
int | getLength () |
Length of string. More... | |
int | getPosition () |
Decoding position in bytes from the beginning. More... | |
bool | hasReachedEnd () |
End of the decoder reached. More... | |
void | setString (String decoder) |
Set string. More... | |
void | setPosition (int position) |
Set position in bytes from the beginning. More... | |
int | decodeNextCharacter () |
Decode next unicode character from the string. More... | |
Unicode string.
This is a native class.
int Dragengine.UTF8Decoder.decodeNextCharacter | ( | ) |
Decode next unicode character from the string.
If the string end has been reached or the encoded character is invalid -1 is returned. Otherwise the unicode value is of the character is returned.
int Dragengine.UTF8Decoder.getLength | ( | ) |
Length of string.
int Dragengine.UTF8Decoder.getPosition | ( | ) |
Decoding position in bytes from the beginning.
String Dragengine.UTF8Decoder.getString | ( | ) |
Sstring.
bool Dragengine.UTF8Decoder.hasReachedEnd | ( | ) |
End of the decoder reached.
UTF8Decoder Dragengine.UTF8Decoder.new | ( | String | string, |
int | position | ||
) |
Create utf8 decoder.
void Dragengine.UTF8Decoder.setPosition | ( | int | position | ) |
Set position in bytes from the beginning.
void Dragengine.UTF8Decoder.setString | ( | String | decoder | ) |
Set string.