[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Compare 2 strings byte for byte
Source position: syshelph.inc line 73
public class function TStringHelper.CompareOrdinal( |
const A: string; |
const B: string |
):Integer; overload; |
const A: string; |
IndexA: SizeInt; |
const B: string; |
IndexB: SizeInt; |
ALen: SizeInt |
):Integer; overload; |
CompareOrdinal compares 2 strings A and B bytewise. It is faster than a regular compare, but offers less options.
Optionally, a zero-based starting index for the compare can be given for each of the strings: IndexA and IndexB. In this case a maximum amount of characters (ALen) to be compared must also be specified.
None.
|
Compare 2 strings |
|
|
Compare string to another |