Drag[en]gine Script Module DragonScript Script API  1.0
UTF8Decoder Class Reference

Unicode string. More...

Inheritance diagram for 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.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ decodeNextCharacter()

int 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 getLength ( )

Length of string.

§ getPosition()

int getPosition ( )

Decoding position in bytes from the beginning.

§ getString()

String getString ( )

Sstring.

§ hasReachedEnd()

bool hasReachedEnd ( )

End of the decoder reached.

§ new()

UTF8Decoder new ( String  string,
int  position 
)

Create utf8 decoder.

§ setPosition()

void setPosition ( int  position)

Set position in bytes from the beginning.

§ setString()

void setString ( String  decoder)

Set string.


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