ReactOS  0.4.15-dev-5640-g0dde428
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 13 of file string.c.

Function Documentation

◆ IsDotOrDotDot()

BOOLEAN IsDotOrDotDot ( PCUNICODE_STRING  Name)

Definition at line 28 of file string.c.

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 L(x)
Definition: ntvdm.h:50
__wchar_t WCHAR
Definition: xmlstorage.h:180

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

◆ vfatIsLongIllegal()

BOOLEAN vfatIsLongIllegal ( WCHAR  c)

Definition at line 21 of file string.c.

23 {
24  return wcschr(long_illegals, c) ? TRUE : FALSE;
25 }
#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:18

Referenced by VfatCreateFile().

Variable Documentation

◆ long_illegals

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

Definition at line 18 of file string.c.

Referenced by vfatIsLongIllegal().