Unit 'StrUtils' Package
[Overview][Resource strings][Constants][Types][Procedures and functions][Index] [#rtl]

Reference for unit 'StrUtils': Procedures and functions

AddChar

  

Add characters to the left of a string till a certain length.

AddCharR

  

Add chars at the end of a string till it reaches a certain length.

AnsiContainsStr

  

Checks whether a string contains a given substring.

AnsiContainsText

  

Check whether a string contains a certain substring, ignoring case.

AnsiEndsStr

  

Check whether a string ends with a certain substring.

AnsiEndsText

  

Check whether a string ends with a certain substring, ignoring case.

AnsiIndexStr

  

Searches, observing case, for a string in an array of strings.

AnsiIndexText

  

Searches, case insensitive, for a string in an array of strings.

AnsiLeftStr

  

Copies a number of characters starting at the left of a string.

AnsiMatchStr

  

Check whether a string occurs in an array of strings, observing case.

AnsiMatchText

  

Check whether a string occurs in an array of strings, disregarding case.

AnsiMidStr

  

Returns a number of characters copied from a given location in a string.

AnsiProperCase

  

Pretty-Print a string: make lowercase and capitalize first letters of words.

AnsiReplaceStr

  

Search and replace all occurrences of a string, case sensitive.

AnsiReplaceText

  

Search and replace all occurrences of a string, case insensitive.

AnsiResemblesText

  

Check whether 2 strings resemble each other.

AnsiReverseString

  

Reverse the letters in a string.

AnsiRightStr

  

Copies a number of characters starting at the right of a string.

AnsiStartsStr

  

Check whether a string starts with a given substring, observing case.

AnsiStartsText

  

Check whether a string starts with a given substring, ignoring case.

BinToHex

  

Convert a binary buffer to a hexadecimal string.

ContainsStr

  

Check whether one text contains another (case sensitive).

ContainsText

  

Check whether one text contains another (case insensitive).

Copy2Space

  

Returns all characters in a string till the first space character (not included).

Copy2SpaceDel

  

Deletes and returns all characters in a string till the first space character (not included).

Copy2Symb

  

Returns all characters in a string till a given character (not included).

Copy2SymbDel

  

Deletes and returns all characters in a string till a given character (not included).

Dec2Numb

  

Convert a decimal number to a string representation, using given a base.

DecodeSoundexInt

  

Decodes the integer representation of a soundex code and returns the original soundex code.

DecodeSoundexWord

  

Decodes the word-sized representation of a soundex code and returns the original soundex code.

DelChars

  

Delete all occurrences of a given character from a string.

DelSpace

  

Delete all occurrences of a space from a string.

DelSpace1

  

Reduces sequences of space characters to 1 space character.

DupeString

  

Creates and concatenates N copies of a string.

EndsStr

  

Check whether one string ends with another.

EndsText

  

Check whether one text ends with another.

ExtractDelimited

  

Extract the N-th delimited part from a string.

ExtractSubstr

  

Extract a word from a string, starting at a given position in the string.

ExtractWord

  

Extract the N-th word out of a string.

ExtractWordPos

  

Extract a word from a string, and return the position where it was located in the string.

FindMatchesBoyerMooreCaseInSensitive

  

Find case-insensitive matches of a string using a Boyer-Moore algorithm.

FindMatchesBoyerMooreCaseSensitive

  

Find case-sensitive matches of a string using a Boyer-Moore algorithm.

FindPart

  

Search for a substring in a string, using wildcards.

GetCmdLineArg

  

Returns the command-line argument following the given switch.

Hex2Dec

  

Converts a hexadecimal string to a decimal value.

Hex2Dec64

  

Convert hexadecimal value to 64-bit integer.

HexToBin

  

Convert a hexadecimal string to a binary buffer.

IfThen

  

Returns one of two strings, depending on a boolean expression.

in(Ansistring,):Boolean

in(UnicodeString,):Boolean

  

Check presence of string in an array of strings.

IndexStr

  

Searches, observing case, for a string in an array of strings.

IndexText

  

Index of text in a list of values.

IntToBin

  

Converts an integer to a binary string representation, inserting spaces at fixed locations.

IntToRoman

  

Represent an integer with roman numerals.

IsEmptyStr

  

Check whether a string is empty, disregarding whitespace characters.

IsWild

  

Check whether a string matches a wildcard search expression.

IsWordPresent

  

Check for the presence of a word in a string.

LeftBStr

  

Copies Count characters starting at the left of a string.

LeftStr

  

Copies Count characters starting at the left of a string.

MatchStr

  

Check whether a string occurs in an array of strings, observing case.

MatchText

  

Check if a string is in a list of values.

MidBStr

  

Copies a number of characters starting at a given position in a string.

MidStr

  

Copies a number of characters starting at a given position in a string.

NaturalCompareText

  

Compare using natural sort.

NPos

  

Returns the position of the N-th occurrence of a substring in a string.

Numb2Dec

  

Converts a string representation of a number to its numerical value, given a certain base.

Numb2USA

  

Insert thousand separators.

PadCenter

  

Pad the string to a certain length, so the string is centered.

PadLeft

  

Add spaces to the left of a string till a certain length is reached.

PadRight

  

Add spaces to the right of a string till a certain length is reached.

PosEx

  

Search for the occurrence of a character in a string, starting at a certain position.

PosSet

  

Return the position in a string of any character out of a set of characters.

PosSetEx

  

Return the position in a string of any character out of a set of characters, starting at a certain position.

RandomFrom

  

Choose a random string from an array of strings.

RemoveLeadingChars

  

Remove any leading characters in a set from a string.

RemovePadChars

  

Remove any trailing or leading characters in a set from a string.

RemoveTrailingChars

  

Remove any trailing characters in a set from a string.

ReplaceStr

  

Replace strings case-sensitively.

ReplaceText

  

Replace strings case-insensitively.

ResemblesText

  

Check whether 2 strings resemble each other.

ReverseString

  

Reverse characters in a string.

RightBStr

  

Copy a given number of characters (bytes), counting from the right of a string.

RightStr

  

Copy a given number of characters, counting from the right of a string.

RomanToInt

  

Convert a string with a Roman number to it's decimal value.

RomanToIntDef

  

Convert a roman numeral to an integer value.

RPos

  

Find last occurrence of substring or character in a string.

RPosEx

  

Find last occurrence substring or character in a string, starting at a certain position.

SearchBuf

  

Search a buffer for a certain string.

Soundex

  

Compute the soundex of a string.

SoundexCompare

  

Compare soundex values of 2 strings.

SoundexInt

  

Soundex value as an integer.

SoundexProc

  

Default AnsiResemblesText implementation.

SoundexSimilar

  

Check whether 2 strings have equal soundex values.

SoundexWord

  

Calculate a word-sized soundex value.

SplitCommandLine

  

Split commandline in a series of separate arguments.

SplitString

  

Split a string in words.

StartsStr

  

Check whether one string starts with another.

StartsText

  

Check whether one text starts with another.

StringReplace

  

Optimized search-and-replace algorithm.

StringsReplace

  

Replace occurrences of a set of strings to another set of strings.

StuffString

  

Replace part of a string with another string.

Tab2Space

  

Convert tab characters to a number of spaces.

TrimLeftSet

  

Remove any leading characters in a set from a string and returns the result.

TrimRightSet

  

Remove any trailing characters in a set from a string and returns the result.

TrimSet

  

Remove any leading or trailing characters in a set from a string and returns the result.

TryRomanToInt

  

Try to convert a roman numeral to an integer value.

WordCount

  

Count the number of words in a string.

WordPosition

  

Search position of Nth word in a string.

XorDecode

  

Decode a string encoded with XorEncode.

XorEncode

  

Encode a string by XOR-ing its characters using characters of a given key, representing the result as hex values.

XorString

  

Encode a string by XOR-ing its characters using characters of a given key.


Documentation generated on: Nov 23 2024