Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#os4units]

ParsePatternNoCase

Create a tokenized string for MatchPatternNoCase()

Declaration

Source position: amigados.pas line 2603

function ParsePatternNoCase(

  const Pat: PChar;

  Buf: PChar;

  BufLen: LongInt

):LongInt;

Function result

1
There are wildcards in the pattern (it might match more than one string).
0
No wildcards in it, all went fine.
-1
An error happened. IoErr() gives additional information in that case.

Description

Tokenizes a pattern, for use by MatchPatternNoCase(). Also indicates if there are any wildcards in the pattern (i.e. whether it might match more than one item). Note that Dest must be at least 2 times as large as Source plus 2 bytes. For a description of the wildcards, see ParsePattern().

See also

ParsePattern

  

Create a tokenized string for MatchPattern()

MatchPattern

  

Checks for a pattern match with a string

MatchFirst

  

Finds file that matches pattern

MatchNext

  

Finds the next file or directory that matches pattern

ToUpper

  

Convert a character to upper case.


Documentation generated on: 2021-07-30