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"
00028
00029
00030
00031 #ifndef IEEE_754
00032 # define IEEE_754 1
00033 #endif
00034
00035
00036
00037
00038
00065 U_STABLE const char* U_EXPORT2 u_getDataDirectory(void);
00066
00086 U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
00087
00096 U_INTERNAL const char* U_EXPORT2 uprv_getDefaultCodepage(void);
00097
00107 U_INTERNAL const char* U_EXPORT2 uprv_getDefaultLocaleID(void);
00108
00114 #ifdef XP_MAC
00115 # define U_FILE_SEP_CHAR ':'
00116 # define U_FILE_ALT_SEP_CHAR ':'
00117 # define U_PATH_SEP_CHAR ';'
00118 # define U_FILE_SEP_STRING ":"
00119 # define U_FILE_ALT_SEP_STRING ":"
00120 # define U_PATH_SEP_STRING ";"
00121 #elif defined(WIN32) || defined(OS2)
00122 # define U_FILE_SEP_CHAR '\\'
00123 # define U_FILE_ALT_SEP_CHAR '/'
00124 # define U_PATH_SEP_CHAR ';'
00125 # define U_FILE_SEP_STRING "\\"
00126 # define U_FILE_ALT_SEP_STRING "/"
00127 # define U_PATH_SEP_STRING ";"
00128 #else
00129 # define U_FILE_SEP_CHAR '/'
00130 # define U_FILE_ALT_SEP_CHAR '/'
00131 # define U_PATH_SEP_CHAR ':'
00132 # define U_FILE_SEP_STRING "/"
00133 # define U_FILE_ALT_SEP_STRING "/"
00134 # define U_PATH_SEP_STRING ":"
00135 #endif
00136
00155 U_STABLE void U_EXPORT2
00156 u_charsToUChars(const char *cs, UChar *us, int32_t length);
00157
00177 U_STABLE void U_EXPORT2
00178 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
00179
00180 #endif