String

Function

Description

uAsc, uUnicode

Returns the Unicode character value of a specified character

uChr, uUniChr

Returns the Unicode string corresponding to the given number, or formats a string

uCap

Returns the capitalized representation of a string

uCon, uConcat

Concatenates all given parameters into a single string

uJoin

Concatenates a delimited string with special null and empty value handling

uLeft

Returns the leftmost N characters from a string

uLength, uLen

Returns the length of a string

uSubstr, uMid

Returns a part of a string

uLPos

Finds the first position of a substring within a string

uLower, uLow

Returns the input string in lowercase letters

uLStuff

Fills the left side of a string up to a specified length

uLTrim

Removes characters from the left side of the string

uRepeat

Returns the given string repeated N times

uReplace

Replaces parts of a string

uReverse

Reverses a string

uRight

Returns the rightmost N characters from a string

uRPos

Finds the last position of a substring within a string

uRStuff

Fills the right side of a string up to a specified length

uRTrim

Removes characters from the right side of the string

uTrim

Removes characters from both sides of the string

uUpper, uUpp

Returns the input string in uppercase letters




uAsc, uUnicode

Description

Returns unicode character value of a specified character.

Syntax

number uAsc(value [, index])

Parameters

string value

An input string

number index (optional)

Character position for reading ASCII value

Examples

Example 1

uAsc("Big Ben")    // returns 66
uAsc("Big Ben", 2) // returns 105



uChr, uUniChr

Description

Returns the Unicode string corresponding to the given number, or formats a string

Syntax

string uChr(params, ...)

Parameters

params

A list of expressions or values

Examples

Example 1

uChr(64) // returns "@"
uChr("\u0064\u006f\u0067") // returns "dog"
uChr(65,"pple") // returns "apple"




uCap

Description

Returns the capitalized representation of a string. In other words, the first letter of each word in the string is capitalized.

Syntax

string uCap(text)

Parameters

Input text

The string to be capitalized

Examples

Example 1

uCap('fArmeR, ASTROnaut') // returns 'Farmer, Astronaut'
uCap('the first weekend') // returns 'The First Weekend'



uCon, uConcat

Description

Concatenates all given parameters into a single string

Syntax

string uConcat(params)

Parameters

params

A list of expressions or values of any data type

Examples

Example 1

uConcat("For ", 3, " years.") returns "For 3 years."



uJoin

Description

Concatenates a delimited string with special null and empty value handling

Syntax

string uJoin(delimiter, allowEmpty, params, ...)

Parameters

string delimiter

Delimiter to be used between all other string parts

number allowEmpty

Flag (0/1) that indicate whether empty fields are allowed

string params

List of strings to concatenate

Examples

Example 1

uJoin("-", 1, "James", "", "Tiberius", "Kirk") //
returns "James--Tiberius-Kirk"

uJoin("-", 0, "James", "", "Tiberius", "Kirk") //
returns "James-Tiberius-Kirk"



uLeft

Description

Returns the leftmost N characters from a string

Syntax

string uLeft(input, chars)

Parameters

string input

The input string

number chars

The number of characters to be retrieved

Examples

Example 1

uLeft("James T. Kirk", 5) // returns "James"
uLeft(null, 5)            // returns null



uLength, uLen

Description

Returns the length of a string

Syntax

number uLength(input)

Parameters

string input

The input string

Examples

Example 1

uLength("James T. Kirk") // returns 13



uSubstr, uMid

Description

Returns a part of a string

Syntax

string uSubstr(input, position, length)

Parameters

string input

Input string

number position

The position from where to start reading

number length

The number of characters to read

Examples

Example 1

uSubstr("James T. Kirk", 7, 2) // returns "T."



uLPos

Description

Find the first position of a substring within a string. A result of zero indicates that the substring has not been found.

Syntax

string uLPos(input, substring)

Parameters

string input

The input string

string substring

The substring to search

Examples

Example 1

uLPos("James T. Kirk", "T") //returns 7



uLower, uLow

Description

Returns the input string in lower case letters

Syntax

string uLower(input)

Parameters

string input

The string to convert

Examples

Example 1

uLower("James T. Kirk") // returns "james t. kirk"



uLStuff

Description

Fills the left side of a string up to specified length

Syntax

string uLStuff(input, length [, stuff])

Parameters

string input

The string to stuff

number length

New length of string

string stuff (optional)

String to append, default is an empty space (ASCII 32)

Examples

Example 1

uLStuff("3.5", 5)      // returns "  3.5"
uLStuff("3.5", 5, "0") // returns "003.5"



uLTrim

Description

Removes characters from the left side of the string. If the second parameter is omitted, it defaults to a space character (ASCII 32).

Syntax

string uLTrim(input, trimstring)

Parameters

string input

The string to be trimmed

string trimstring

The string to trim

Examples

Example 1

uLTrim(" 3.5")       // returns "3.5"
uLTrim("003.5", "0") // returns "3.5"



uRepeat

Description

Returns the given string repeated N times

Syntax

string uRepeat(input, repeats)

Parameters

string input

The string to be repeated

number repeats

The number of times to repeat the input string

Examples

Example 1

uRepeat("Hello ", 4) // returns "Hello Hello Hello Hello "



uReplace

Description

Replaces parts of a string

Syntax

string uReplace(input, search, replace)

Parameters

string input

The string to be worked on

string search

The pattern to be searched

string replace

The string to replace any match

Examples

Example 1

uReplace("At four o' clock he became four", "four", "4")
// returns "At 4 o' clock he became 4"



uReverse

Description

Reverses a string

Syntax

string uReverse(input)

Parameters

string input

The string to reverse

Examples

Example 1

uReverse("Smith")  // returns "htimS"



uRight

Description

Returns the rightmost N characters from a string

Syntax

string uRight(input, chars)

Parameters

string input

The input string

number chars

The number of characters to be read

Examples

Example 1

uRight("James T. Kirk", 4) // returns "Kirk"
uRight(null, 5) / / returns null



uRPos

Description

Find the last position of a substring within a string

Syntax

string uRPos(input, substring)

Parameters

string input

The input string

string substring

The substring to find

Examples

Example 1

Find the last ocurrence of a substring:

uRPos("James T. Kirk", "T") //returns 7



uRStuff

Description

Fills the right side of a string up to specified length

Syntax

string uRStuff(input, length [, stuffstring])

Parameters

string input

The input string

number length

The new length of the result string

string stuffstring (optional)

The string to append

Examples

Example 1

uRStuff("3.5", 5)      // returns "3.5  "
uRStuff("3.5", 5, "0") // returns "3.500"



uRTrim

Description

Removes characters from the right side of the string

Syntax

string uRTrim(input [, trimstring])

Parameters

string input

The input string

string trimstring (optional)

The string to trim

Examples

Example 1

uRTrim("3.5 ")       // returns "3.5"
uRTrim("3.500", "0") // returns "3.5"



uTrim

Description

Removes characters from both sides of the string

Syntax

string uTrim(input [, trimstring])

Parameters

string input

The input string

string trimstring (optional)

The string to trim

Examples

Example 1

uTrim(" 3.5 ")        // returns "3.5"
uTrim("003.500", "0") // returns "3.5"



uUpper, uUpp

Description

Returns the input string in upper case letters

Syntax

string uUpper(input)

Parameters

string input

The input string

Examples

Example 1

uUpper("James T. Kirk") // returns "JAMES T. KIRK"