Package: string

String handling APIs.

API

Methods

now
function now() as datetime

Current date and time.

fromDecimal

function fromDecimal(value as decimal) as string

fromDateTime

function fromDateTime(value as datetime) as string

isDateTime

function isDateTime(value as string) as bool

isDecimal

function isDecimal(value as string) as bool

isInt

function isInt(value as string) as bool

replace

function replace(target as string, from as string, to as string) as string

indexOf

function indexOf(target as string, search as string) as int

substring

function substring(target as string, start as int, end as int) as string

Intoarce textul dintre pozitia de start si end-1  Ex  substring("text",2,3) = 'x' , substring ("text",2,4)='xt'

trim

function trim(target as string) as string

toLower

function toLower(target as string) as string

toUpper

function toUpper(target as stringas string

toSentenceCase

function toSentenceCase(target as string) as string

toTitleCase

function toTitleCase(target as string) as string

length

function length(target as string) as int

split

function split(target as string, splitter as string) as list of string

contains

function contains(target as string, search as string) as bool

startsWith

function startsWith(target as string, search as string) as bool

endsWith

function endsWith(target as string, search as string) as bool

coalesce

function coalesce(value1 as string, value2 as string) as string

Returns the first non-null value. value2 cannot be null.

Since 1.5.1

toString

function toString(target as any) as string


isNumeric

function isNumeric(target as string) as bool

isBlank

function isBlank(value as string) as bool

Returns true if the value is null or contains only whitespaces.

Since 1.7.0