Show: Object Pascal C++
Display Preferences

Commonly Used Routines for Null-terminated Strings

From Appmethod Topics
Jump to: navigation, search

Go Up to Working with Strings


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:

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

System.SysUtils.AnsiStrComp

yes

yes

yes

System.SysUtils.AnsiStrIComp

no

yes

yes

System.SysUtils.AnsiStrLComp

yes

yes

yes

System.SysUtils.AnsiStrLIComp

no

yes

yes

System.SysUtils.StrComp

yes

no

no

System.SysUtils.StrIComp

no

no

no

System.SysUtils.StrLComp

yes

no

no

System.SysUtils.StrLIComp

no

no

no

Null-terminated Case Conversion Routines

Routine Uses locale settings Supports MBCS

System.SysUtils.AnsiStrLower

yes

yes

System.SysUtils.AnsiStrUpper

yes

yes

System.SysUtils.StrLower

no

no

System.SysUtils.StrUpper

no

no

Null-terminated String Modification Routines

Routine

System.SysUtils.StrCat

System.SysUtils.StrLCat

Null-terminated Sub-string Routines

Routine Case-sensitive Supports MBCS

System.SysUtils.AnsiStrPos

yes

yes

System.SysUtils.AnsiStrScan

yes

yes

System.SysUtils.AnsiStrRScan

yes

yes

System.SysUtils.StrPos

yes

no

System.SysUtils.StrScan

yes

no

System.SysUtils.StrRScan

yes

no

Null-terminated String Copying

Routine

System.SysUtils.StrCopy

System.SysUtils.StrLCopy

System.SysUtils.StrECopy

System.SysUtils.StrMove

System.SysUtils.StrPCopy

System.SysUtils.StrPLCopy

See Also

Personal tools
In other languages