[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

ParsePatternNoCase

Create a tokenized string for MatchPatternNoCase()

Declaration

Source position: amigados.pas line 2404

function ParsePatternNoCase(

  const Source: STRPTR;

  Dest: STRPTR;

  DestLen: LongInt

):LongInt;

Arguments

Source

  

Unparsed wildcard string to search for.

Dest

  

Output string, gets tokenized version of input.

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: 2017-01-10