ReactOS  0.4.15-dev-1384-g878186b
string.c File Reference
#include "vfat.h"
#include <debug.h>
Include dependency graph for string.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOLEAN vfatIsLongIllegal (WCHAR c)
 
BOOLEAN IsDotOrDotDot (PCUNICODE_STRING Name)
 

Variables

const WCHARlong_illegals = L"\"*\<>/?:|"
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 15 of file string.c.

Function Documentation

◆ IsDotOrDotDot()

BOOLEAN IsDotOrDotDot ( PCUNICODE_STRING  Name)

Definition at line 30 of file string.c.

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 }
__wchar_t WCHAR
Definition: xmlstorage.h:180
static const WCHAR L[]
Definition: oid.c:1250

Referenced by VfatCreateFile(), VfatOpenFile(), VfatSetDispositionInformation(), and VfatSetRenameInformation().

◆ vfatIsLongIllegal()

BOOLEAN vfatIsLongIllegal ( WCHAR  c)

Definition at line 23 of file string.c.

25 {
26  return wcschr(long_illegals, c) ? TRUE : FALSE;
27 }
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
_CONST_RETURN wchar_t *__cdecl wcschr(_In_z_ const wchar_t *_Str, wchar_t _Ch)
const GLubyte * c
Definition: glext.h:8905
const WCHAR * long_illegals
Definition: string.c:20

Referenced by VfatCreateFile().

Variable Documentation

◆ long_illegals

const WCHAR* long_illegals = L"\"*\<>/?:|"

Definition at line 20 of file string.c.

Referenced by vfatIsLongIllegal().