Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)

Unicode intrinsic functions

Ancestors - None

Details

Container for all Unicode intrinsic functions

Methods

Name

Description

AsBoolean

Return a string as a Boolean

Result, FalseCaption, TrueCaption

AsCodePoint

Return the string as a codepoint

Result

AsDate

Return a string as a date

Result, Format

AsDateTime

Return a string as a datetime

Result, Format

AsDuration

Return the string as a duration

Result

AsFloat

Return the string as a float

Result

AsGregorianDay

Returns the variable in Gregorian day format

Result

AsGregorianMonth

Returns the variable in Gregorian month format

Result

AsGregorianMonthDay

Returns the variable in Gregorian month day format

Result

AsGregorianYear

Returns the variable in Gregorian year format

Result

AsGregorianYearMonth

Returns the variable in Gregorian year month format

Result

AsNativeString

Return the string as a native string

Result

AsNumber

Return the variable as a number

Result

AsSqlHexLiteral

Convert a Unicode string to a database specific string

Result, DataBaseType

AsTime

Return the variable as a time

Result, Format

AsValue

Return the variable as a value if SQLNull

Result, Default

BlankConcat

Concatenate strings with a blank between each

Result, String1, String2, String3, String4, String5, String6, String7, String8, String9

Center

Center the string within the variable

Result, Length, Pad

Centre

Centre the string within the variable

Result, Length, Pad

Compare

Compare two strings

Result, To, CompareKind, IgnoreCase

Concat

Concatenate strings ignoring trailing spaces

Result, String1, String2, String3, String4, String5, String6, String7, String8, String9

Contains

Test to see is a string is contained in the variable

Result, String, StartPosition

ContainsOnly

Test to see if the strings contains only the specified characters

Result, String

CurChars

The number of characters in the string

Result

CurSize

Length of the variable content in bytes

Result

Decrypt

Decrypt the string using the TEA algorithm

Result, Key

DeleteSubstring

Delete part of a string

Result, StartPosition, Length

Encrypt

Encrypt the string using the TEA algorithm

Result, Key

InsertString

Insert a string in a string

Result, String, At, Pad

IsBoolean

Test if the string is a Boolean

Result, FalseCaption, TrueCaption

IsDate

Test if the variable is a date

Result, Format

IsDateTime

Test if the variable is a datetime

Result, Format

IsDuration

Test whether the string is a valid duration

Result

IsFloat

Test whether the string is a valid float

Result

IsGregorianDay

Test if the variable is a Gregorian day

Result

IsGregorianMonth

Test if the variable is a Gregorian month

Result

IsGregorianMonthDay

Test if the variable is a Gregorian month day

Result

IsGregorianYear

Test if the variable is a Gregorian year

Result

IsGregorianYearMonth

Test if the variable is a Gregorian year month

Result

IsMatch

Does the string match the regular expression

Result, Pattern

IsNotSqlNull

Test if the variable is not SQLNull

Result

IsNull

Test if the variable is a LANSA null

Result

IsNumber

Test if the variable is a number

Result

IsSqlNull

Test if the variable is SQLNull

Result

IsTime

Test if the variable is a valid time

Result, Format

IsValidEmail

Test whether the string contains a valid email address

Result

IsValidPassword

Test whether the string contains a valid password

Result, Strength

LastPositionIn

Find the last position of the subject in a string

Result, String

LastPositionOf

Find the last position of the value in this variable

Result, String

LeftMost

Get the left most characters from the string

Result, Characters, Pad

LeftTrim

Trim characters from the left of the string

Result, OfText

LowerCase

Convert a string to lower case

Result

Max

Returns the largest string

Result, String1, String2, String3, String4, String5, String6, String7, String8, String9

Min

Returns the smallest string

Result, String1, String2, String3, String4, String5, String6, String7, String8, String9

OccurrencesIn

Find the number times the string occurs in a variable

Result, String, StartPosition

OccurrencesOf

OccurrencesOf method

Result, String, StartPosition

PositionIn

Find the position of this variable in a string

Result, String, StartPosition

PositionOf

Find the position of a string in this variable

Result, String, StartPosition

Remove

Remove the specified string from the source

Result, Object

RemoveAll

Remove all occurrences of the specified string from the source

Result, Object

RemoveCharacters

Remove all occurrences of the specified characters from the source

Result, Object

Repeat

Repeat a string a number of times

Result, Times

Replace

Replace the specified string

Result, Object, Replacement

ReplaceAll

Replace all occurrences of the specified string in the source

Result, Object, Replacement

ReplaceSubstring

Replace a portion of a string with a new value

Result, StartPosition, Length, With, Pad

Reverse

Reverse a string

Result

RightAdjust

Right adjust the string

Result, Length, Pad

RightMost

Get the right most characters from the string

Result, Characters, Pad

RightTrim

Trim characters from the right of the string

Result, OfText

Substitute

Embed strings at specific substitution points (&1 &2 etc)

Result, String1, String2, String3, String4, String5, String6, String7, String8, String9

Substring

Return part of a string

Result, StartPosition, Length, Pad

TranslateCharacters

Translate the specified characters

Result, From, To

Trim

Trim characters from either end of the string

Result, OfText

TrimBlankConcat

Concatenate with blanks trimming trailing blanks

Result, String1, String2, String3, String4, String5, String6, String7, String8, String9

TrimConcat

Concatenate trimming trailing blanks

Result, String1, String2, String3, String4, String5, String6, String7, String8, String9

TrimSubstitute

Embed strings at specific substitution points (&1 &2 etc) trimming trailing blanks

Result, String1, String2, String3, String4, String5, String6, String7, String8, String9

UpperCase

Convert to upper case

Result

UrlDecode

Convert an encoded URL to text

Result

UrlEncode

Convert a URL to encoded text

Result


See also

All Component Classes

Technical Reference