00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef PUTIL_H
00027 #define PUTIL_H
00028
00029 #include "unicode/utypes.h"
00035
00036
00037
00038
00069 U_STABLE const char* U_EXPORT2 u_getDataDirectory(void);
00070
00071
00091 U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
00092
00093 #ifndef U_HIDE_INTERNAL_API
00094
00102 U_INTERNAL const char * U_EXPORT2 u_getTimeZoneFilesDirectory(UErrorCode *status);
00103
00112 U_INTERNAL void U_EXPORT2 u_setTimeZoneFilesDirectory(const char *path, UErrorCode *status);
00113 #endif
00114
00115
00122 #if U_PLATFORM_USES_ONLY_WIN32_API
00123 # define U_FILE_SEP_CHAR '\\'
00124 # define U_FILE_ALT_SEP_CHAR '/'
00125 # define U_PATH_SEP_CHAR ';'
00126 # define U_FILE_SEP_STRING "\\"
00127 # define U_FILE_ALT_SEP_STRING "/"
00128 # define U_PATH_SEP_STRING ";"
00129 #else
00130 # define U_FILE_SEP_CHAR '/'
00131 # define U_FILE_ALT_SEP_CHAR '/'
00132 # define U_PATH_SEP_CHAR ':'
00133 # define U_FILE_SEP_STRING "/"
00134 # define U_FILE_ALT_SEP_STRING "/"
00135 # define U_PATH_SEP_STRING ":"
00136 #endif
00137
00158 U_STABLE void U_EXPORT2
00159 u_charsToUChars(const char *cs, UChar *us, int32_t length);
00160
00180 U_STABLE void U_EXPORT2
00181 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
00182
00183 #endif