[Overview][Resource strings][Constants][Types][Procedures and functions][Index] Reference for unit 'StrUtils' (#rtl)

StartsStr

Check whether one string starts with another

Declaration

Source position: strutils.pp line 54

function StartsStr(

  const ASubText: string;

  const AText: string

):Boolean;

Description

StarsText checks whether aText starts with aSubText and returns True if it does. i.e. it returns true if the first characters of aText are aSubText. It follows that the length of aText must be at least the length of aSubText. The comparison is made case-sensitive. If you wish to compare case-insentively, use StartsText instead.

See also

AnsiStartsStr

  

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

EndsStr

  

Check whether one string ends with another

StartsText

  

Check whether one text starts with another


Documentation generated on: Jun 23 2021