00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef PUTIL_H
00025 #define PUTIL_H
00026
00027 #include "unicode/utypes.h"
00033
00034
00035
00036
00067 U_STABLE const char* U_EXPORT2 u_getDataDirectory(void);
00068
00088 U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
00089
00096 #if U_PLATFORM == U_PF_CLASSIC_MACOS
00097 # define U_FILE_SEP_CHAR ':'
00098 # define U_FILE_ALT_SEP_CHAR ':'
00099 # define U_PATH_SEP_CHAR ';'
00100 # define U_FILE_SEP_STRING ":"
00101 # define U_FILE_ALT_SEP_STRING ":"
00102 # define U_PATH_SEP_STRING ";"
00103 #elif U_PLATFORM_USES_ONLY_WIN32_API
00104 # define U_FILE_SEP_CHAR '\\'
00105 # define U_FILE_ALT_SEP_CHAR '/'
00106 # define U_PATH_SEP_CHAR ';'
00107 # define U_FILE_SEP_STRING "\\"
00108 # define U_FILE_ALT_SEP_STRING "/"
00109 # define U_PATH_SEP_STRING ";"
00110 #else
00111 # define U_FILE_SEP_CHAR '/'
00112 # define U_FILE_ALT_SEP_CHAR '/'
00113 # define U_PATH_SEP_CHAR ':'
00114 # define U_FILE_SEP_STRING "/"
00115 # define U_FILE_ALT_SEP_STRING "/"
00116 # define U_PATH_SEP_STRING ":"
00117 #endif
00118
00139 U_STABLE void U_EXPORT2
00140 u_charsToUChars(const char *cs, UChar *us, int32_t length);
00141
00161 U_STABLE void U_EXPORT2
00162 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
00163
00164 #endif