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

MatchStr

Check whether a string occurs in an array of strings, observing case.

Declaration

Source position: strutils.pp line 47

function MatchStr(

  const AText: UnicodeString;

  const AValues: array of UnicodeString

):Boolean;

Description

MatchStr matches AText against each unicode string in AValues. If a match is found, it returns True, otherwise False is returned. The strings are matched observing case.

This function simply calls IndexStr and checks whether it returns -1 or not.


Documentation generated on: Sep 28 2017