Skip to content

UnicodeSameText

Check whether 2 strings are the same, ignoring case.

Declaration

Source position: sysunih.inc line 30

function UnicodeSameText(const s1: UnicodeString; 
                        const s2: UnicodeString) : Boolean;

Description

UnicodeSameText checks whether the Unicode strings S1 and S2 are equal, ignoring case. The function returns True if the strings are equal, False if they are not. This function relies on a widestring manager to perform the actual comparison, as it will take into account various equivalent code points: it is not a simple byte-by-byte comparison.

See also

Name Description
UnicodeCompareText Compare 2 strings case insensitively.
CompareStr Compare 2 ansistrings case-sensitively, ignoring special characters.
CompareText Compare 2 ansistrings case insensitive.
UnicodeSameStr Check whether 2 strings are equal.
SameText Checks whether 2 strings are the same (case insensitive).