]> granicus.if.org Git - php/commitdiff
Add Unicode constants for default slash and directory separator.
authorAndrei Zmievski <andrei@php.net>
Fri, 4 Aug 2006 17:29:15 +0000 (17:29 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 4 Aug 2006 17:29:15 +0000 (17:29 +0000)
TSRM/tsrm_virtual_cwd.h

index 279deae0dcb14175b6de5f341f073c2208433ba2..1dd4c33a68f06800b7ea54962adeeb88c5dfddfa 100644 (file)
@@ -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))