From: Andrei Zmievski Date: Fri, 4 Aug 2006 17:29:15 +0000 (+0000) Subject: Add Unicode constants for default slash and directory separator. X-Git-Tag: RELEASE_1_0_0RC1~2096 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d6848d426c512805c7065cc8195d8771bb69772;p=php Add Unicode constants for default slash and directory separator. --- diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h index 279deae0dc..1dd4c33a68 100644 --- a/TSRM/tsrm_virtual_cwd.h +++ b/TSRM/tsrm_virtual_cwd.h @@ -57,6 +57,8 @@ typedef unsigned short mode_t; #define IS_SLASH_P(c) (*(c) == '/' || \ (*(c) == '\\' && !IsDBCSLeadByte(*(c-1)))) +#define DEFAULT_U_SLASH ((UChar)0x5c) /*'\\'*/ +#define DEFAULT_U_DIR_SEPARATOR ((UChar)0x3b) /*';'*/ #define IS_U_SLASH(c) ((UChar32)(c) == (UChar32)0x2f /*'/'*/ || (UChar32)(c) == (UChar32)0x5c /*'\\'*/) #define IS_U_SLASH_P(c) IS_SLASH(*(c)) @@ -78,6 +80,8 @@ typedef unsigned short mode_t; #define IS_SLASH(c) ((c) == '/' || (c) == '\\') #define IS_SLASH_P(c) IS_SLASH(*(c)) +#define DEFAULT_U_SLASH ((UChar)0x2f) /*'/'*/ +#define DEFAULT_U_DIR_SEPARATOR ((UChar)0x3b) /*';'*/ #define IS_U_SLASH(c) ((UChar32)(c) == (UChar32)0x2f /*'/'*/ || (UChar32)(c) == (UChar32)0x5c /*'\\'*/) #define IS_U_SLASH_P(c) IS_U_SLASH(*(c)) @@ -94,13 +98,16 @@ typedef unsigned short mode_t; #ifdef __riscos__ #define DEFAULT_DIR_SEPARATOR ';' +#define DEFAULT_U_DIR_SEPARATOR ((UChar)0x3b) /*';'*/ #else #define DEFAULT_DIR_SEPARATOR ':' +#define DEFAULT_U_DIR_SEPARATOR ((UChar)0x3a) /*':'*/ #endif #define IS_SLASH(c) ((c) == '/') #define IS_SLASH_P(c) IS_SLASH(*(c)) +#define DEFAULT_U_SLASH ((UChar)0x2f) /*'/'*/ #define IS_U_SLASH(c) ((UChar32)(c) == (UChar32)0x2f /*'/'*/) #define IS_U_SLASH_P(c) IS_U_SLASH(*(c))