Go to the source code of this file.
Classes | |
| class | TZSortedList |
| Modified list of pointers. More... | |
Typedefs | |
| typedef Integer(* | TZListSortCompare )(Pointer Item1, Pointer Item2) |
| Modified comaprison function. | |
Functions | |
| TDateTime | AnsiSQLDateToDateTime (const string Value) |
| Converts Ansi SQL Date/Time to TDateTime. | |
| AppendSplitString (TStrings List, const string Str, const string Delimiters) | |
| Appends to list a splitted string using the multiple chars. | |
| AppendSplitStringEx (TStrings List, const string Str, const string Delimiter) | |
| Appends to list a splitted string using the delimeter string. | |
| String | BoolToStrEx (Boolean Bool) |
| Converts a boolean into string value. | |
| string | BufferToStr (PChar Buffer, LongInt Length) |
| Converts a character buffer into pascal string. | |
| string | BytesToStr (const TByteDynArray Value) |
| Converts bytes into a string representation. | |
| Variant | BytesToVar (const TByteDynArray Value) |
| Converts bytes into a variant representation. | |
| string | ComposeString (TStrings List, const string Delimiter) |
| Composes a string from the specified strings list delimited with a special character. | |
| string | DateTimeToAnsiSQLDate (TDateTime Value) |
| Converts TDateTime to Ansi SQL Date/Time. | |
| string | DecodeCString (const string Value) |
| Converts an string from escape PostgreSQL format. | |
| DecodeSQLVersioning (const Integer FullVersion, Integer &MajorVersion, Integer &MinorVersion, Integer &SubVersion) | |
| Decodes a Full Version Value encoded with the format: (major_version * 1,000,000) + (minor_version * 1,000) + sub_version into separated major, minor and subversion values. | |
| string | EncodeCString (const string Value) |
| Converts an string into escape PostgreSQL format. | |
| Integer | EncodeSQLVersioning (const Integer MajorVersion, const Integer MinorVersion, const Integer SubVersion) |
| Encodes major, minor and subversion (revision) values in this format: (major_version * 1,000,000) + (minor_version * 1,000) + sub_version For example, 4.1.12 is returned as 4001012. | |
| Boolean | EndsWith (const string Str, const string SubStr) |
| Checks is the string ends with substring. | |
| Integer | FirstDelimiter (const string Delimiters, const string Str) |
| Determines a position of a first delimiter. | |
| string | FloatToSQLStr (Extended Value) |
| Converts a float value into SQL string with '. | |
| String | FormatSQLVersion (const Integer SQLVersion) |
| Formats a Zeos SQL Version format to X.Y.Z where: X = major_version Y = minor_version Z = sub version. | |
| Boolean | IsIpAddr (const string Str) |
| Checks if the specified string can represent an IP address. | |
| Integer | LastDelimiter (const string Delimiters, const string Str) |
| Determines a position of a LAST delimiter. | |
| Boolean | MemLComp (PChar P1, PChar P2, Integer Len) |
| Compares two PChars without stopping at #0. | |
| string | MemPas (PChar Buffer, LongInt Length) |
| Copy buffer to the pascal string. | |
| PutSplitString (TStrings List, const string Str, const string Delimiters) | |
| Puts to list a splitted string using the multiple chars which replaces the previous list content. | |
| PutSplitStringEx (TStrings List, const string Str, const string Delimiter) | |
| Puts to list a splitted string using the delimiter string which replaces the previous list content. | |
| string | ReplaceChar (const Char Source, const Char Target, const string Str) |
| Replace chars in the string. | |
| TStrings | SplitString (const string Str, const string Delimiters) |
| Splits string using the multiple chars. | |
| TStrings | SplitStringEx (const string Str, const string Delimiter) |
| Splits string using the delimiter string. | |
| SplitToStringList (TStrings List, string Str, const string Delimiters) | |
| SplitToStringListEx (TStrings List, const string Str, const string Delimiter) | |
| Extended | SQLStrToFloat (const string Str) |
| Converts SQL string into float value. | |
| Extended | SQLStrToFloatDef (string Str, Extended Def) |
| Converts SQL string into float value. | |
| Boolean | StartsWith (const string Str, const string SubStr) |
| Checks is the string starts with substring. | |
| Boolean | StrToBoolEx (string Str) |
| Converts a string into boolean value. | |
| TByteDynArray | StrToBytes (const string Value) |
| Converts string into an array of bytes. | |
| TDateTime | TimestampStrToDateTime (const string Value) |
| Converts Timestamp String to TDateTime. | |
| TByteDynArray | VarToBytes (const Variant Value) |
| Converts variant into an array of bytes. | |
| typedef Integer(* TZListSortCompare)(Pointer Item1, Pointer Item2) |
| TDateTime AnsiSQLDateToDateTime | ( | const string | Value | ) |
Converts Ansi SQL Date/Time to TDateTime.
| Value | a date and time string. |
Definition at line 1199 of file ZSysUtils.pas.
| AppendSplitString | ( | TStrings | List, | |
| const string | Str, | |||
| const string | Delimiters | |||
| ) |
Appends to list a splitted string using the multiple chars.
| List | a list with strings. | |
| Str | the source string | |
| Delimiters | the delimiters string |
Definition at line 895 of file ZSysUtils.pas.
| AppendSplitStringEx | ( | TStrings | List, | |
| const string | Str, | |||
| const string | Delimiter | |||
| ) |
Appends to list a splitted string using the delimeter string.
| List | a list with strings. | |
| Str | the source string | |
| Delimiters | the delimiters string |
Definition at line 1048 of file ZSysUtils.pas.
| String BoolToStrEx | ( | Boolean | Bool | ) |
Converts a boolean into string value.
| Bool | a boolean value. |
"True" or "False" Definition at line 773 of file ZSysUtils.pas.
| string BufferToStr | ( | PChar | Buffer, | |
| LongInt | Length | |||
| ) |
Converts a character buffer into pascal string.
| Buffer | a character buffer pointer. | |
| Length | a buffer length. |
Definition at line 740 of file ZSysUtils.pas.
| string BytesToStr | ( | const TByteDynArray | Value | ) |
Converts bytes into a string representation.
| Value | an array of bytes to be converted. |
Definition at line 1064 of file ZSysUtils.pas.
| Variant BytesToVar | ( | const TByteDynArray | Value | ) |
Converts bytes into a variant representation.
| Value | an array of bytes to be converted. |
Definition at line 1094 of file ZSysUtils.pas.
| string ComposeString | ( | TStrings | List, | |
| const string | Delimiter | |||
| ) |
Composes a string from the specified strings list delimited with a special character.
| List | a list of strings. | |
| Delimiter | a delimiter string. |
Definition at line 913 of file ZSysUtils.pas.
| string DateTimeToAnsiSQLDate | ( | TDateTime | Value | ) |
Converts TDateTime to Ansi SQL Date/Time.
| Value | an encoded TDateTime value. |
Definition at line 1299 of file ZSysUtils.pas.
| string DecodeCString | ( | const string | Value | ) |
Converts an string from escape PostgreSQL format.
| Value | a string in PostgreSQL escape format. |
Definition at line 1421 of file ZSysUtils.pas.
| DecodeSQLVersioning | ( | const Integer | FullVersion, | |
| Integer & | MajorVersion, | |||
| Integer & | MinorVersion, | |||
| Integer & | SubVersion | |||
| ) |
Decodes a Full Version Value encoded with the format: (major_version * 1,000,000) + (minor_version * 1,000) + sub_version into separated major, minor and subversion values.
Decodes a full version value encoded with Zeos SQL format: (major_version * 1,000,000) + (minor_version * 1,000) + sub_version into separated major, minor and subversion values.
| FullVersion | an integer containing the Full Version to decode. | |
| MajorVersion | an integer containing the Major Version decoded. | |
| MinorVersion | an integer containing the Minor Version decoded. | |
| SubVersion | an integer contaning the Sub Version (revision) decoded. |
Definition at line 1526 of file ZSysUtils.pas.
| string EncodeCString | ( | const string | Value | ) |
Converts an string into escape PostgreSQL format.
| Value | a regular string. |
Definition at line 1371 of file ZSysUtils.pas.
| Integer EncodeSQLVersioning | ( | const Integer | MajorVersion, | |
| const Integer | MinorVersion, | |||
| const Integer | SubVersion | |||
| ) |
Encodes major, minor and subversion (revision) values in this format: (major_version * 1,000,000) + (minor_version * 1,000) + sub_version For example, 4.1.12 is returned as 4001012.
Encodes major, minor and subversion (revision) values in Zeos SQL format: (major_version * 1,000,000) + (minor_version * 1,000) + sub_version For example, 4.1.12 is returned as 4001012.
| MajorVersion | an integer containing the Major Version. | |
| MinorVersion | an integer containing the Minor Version. | |
| SubVersion | an integer containing the Sub Version (revision). |
Definition at line 1549 of file ZSysUtils.pas.
| Boolean EndsWith | ( | const string | Str, | |
| const string | SubStr | |||
| ) |
Checks is the string ends with substring.
| Str | a string to be checked. | |
| SubStr | a string to test at the end of the Str. |
True if Str ended with SubStr; Definition at line 654 of file ZSysUtils.pas.
| Integer FirstDelimiter | ( | const string | Delimiters, | |
| const string | Str | |||
| ) |
Determines a position of a first delimiter.
| Delimiters | a string with possible delimiters. | |
| Str | a string to be checked. |
Definition at line 547 of file ZSysUtils.pas.
| string FloatToSQLStr | ( | Extended | Value | ) |
Converts a float value into SQL string with '.
' delimiter.
| Value | a float value to be converted. |
Definition at line 953 of file ZSysUtils.pas.
| String FormatSQLVersion | ( | const Integer | SQLVersion | ) |
Formats a Zeos SQL Version format to X.Y.Z where: X = major_version Y = minor_version Z = sub version.
| SQLVersion | an integer |
Definition at line 1568 of file ZSysUtils.pas.
| Boolean IsIpAddr | ( | const string | Str | ) |
Checks if the specified string can represent an IP address.
| Str | a string value. |
True if the string can represent an IP address or False otherwise. Definition at line 791 of file ZSysUtils.pas.
| Integer LastDelimiter | ( | const string | Delimiters, | |
| const string | Str | |||
| ) |
Determines a position of a LAST delimiter.
| Delimiters | a string with possible delimiters. | |
| Str | a string to be checked. |
Definition at line 574 of file ZSysUtils.pas.
| Boolean MemLComp | ( | PChar | P1, | |
| PChar | P2, | |||
| Integer | Len | |||
| ) |
Compares two PChars without stopping at #0.
| P1 | first PChar | |
| P2 | seconds PChar |
True if the memory at P1 and P2 are equal| P1 | first PChar | |
| P2 | seconds PChar |
True if the memory at P1 and P2 are equal Definition at line 602 of file ZSysUtils.pas.
| string MemPas | ( | PChar | Buffer, | |
| LongInt | Length | |||
| ) |
Copy buffer to the pascal string.
| Buffer | a buffer with data | |
| Length | a buffer length |
Definition at line 1505 of file ZSysUtils.pas.
| PutSplitString | ( | TStrings | List, | |
| const string | Str, | |||
| const string | Delimiters | |||
| ) |
Puts to list a splitted string using the multiple chars which replaces the previous list content.
| List | a list with strings. | |
| Str | the source string | |
| Delimiters | the delimiters string |
Definition at line 877 of file ZSysUtils.pas.
| PutSplitStringEx | ( | TStrings | List, | |
| const string | Str, | |||
| const string | Delimiter | |||
| ) |
Puts to list a splitted string using the delimiter string which replaces the previous list content.
| List | a list with strings. | |
| Str | the source string | |
| Delimiters | the delimiter string |
Definition at line 1008 of file ZSysUtils.pas.
| string ReplaceChar | ( | const Char | Source, | |
| const Char | Target, | |||
| const string | Str | |||
| ) |
Replace chars in the string.
| Source | a char to search. | |
| Target | a char to replace. | |
| Str | a source string. |
Definition at line 1474 of file ZSysUtils.pas.
| TStrings SplitString | ( | const string | Str, | |
| const string | Delimiters | |||
| ) |
Splits string using the multiple chars.
| Str | the source string | |
| Delimiters | the delimiters string |
Definition at line 854 of file ZSysUtils.pas.
| TStrings SplitStringEx | ( | const string | Str, | |
| const string | Delimiter | |||
| ) |
Splits string using the delimiter string.
| Str | the source string | |
| Delimiters | the delimiter string |
Definition at line 1026 of file ZSysUtils.pas.
| SplitToStringList | ( | TStrings | List, | |
| string | Str, | |||
| const string | Delimiters | |||
| ) |
Definition at line 821 of file ZSysUtils.pas.
| SplitToStringListEx | ( | TStrings | List, | |
| const string | Str, | |||
| const string | Delimiter | |||
| ) |
Definition at line 975 of file ZSysUtils.pas.
| Extended SQLStrToFloat | ( | const string | Str | ) |
Converts SQL string into float value.
| Str | an SQL string with comma delimiter. |
Definition at line 717 of file ZSysUtils.pas.
| Extended SQLStrToFloatDef | ( | string | Str, | |
| Extended | Def | |||
| ) |
Converts SQL string into float value.
| Str | an SQL string with comma delimiter. | |
| Def | a default value if the string can not be converted. |
Definition at line 687 of file ZSysUtils.pas.
| Boolean StartsWith | ( | const string | Str, | |
| const string | SubStr | |||
| ) |
Checks is the string starts with substring.
| Str | a string to be checked. | |
| SubStr | a string to test at the start of the Str. |
True if Str started with SubStr; Definition at line 623 of file ZSysUtils.pas.
| Boolean StrToBoolEx | ( | string | Str | ) |
Converts a string into boolean value.
| Str | a string value. |
True is Str = 'Y'/'YES'/'T'/'TRUE'/<>0 Definition at line 757 of file ZSysUtils.pas.
| TByteDynArray StrToBytes | ( | const string | Value | ) |
Converts string into an array of bytes.
| Value | a string to be converted. |
Definition at line 1078 of file ZSysUtils.pas.
| TDateTime TimestampStrToDateTime | ( | const string | Value | ) |
Converts Timestamp String to TDateTime.
| Value | a timestamp string. |
Definition at line 1243 of file ZSysUtils.pas.
| TByteDynArray VarToBytes | ( | const Variant | Value | ) |
Converts variant into an array of bytes.
| Value | a varaint to be converted. |
Definition at line 1117 of file ZSysUtils.pas.
1.5.7.1