Functions for comparing strings and matching patterns.
| Function | Method Alias | Description |
|---|---|---|
SameText(s1, s2) |
.EqualsText |
Case-insensitive comparison. |
CompareText(s1, s2) |
.CompareText |
Case-insensitive comparison (returns -1, 0, 1). |
StrMatches(s, mask) |
.Matches(mask) |
Wildcard matching (* and ?). |
var filename := 'report_2024.pdf';
if filename.Matches('report_*.pdf') then
PrintLn('Matches!'); Matches!