AnsiStartsStr

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

Declaration

Source position: strutils.pp line 49

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

Description

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

See also

Name Description
AnsiContainsStr Checks whether a string contains a given substring
AnsiEndsStr Check whether a string ends with a certain substring
AnsiIndexStr Searches, observing case, for a string in an array of strings.
AnsiStartsStr Check whether a string starts with a given substring, observing case