sm.util.utf8StringLength
Returns the number of UTF-8 characters in a string.
Kind: Function
Environments: Game, Terrain
Game
sm.util.utf8StringLength( string )
Parameters:
| Name | Type | Description |
|---|---|---|
string |
string | The input string. |
Returns:
| Type | Description |
|---|---|
| integer | The number of UTF-8 characters. |
Terrain
sm.util.utf8StringLength( string )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
string |
string | The input string. |
Returns:
| Type | Description |
|---|---|
| integer | The number of UTF-8 characters. |