Units
Classes, Interfaces, Objects
Types
Variables
Constants
Functions, Procedures
Identifiers

All Functions and Procedures

NameUnitDescription
AnsiAdjustHyphens rjStrings Adjusts hyphens.
AnsiBufferHashCI rjExDictHash Hashes a buffer.
AnsiBufferHashCS rjExDictHash Hashes a buffer.
AnsiBufferSameCI rjStrings  
AnsiBufferSameCS rjStrings  
AnsiBufferScanSetCS rjStrings Scans the Buffer for the first Character in set Search. The comparison is not based on the current locale and is case-sensitive.
AnsiCompareCI rjStrings Compares two strings by ordinal value without case sensitivity.
AnsiCompareCS rjStrings Compares two strings case sensitively.
AnsiCompressWhiteSpaceInPlace rjStrings Removes all trailing or leading whitespace and control characters, or both, from a string. Also compresses all occurances of multiple whitespace or control characters within the string to one single space character (#32).
AnsiExcludeTrailingSlashInPlace rjStrings Trims all white space from the end of s and deletes a trailing PATH_SEPARATOR if present.

See also: AnsiIncludeTrailingSlashInPlace.

AnsiExistsCharCS rjStrings Returns True if character c exists in string s.
AnsiExtractWord rjStrings Extracts the Number-th word from a string. Words are delimited by Delimiters, where each delimiter starts a new word. If two or more delimiters directly follow each other, empty strings will be returned.
AnsiFirstCharsFromWords rjStrings Extracts the first characters of each word in s, up to MaxCharCount and concatenates them to the result string.

Example: AnsiFirstCharsFromWords('This is a test',2) will result in 'Thisate'

AnsiHashCI rjExDictHash Hashes an AnsiString.
AnsiHashCS rjExDictHash Hashes an AnsiString.
AnsiIncludeTrailingSlashInPlace rjStrings Trims all white space from the end of s and adds a trailing PATH_SEPARATOR if one is not already present.

See also: AnsiExcludeTrailingSlashInPlace.

AnsiIsEmptyString rjStrings Returns True is a given string is empty or contains white space or control characters only.
AnsiLowerCase rjStrings Returns a string that is a copy of the given string converted to lower case. The conversion does not use the current locale.
AnsiMatchCI rjStrings Matches Search against Source starting at position Start. Comparison is not based on the current locale and is case-insensitive.
AnsiMatchCS rjStrings Matches Search against Source starting at position Start. Comparison is not based on the current locale and is case-sensitive.
AnsiMatchWildCS rjStrings Indicates whether Source string conforms to the format specified Mask string.

Each literal character must match a single character in the string. The comparison to literal characters is case-sensitive.

Wildcards are WildChar (*) and MaskChar (?). A WildChar matches any number of characters. A MaskChar matches a single arbitrary character.

AnsiMatchWildCS returns True if the string matches the mask and False if it doesn't.

AnsiPadLeft rjStrings Appends characters (c) to left of Source as required to increase length to Count.
AnsiPadRight rjStrings Appends characters (c) to right of Source as required to increase length to Count.
AnsiPosBackCI rjStrings AnsiPosBackCI searches for a substring, Search, in a string, Source, and returns a cardinal value that is the index of the first character of Search within Source. AnsiPosBackCI starts searching at the end of Source and is case-sensitive. If Search is not found, AnsiPosBackCI returns zero.
AnsiPosCI rjStrings AnsiPosCI searches for a substring, Search, in a string, Source, and returns a cardinal value that is the index of the first character of Search within Source. AnsiPosCI starts searching at the beginning of Source and is case-insensitive. If Search is not found, AnsiPosCI returns zero.
AnsiPosCS rjStrings AnsiPosCS searches for a substring, Search, in a string, Source, and returns a cardinal value that is the index of the first character of Search within Source. AnsiPosCS starts searching at the beginning of Source and is case-sensitive. If Search is not found, AnsiPosCS returns zero.
AnsiProperCase rjStrings Upper case the first alpha character in each word, lower case all other characters.
AnsiRemoveFromToCI rjStrings Repeatedly searches Source for FromString followed by ToString and removes all characters from the beginning of FromString up to the end of ToString from it.

AnsiRemoveFromToCI can be used, for example, to remove all image tags from a HTML string with the following command:

  AnsiRemoveFromToCI(MyHtmlString,'<IMG', '>')

AnsiReplaceCharCSInPlace rjStrings Replaces all characters SearchChar in Source with character ReplaceChar. The comparison is case sensitive.
AnsiReplaceCI rjStrings Returns a string with occurrences of one substring replaced by another substring. AnsiReplaceCI replaces all occurrences of the substring specified by Search with the substring specified by Replace. The entire string will be searched once and all occurrences of Search will be replaced. The comparison operation is case insensitive.
AnsiReplaceCILoop rjStrings Returns a string with occurrences of one substring replaced by another substring. AnsiReplaceCILoop replaces all occurrences of the substring specified by Search with the substring specified by Replace. The entire string will be searched multiple times until all occurrences of Search will have been replaced and search is not any longer found in Source. The comparison operation is case insensitive.
AnsiReplaceCS rjStrings Returns a string with occurrences of one substring replaced by another substring. AnsiReplaceCS replaces all occurrences of the substring specified by Search with the substring specified by Replace. The entire string will be searched once and all occurrences of Search will be replaced. The comparison operation is case sensitive.
AnsiReplaceCSLoop rjStrings Returns a string with occurrences of one substring replaced by another substring. AnsiReplaceCSLoop replaces all occurrences of the substring specified by Search with the substring specified by Replace. The entire string will be searched multiple times until all occurrences of Search will have been replaced and search is not any longer found in Source. The comparison operation is case sensitive.
AnsiSameCI rjStrings Compares two AnsiStrings and returns True if both strings are equal. The comparison is not based on the current locale and is case-insensitive.
AnsiSameCS rjStrings Compares two AnsiStrings and returns True if both strings are equal. The comparison is not based on the current locale and is case-sensitive.
AnsiSameFrontCI rjStrings Compares the characters of two strings until the end of the shorter string is reached. Returns True if the characters up to that point are equal. Comparison is case-insensitive.
AnsiSameMemCI rjStrings  
AnsiSameMemCS rjStrings  
AnsiScanBackCharCS rjStrings Backward/reverse scan from Start location (1 = First Char., 0 = String End) looking for single character, c. Returns: Position where/if found; otherwise, 0.
AnsiScanBackNotSetCS rjStrings Backward/reverse scan from Start location (1 = First Char., 0 = String End) looking for first char not in set Search. Returns: Position where/if found; otherwise, 0.
AnsiScanBackSetCS rjStrings Backward/reverse scan from Start location (1 = First Char., 0 = String End) looking for first char in set Search. Returns: Position where/if found; otherwise, 0.
AnsiScanCharCS rjStrings Forward scan from Start looking for next matching character (c). Returns: Position where/if found; otherwise, 0.
AnsiScanNotSetCS rjStrings Forward scan from Start looking for next matching character not in set Search. Returns: Position where/if found; otherwise, 0.
AnsiScanSetCS rjStrings Forward scan from Start looking for next matching character in set Search. Returns: Position where/if found; otherwise, 0.
AnsiTomCatBuffer rjStrings Adds SourceLength bytes of the buffer pointed to by Source to string d.

See AnsiTomCatString for details on how to use AnsiTomCatBuffer.

AnsiTomCatChar rjStrings Adds character c to string d.

See AnsiTomCatString for details on how to use AnsiTomCatChar.

AnsiTomCatString rjStrings Appends string s to string d.

String concatenation with smart memory allocation. Offers a speed advantage when building a long resultant string (d) from many small string fragments.

InUse is a user-supplied variable which is updated by the procedure to track the portion of d actually "in use" at any time (typically less than the allocated length). Initialize to zero or Length(d) as appropriate at the outset but do not manually alter otherwise.

Once concatenation is finished, use SetLength(d,InUse) to trim any unused excess from the resultant.

See also: AnsiTomCatChar, AnsiTomCatBuffer.

AnsiTrimCharCS rjStrings Trims leading and trailing characters c from a string.
AnsiTrimSetCS rjStrings Trims leading and trailing characters in set s from a string.
AnsiUpperCase rjStrings Returns a string that is a copy of the given string converted to upper case. The conversion does not use the current locale.
BSwap rjBase Reverses the byte order of a given cardinal number. For example, 001.002.003.004 returns 004.003.002.001.
CapacityByCount rjExContainers CapacityByCount
CardinalToHex rjBase CardinalToHex returns the hex representation of a Cardinal.

The CardinalToHex function converts a number into a string containing the number's hexadecimal (base 16) representation. Value is the number to convert. Digits indicates the minimum number of hexadecimal digits to return.

CompareItemElement_04s04 rjExContainers CompareItemElement_04s04
CompareItemElement_04u04 rjExContainers CompareItemElement_04u04
CompareItemElement_08s04 rjExContainers CompareItemElement_08s04
CompareItemElement_08u04 rjExContainers CompareItemElement_08u04
CompareItemElement_AnsiValueCI rjExContainers CompareItemElement_AnsiValueCI
CompareItemElement_AnsiValueCS rjExContainers CompareItemElement_AnsiValueCS
CompareItems_00s04 rjExContainers CompareItems_00s04
CompareItems_00s04_04s04 rjExContainers CompareItems_00s04_04s04
CompareItems_00u04 rjExContainers CompareItems_00u04
CompareItems_00u04_04u04 rjExContainers CompareItems_00u04_04u04
CompareItems_04s04 rjExContainers CompareItems_04s04
CompareItems_04u04 rjExContainers CompareItems_04u04
CompareItems_08s04 rjExContainers CompareItems_08s04
CompareItems_08u04 rjExContainers CompareItems_08u04
CompareItems_AnsiNameCI rjExContainers CompareItems_AnsiNameCI
CompareItems_AnsiNameCI_AnsiValueCI rjExContainers CompareItems_AnsiNameCI_AnsiValueCI
CompareItems_AnsiNameCI_AnsiValueCI_08u04 rjExContainers CompareItems_AnsiNameCI_AnsiValueCI_08u04
CompareItems_AnsiNameCS rjExContainers CompareItems_AnsiNameCS
CompareItems_AnsiNameCS_AnsiValueCS rjExContainers CompareItems_AnsiNameCS_AnsiValueCS
CompareItems_AnsiNameCS_AnsiValueCS_08u04 rjExContainers CompareItems_AnsiNameCS_AnsiValueCS_08u04
CompareItems_AnsiValueCI rjExContainers CompareItems_AnsiValueCI
CompareItems_AnsiValueCS rjExContainers CompareItems_AnsiValueCS
CompareItems_WideNameCI rjExContainers CompareItems_WideNameCI
CompareItems_WideNameCS rjExContainers CompareItems_WideNameCS
CopyKey rjExDictHash Copies KeySize bytes of memory from PFromKey to PToKey.
CopyKey04 rjExDictHash Copies exactly 4 bytes of memory from PFromKey to PToKey, ignoring KeySize. If KeySize is known in advance, CopyKey04 is generally faster than CopyKey.
CopyKey08 rjExDictHash Copies exactly 8 bytes of memory from PFromKey to PToKey, ignoring KeySize. If KeySize is known in advance, CopyKey08 is generally faster than CopyKey.
CopyKey12 rjExDictHash Copies exactly 12 bytes of memory from PFromKey to PToKey, ignoring KeySize. If KeySize is known in advance, CopyKey12 is generally faster than CopyKey.
FreeAndNil rjBase Frees an object reference and replaces the reference with nil.
FreeItem_00o04 rjExContainers FreeItem_00o04
FreeItem_04o04 rjExContainers FreeItem_04o04
FreeItem_AnsiName rjExContainers FreeItem_AnsiName
FreeItem_AnsiName_AnsiValue rjExContainers FreeItem_AnsiName_AnsiValue
FreeItem_AnsiValue rjExContainers FreeItem_AnsiValue
FreeItem_WideName rjExContainers FreeItem_WideName
FreeItem_WideValue rjExContainers FreeItem_WideValue
GetClosestPrime rjPrimes Returns the first prime number that is equal to or greater than n.
GetLastErrorString rjStrings Retunrs a string representation of the GetLastError Windows API function. Uses SystemMessageString to convert the error code into a string.
HashKey04 rjExDictHash Hashes a Key of 4 bytes size, ignonring KeySize.
InitItem rjExContainers InitItem
InitItem_00z04 rjExContainers InitItem_00z04
InitItem_00z08 rjExContainers InitItem_00z08
InitItem_00z12 rjExContainers InitItem_00z12
IntToStr rjBase Fast IntToStr implementation.
LeftMostBit rjBase Returns the index of the leftmost set bit in Value. Bits are indexed from right to left, starting with 0 and ending with 31. If no bit is set in Value, LeftMostBit returns -1.

See also: RightMostBit.

Max rjBase Max returns the greater of two numeric values.
Min rjBase Min returns the lesser of two numeric values.
RegisterObjectCreate rjCheckFree Registers an object has been created.
RegisterObjectFree rjCheckFree Unregisters an object has been destroyed.
RightMostBit rjBase Returns the index of the rightmost set bit in Value. Bits are indexed from right to left, starting with 0 and ending with 31. If no bit is set in Value, RightMostBit returns -1.

See also: LeftMostBit.

SameItemElement_04u04 rjExContainers SameItemElement_04u04
SameItemElement_08u04 rjExContainers SameItemElement_08u04
SameItemElement_AnsiValueCI rjExContainers SameItemElement_AnsiValueCI
SameItemElement_AnsiValueCS rjExContainers SameItemElement_AnsiValueCS
SameItems_00u04 rjExContainers SameItems_00u04
SameItems_04u04 rjExContainers SameItems_04u04
SameItems_08u04 rjExContainers SameItems_08u04
SameItems_AnsiNameCI rjExContainers SameItems_AnsiNameCI
SameItems_AnsiNameCS rjExContainers SameItems_AnsiNameCS
SameItems_AnsiValueCI rjExContainers SameItems_AnsiValueCI
SameItems_AnsiValueCS rjExContainers SameItems_AnsiValueCS
SameItems_WideNameCI rjExContainers SameItems_WideNameCI
SameItems_WideNameCS rjExContainers SameItems_WideNameCS
SameKeys04 rjExDictHash Compares two keys of 4 bytes size, ignonring KeySize.
SkipAnsiSet rjStrings Advances p, skipping all characters in set search until character is not in Search any more. Does not stop at #0.
SkipNotAnsiSet rjStrings Advances p, skipping all characters not in set search until character is in Search. Does not stop at #0.
SystemMessageString rjStrings SystemMessageString returns an error message string that corresponds to the specified Win32 API error code. It is a wrapper around the FormatMessage Windows API function. SystemMessageString can be used to convert Windows error codes into strings.
ZAnsiScanNotSetCS rjStrings Searches Source for a character in set Search. Source is a zero-terminated string. Search stops on match or at the end of string character (#0). If found, ZAnsiScanNotSetCS returns the 0-based position of character in Source. If not found, ZAnsiScanNotSetCS returns -1.
ZeroMem rjBase Fills Count contiguous bytes with 0 (zero).

Warning: This function does not perform any range checking.


rjExContainer Library Version 0.2.
Copyright Ralf Junker 2000-2001.
http://www.zeitungsjunge.de/delphi/.