author: dely daniel.kozminski@gmail.com
String manipulation procedures and functions for use with MadPascal.
https://gitlab.com/delysio/mad-pascal
name: | description: |
---|---|
strInsert | procedure strInsert(var s: string; var s2: string; index: byte);Insert one string in another.
parameters: |
strDelete | procedure strDelete(var s: string; index: byte; count: byte);Removes Count characters from string S, starting at position Index.
parameters: |
strCat | function strCat(s1: string; s2: string): string; overload;Returns concatenated strings.
parameters:returns: |
strCat | function strCat(s: string; c: char): string; overload;Returns concatenated strings.
parameters:returns: |
strAdd | procedure strAdd(var s: string; c: char); overload;Adds char to string.
parameters: |
strAdd | procedure strAdd(var s1: string; s2: string); overload;Adds string to string.
parameters: |
strLeft | function strLeft(s: string; count: byte): string;Returns left portion of string specified by the count parameter.
parameters:returns: |
strRight | function strRight(s: string; count: byte): string;Returns right portion of string specified by the count parameter.
parameters:returns: |
strMid | function strMid(s: string; startChar: byte; countChars: byte): string;Returns the portion of string specified by the startChar and countChars parameters.
parameters:returns: |
strPos | function strPos(c: char; s: string): byte; overload;Returns the first index of char in string
parameters:returns: |
strPos | function strPos(s1: string; s2: string): byte; overload;Returns the first index of substring in string
parameters:returns: |
strLastPos | function strLastPos(s1: string; s2: string): byte;Returns the last index of substring in string
parameters:returns: |
strIsPrefix | function strIsPrefix(s: string; p: string): boolean;Returns information whether the first chars of the strings are the same
parameters:returns: |
strReplace | function strReplace(s: string; c: char; rpl: char): string; overload;Replace first occurrence of the search char (c) with the replacement char (rpl) This function is case-sensitive. Use strIReplace for case-insensitive replace.
parameters:returns: |
strReplace | function strReplace(s1: string; s2: string; c: char): string; overload;Replace first occurrence of the search string (s2) with the replacement char (c) This function is case-sensitive. Use strIReplace for case-insensitive replace.
parameters:returns: |
strReplace | function strReplace(s1: string; s2: string; s3: string): string; overload;Replace first occurrence of the search string (s2) with the replacement string (s3) This function is case-sensitive. Use strIReplace for case-insensitive replace.
parameters:returns: |
strIReplace | function strIReplace(s: string; c: char; rpl: char): string;Replace first occurrence of the search char (c) with the replacement char (rpl) This function is Case-insensitive. Use strReplace for case-sensitive replace.
parameters:returns: |
strReplaceAll | function strReplaceAll(s: string; c: char; rpl: char): string; overload;Replace all occurrences of the search char (c) with the replacement char (rpl) This function is case-sensitive. Use strIReplace for case-insensitive replace.
parameters:returns: |