Libraries
Wildcard Source Code
 previous   up   next 

Function Summary
boolean
wildcardMatch (in string: stri, in string: pattern)
Check if the string stri matches with pattern.
array string
findMatchingFiles (in string: pattern, in boolean: caseSensitive)
Determine which file paths that match a given pattern.
array string
findMatchingFiles (in string: pattern)
Determine which file paths that match a given pattern.

Function Detail

wildcardMatch

const func boolean: wildcardMatch (in string: stri, in string: pattern)

Check if the string stri matches with pattern. The pattern may contain wildcard characters.

  • The asterisk * matches zero or more characters.
  • The question mark ? matches exactly one character.
Returns:
TRUE, if stri is matched by pattern, FALSE otherwise.

findMatchingFiles

const func array string: findMatchingFiles (in string: pattern, in boolean: caseSensitive)

Determine which file paths that match a given pattern. The pattern may contain wildcard characters.

  • The asterisk * matches zero or more characters.
  • The question mark ? matches exactly one character.
Parameters:
pattern - File name pattern (e.g.: *.sd7) or path followed by a file name pattern (e.g.: prg/*.sd7).
caseSensitive - TRUE if the match is case sensitive, FALSE otherwise.
Returns:
array of matching file paths.

findMatchingFiles

const func array string: findMatchingFiles (in string: pattern)

Determine which file paths that match a given pattern. The pattern may contain wildcard characters.

  • The asterisk * matches zero or more characters.
  • The question mark ? matches exactly one character.
Parameters:
pattern - File name pattern (e.g.: *.sd7) or path followed by a file name pattern (e.g.: prg/*.sd7).
Returns:
array of matching file paths.


 previous   up   next