|
Drag[en]gine Script Module DragonScript 1.32.1
|
Unicode string. More...
Public Member Functions | |
Constructors | |
| UTF8Decoder | new (String string, int position) |
| Create utf8 decoder. | |
Management | |
| String | getString () |
| Sstring. | |
| int | getLength () |
| Length of string. | |
| int | getPosition () |
| Decoding position in bytes from the beginning. | |
| bool | hasReachedEnd () |
| End of the decoder reached. | |
| void | setString (String decoder) |
| Set string. | |
| void | setPosition (int position) |
| Set position in bytes from the beginning. | |
| int | decodeNextCharacter () |
| Decode next unicode character from the string. | |
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.