String Functions

function Length(s: String): Integer

Length of the string

function Copy(s: String; from, count: Integer): String

Returns a substring of the given length starting from the specified position

function Pos(substr, s: String): Integer

Returns the position of a substring within given string

procedure Delete(var s: String; from, count: Integer)

Removes a substring of the given length starting from the specified position

procedure Insert(s: String; var s2: String; pos: Integer)

Appends the second string to the first

function Uppercase(s: String): String

Converts the string into uppercase

function Lowercase(s: String): String

Converts the string into lowercase

function Trim(s: String): String

Removes blank spaces from the string

function NameCase(s: String): String

Converts the first letter into uppercase

function CompareText(s, s1: String): Integer

Compares two strings

function Chr(i: Integer): Char

Returns the character with specified position

function Ord(ch: Char): Integer

Returns the position of the specified character

procedure SetLength(var S: String; L: Integer)

Sets the length of a string