ReactOS  0.4.15-dev-5640-g0dde428
string.c
Go to the documentation of this file.
1 /*
2  * PROJECT: VFAT Filesystem
3  * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE: Volume routines
5  * COPYRIGHT: Copyright 1998 Jason Filby <jasonfilby@yahoo.com>
6  * Copyright 2020 Doug Lyons <douglyons@douglyons.com>
7  */
8 
9 /* INCLUDES *****************************************************************/
10 
11 #include "vfat.h"
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 /* FUNCTIONS ****************************************************************/
17 
18 const WCHAR *long_illegals = L"\"*\\<>/?:|";
19 
20 BOOLEAN
22  WCHAR c)
23 {
24  return wcschr(long_illegals, c) ? TRUE : FALSE;
25 }
26 
27 BOOLEAN
29 {
30  return ((Name->Length == sizeof(WCHAR) && Name->Buffer[0] == L'.') ||
31  (Name->Length == 2 * sizeof(WCHAR) && Name->Buffer[0] == L'.' && Name->Buffer[1] == L'.'));
32 }
#define TRUE
Definition: types.h:120
BOOLEAN IsDotOrDotDot(PCUNICODE_STRING Name)
Definition: string.c:28
#define L(x)
Definition: ntvdm.h:50
#define FALSE
Definition: types.h:117
unsigned char BOOLEAN
BOOLEAN vfatIsLongIllegal(WCHAR c)
Definition: string.c:21
_CONST_RETURN wchar_t *__cdecl wcschr(_In_z_ const wchar_t *_Str, wchar_t _Ch)
__wchar_t WCHAR
Definition: xmlstorage.h:180
const GLubyte * c
Definition: glext.h:8905
const WCHAR * long_illegals
Definition: string.c:18