System.IOUtils.TPath.HasValidPathChars
Delphi
class function HasValidPathChars(const Path: string; const UseWildcards: Boolean): Boolean; static;
C++
static bool __fastcall HasValidPathChars(const System::UnicodeString Path, const bool UseWildcards);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Checks whether a given path string contains only allowed characters.
Call HasValidPathChars to check whether the given path string contains only allowed characters. HasValidPathChars returns true if the string contains only allowed characters; false otherwise.
The following table lists the parameters expected by this method:
Name | Meaning |
---|---|
Path |
The verified path string. |
UseWildcards |
Specifies whether the mask characters are treated as valid path characters (e.g. asterisk or question mark). |