ReactOS  0.4.15-dev-1386-g5cb9f87
string.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS kernel
4  * FILE: drivers/fs/vfat/string.c
5  * PURPOSE: VFAT Filesystem
6  * PROGRAMMERS: Jason Filby (jasonfilby@yahoo.com)
7  * Doug Lyons (douglyons at douglyons dot com)
8  *
9  */
10 
11 /* INCLUDES *****************************************************************/
12 
13 #include "vfat.h"
14 
15 #define NDEBUG
16 #include <debug.h>
17 
18 /* FUNCTIONS ****************************************************************/
19 
20 const WCHAR *long_illegals = L"\"*\\<>/?:|";
21 
22 BOOLEAN
24  WCHAR c)
25 {
26  return wcschr(long_illegals, c) ? TRUE : FALSE;
27 }
28 
29 BOOLEAN
31 {
32  return ((Name->Length == sizeof(WCHAR) && Name->Buffer[0] == L'.') ||
33  (Name->Length == 2 * sizeof(WCHAR) && Name->Buffer[0] == L'.' && Name->Buffer[1] == L'.'));
34 }
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
unsigned char BOOLEAN
_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
static const WCHAR L[]
Definition: oid.c:1250
BOOLEAN IsDotOrDotDot(PCUNICODE_STRING Name)
Definition: string.c:30
BOOLEAN vfatIsLongIllegal(WCHAR c)
Definition: string.c:23
const WCHAR * long_illegals
Definition: string.c:20