Sign in Join
FPDoc Onlineexperiment

FindPart function

In unit StrUtils

Search for a substring in a string, using wildcards.

Declaration

pascal
function FindPart(const HelpWilds: string; const InputStr: string)
: SizeInt

Arguments

HelpWilds

Search string, may contain wildcards.

InputStr

String to search in.

Function result

String matching the search expression.

Description

FindPart searches the string InputStr and returns the first string that matches the wildcards specification in HelpWilds . If no match is found, and empty string is returned. Currently, the only valid wildcards is the "?" character.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.