User:Talidan: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{MTA Developer}} | {{MTA Developer}} | ||
= | =Unicode= | ||
===Proposed unicode functions=== | |||
<syntaxhighlight lang="lua"> | |||
int utfLen ( string theString ) --Real length of a string, in characters | |||
int utfSeek ( string theString, int position ) --Returns the byte position at specified character position | |||
string utfSub ( string theString, int Start, int End ) --Sub string, from the specified positions on a chracter | |||
string utfChar ( int characterCode ) --Return the string of the specified UTF code | |||
int utfCode ( string theString ) --Return the UTF codes from the given string | |||
</syntaxhighlight> |
Revision as of 23:26, 19 August 2010
Unicode
Proposed unicode functions
int utfLen ( string theString ) --Real length of a string, in characters int utfSeek ( string theString, int position ) --Returns the byte position at specified character position string utfSub ( string theString, int Start, int End ) --Sub string, from the specified positions on a chracter string utfChar ( int characterCode ) --Return the string of the specified UTF code int utfCode ( string theString ) --Return the UTF codes from the given string