AnsiStartsText

Check whether a string starts with a given substring, ignoring case

Declaration

Source position: strutils.pp line 31

  function AnsiStartsText(const ASubText: string; const AText: string)
                          : Boolean;

Description

AnsiStartsText checks AText to see whether it starts with ASubText , and returns True if it does, False if not. The check is performed case-insensitive. Basically, it checks whether the position of ASubText equals 1.

Errors

None.

See also

Name Description
AnsiContainsText Check whether a string contains a certain substring, ignoring case.
AnsiEndsText Check whether a string ends with a certain substring, ignoring case.
AnsiIndexText Searches, case insensitive, for a string in an array of strings.
AnsiStartsStr Check whether a string starts with a given substring, observing case