Unicode methods syntax

From m204wiki
Jump to: navigation, search

The syntax for each of the Unicode class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Unicode methods.

%Json = unicode:JsonParse Throws JsonParseError

%outUnicode = unicode:UnicodeAfter( substring, [Start= number])

%outUnicode = unicode:UnicodeBefore( substring, [Start= number])

%outUnicode = unicode:UnicodeChar( position)

%number = unicode:UnicodeEQ( comparand)

%string = unicode:UnicodeFormUrlEncode

%number = unicode:UnicodeGE( comparand)

%number = unicode:UnicodeGT( comparand)

%number = unicode:UnicodeLE( comparand)

%outUnicode = unicode:UnicodeLeft( number, [Pad= c])

%number = unicode:UnicodeLength

%number = unicode:UnicodeLT( comparand)

%number = unicode:UnicodeNE( comparand)

%position = unicode:UnicodePositionIn( haystack, [Start= number])

%position = unicode:UnicodePositionOf( needle, [Start= number])

%number = unicode:UnicodeRegexMatch( regex, [Options= string], - [CaptureList= stringlist]) Throws InvalidRegex

%outUnicode = unicode:UnicodeRegexReplace( regex, replacement, - [Options= string]) Throws InvalidRegex

%outUnicode = unicode:UnicodeReplace

%outUnicode = unicode:UnicodeRight( number, [Pad= c])

%outUnicode = unicode:UnicodeSubstring( position, [length], [Pad= c])

%string = unicode:UnicodeToEbcdic[( [CharacterEncode= boolean])] Throws CharacterTranslationException

%outUnicode = unicode:UnicodeToLower

%outUnicode = unicode:UnicodeToUpper

%string = unicode:UnicodeToUtf16[( [InsertBOM= boolean])]

%string = unicode:UnicodeToUtf8[( [InsertBOM= boolean])]

%outUnicode = unicode:UnicodeTrimLeft( amount)

%outUnicode = unicode:UnicodeTrimRight( amount)

%outUnicode = unicode:UnicodeUnspace[( [Spaces= string], [Leading= boolean], - [Trailing= boolean], - [Compress= boolean])]

%number = unicode:UnicodeUntranslatablePosition

%string = unicode:UnicodeUrlEncode

%outUnicode = unicode:UnicodeWith( unicode2)