Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
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.

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.

References decodeNextCharacter(), and setPosition().

Referenced by decodeNextCharacter().

◆ getLength()

int Dragengine.UTF8Decoder.getLength ( )

Length of string.

Referenced by getPosition().

◆ getPosition()

int Dragengine.UTF8Decoder.getPosition ( )

Decoding position in bytes from the beginning.

References getLength().

Referenced by hasReachedEnd().

◆ getString()

String Dragengine.UTF8Decoder.getString ( )

Sstring.

References getString().

Referenced by getString().

◆ hasReachedEnd()

bool Dragengine.UTF8Decoder.hasReachedEnd ( )

End of the decoder reached.

References getPosition().

Referenced by setPosition().

◆ new()

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

Create utf8 decoder.

References new().

Referenced by new().

◆ setPosition()

void Dragengine.UTF8Decoder.setPosition ( int position)

Set position in bytes from the beginning.

References hasReachedEnd(), and setString().

Referenced by decodeNextCharacter().

◆ setString()

void Dragengine.UTF8Decoder.setString ( String decoder)

Set string.

Referenced by setPosition().


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