System.IOUtils.TPath.IsValidFileNameChar

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

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

Propriétés

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


Description

Vérifie si un caractère donné est autorisé dans un nom de fichier.

Appelez IsValidFileNameChar pour vérifier si un caractère donné est autorisé dans une chaîne nom de fichier. IsValidFileNameChar renvoie True si le caractère est autorisé. Sinon, elle renvoie False.

Le tableau suivant liste les paramètres attendus par cette méthode :

Nom Signification

AChar

Le caractère vérifié


Caractères invalides

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, '"', '*', '/', ':', '<', '>', '?', '\' et '|'.

MacOS, iOS, Android

#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, '/' et '~'.


Voir aussi