mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
34 lines
891 B
C
34 lines
891 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: drivers/fs/vfat/string.c
|
|
* PURPOSE: VFAT Filesystem
|
|
* PROGRAMMERS: Jason Filby (jasonfilby@yahoo.com)
|
|
* Doug Lyons (douglyons at douglyons dot com)
|
|
*
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include "vfat.h"
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* FUNCTIONS ****************************************************************/
|
|
|
|
const WCHAR *long_illegals = L"\"*\\<>/?:|";
|
|
|
|
BOOLEAN
|
|
vfatIsLongIllegal(
|
|
WCHAR c)
|
|
{
|
|
return wcschr(long_illegals, c) ? TRUE : FALSE;
|
|
}
|
|
|
|
BOOLEAN
|
|
IsDotOrDotDot(PCUNICODE_STRING Name)
|
|
{
|
|
return ((Name->Length == sizeof(WCHAR) && Name->Buffer[0] == L'.') ||
|
|
(Name->Length == 2 * sizeof(WCHAR) && Name->Buffer[0] == L'.' && Name->Buffer[1] == L'.'));
|
|
}
|