System.IOUtils.TPath.IsValidFileNameChar

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function IsValidFileNameChar(const AChar: Char): Boolean; inline; static;

C++

static bool __fastcall IsValidFileNameChar(const System::WideChar AChar);

Properties

Type Visibility Source Unit Parent
function public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TPath

Description

Checks whether a given character is allowed in a file name.

Call IsValidFileNameChar to check whether a given character is allowed in a file name string. IsValidFileNameChar returns True if the character is allowed, and False if the character is not allowed.

The following table lists the parameters this method expects:

Name Meaning

<code">AChar

The verified character


Invalid Characters

Windows

#0, #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #30, #31, '"', '*', '/', ':', '<', '>', '?', '\' and '|'.

MacOS, iOS, Android, and Linux

#0, #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #30, #31, '/' and '~'.

See Also