Drag[en]gine Script Module DragonScript  1.23
Dragengine.UTF8Decoder Class Reference

Unicode string. More...

Inheritance diagram for Dragengine.UTF8Decoder:

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...
 

Detailed Description

Unicode string.

This is a native class.

Member Function Documentation

◆ decodeNextCharacter()

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.

◆ getLength()

int Dragengine.UTF8Decoder.getLength ( )

Length of string.

◆ getPosition()

int Dragengine.UTF8Decoder.getPosition ( )

Decoding position in bytes from the beginning.

◆ getString()

String Dragengine.UTF8Decoder.getString ( )

Sstring.

◆ hasReachedEnd()

bool Dragengine.UTF8Decoder.hasReachedEnd ( )

End of the decoder reached.

◆ new()

UTF8Decoder Dragengine.UTF8Decoder.new ( String  string,
int  position 
)

Create utf8 decoder.

◆ setPosition()

void Dragengine.UTF8Decoder.setPosition ( int  position)

Set position in bytes from the beginning.

◆ setString()

void Dragengine.UTF8Decoder.setString ( String  decoder)

Set string.


The documentation for this class was generated from the following file: