RAD Studio |  |

Commonly Used Routines for Null-terminated Strings
See Also
Collapse All

The null-terminated string handling routines cover several functional areas. Within these areas, some are used for the same purpose, the differences being whether or not they use a particular criteria in their calculations. The following tables list these routines by these functional areas:

- Comparison
- Case conversion
- Modification
- Sub-string
- Copying

Where appropriate, the tables also provide columns indicating whether the routine is case-sensitive, uses the current locale, and/or supports multi-byte character sets.

Null-terminated string comparison routines

Routine | Case-sensitive | Uses locale settings | Supports MBCS
SysUtils.AnsiStrComp | yes | yes | yes
SysUtils.AnsiStrIComp | no | yes | yes
SysUtils.AnsiStrLComp | yes | yes | yes
SysUtils.AnsiStrLIComp | no | yes | yes
SysUtils.StrComp | yes | no | no
SysUtils.StrIComp | no | no | no
SysUtils.StrLComp | yes | no | no
SysUtils.StrLIComp | no | no | no

Null-terminated case conversion routines

Routine | Uses locale settings | Supports MBCS
SysUtils.AnsiStrLower | yes | yes
SysUtils.AnsiStrUpper | yes | yes
SysUtils.StrLower | no | no
SysUtils.StrUpper | no | no

String modification routines

Routine
SysUtils.StrCat
SysUtils.StrLCat

Sub-string routines

Routine | Case-sensitive | Supports MBCS
SysUtils.AnsiStrPos | yes | yes
SysUtils.AnsiStrScan | yes | yes
SysUtils.AnsiStrRScan | yes | yes
SysUtils.StrPos | yes | no
SysUtils.StrScan | yes | no
SysUtils.StrRScan | yes | no

Null-terminated string copying

Routine
SysUtils.StrCopy
SysUtils.StrLCopy
SysUtils.StrECopy
SysUtils.StrMove
SysUtils.StrPCopy
SysUtils.StrPLCopy

See Also

Commonly Used Long String Routines

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!