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"
00035 #ifndef IEEE_754
00036 # define IEEE_754 1
00037 #endif
00038
00039
00040
00041
00042
00073 U_STABLE const char* U_EXPORT2 u_getDataDirectory(void);
00074
00094 U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
00095
00096 #if !U_CHARSET_IS_UTF8
00097
00105 U_INTERNAL const char* U_EXPORT2 uprv_getDefaultCodepage(void);
00106 #endif
00107
00117 U_INTERNAL const char* U_EXPORT2 uprv_getDefaultLocaleID(void);
00118
00125 #ifdef XP_MAC
00126 # define U_FILE_SEP_CHAR ':'
00127 # define U_FILE_ALT_SEP_CHAR ':'
00128 # define U_PATH_SEP_CHAR ';'
00129 # define U_FILE_SEP_STRING ":"
00130 # define U_FILE_ALT_SEP_STRING ":"
00131 # define U_PATH_SEP_STRING ";"
00132 #elif defined(U_WINDOWS)
00133 # define U_FILE_SEP_CHAR '\\'
00134 # define U_FILE_ALT_SEP_CHAR '/'
00135 # define U_PATH_SEP_CHAR ';'
00136 # define U_FILE_SEP_STRING "\\"
00137 # define U_FILE_ALT_SEP_STRING "/"
00138 # define U_PATH_SEP_STRING ";"
00139 #else
00140 # define U_FILE_SEP_CHAR '/'
00141 # define U_FILE_ALT_SEP_CHAR '/'
00142 # define U_PATH_SEP_CHAR ':'
00143 # define U_FILE_SEP_STRING "/"
00144 # define U_FILE_ALT_SEP_STRING "/"
00145 # define U_PATH_SEP_STRING ":"
00146 #endif
00147
00168 U_STABLE void U_EXPORT2
00169 u_charsToUChars(const char *cs, UChar *us, int32_t length);
00170
00190 U_STABLE void U_EXPORT2
00191 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
00192
00193 #endif