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
00069
00089 U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
00090
00091 #ifndef U_HIDE_INTERNAL_API
00092
00100 U_INTERNAL const char * U_EXPORT2 u_getTimeZoneFilesDirectory(UErrorCode *status);
00101
00110 U_INTERNAL void U_EXPORT2 u_setTimeZoneFilesDirectory(const char *path, UErrorCode *status);
00111 #endif
00112
00113
00120 #if U_PLATFORM_USES_ONLY_WIN32_API
00121 # define U_FILE_SEP_CHAR '\\'
00122 # define U_FILE_ALT_SEP_CHAR '/'
00123 # define U_PATH_SEP_CHAR ';'
00124 # define U_FILE_SEP_STRING "\\"
00125 # define U_FILE_ALT_SEP_STRING "/"
00126 # define U_PATH_SEP_STRING ";"
00127 #else
00128 # define U_FILE_SEP_CHAR '/'
00129 # define U_FILE_ALT_SEP_CHAR '/'
00130 # define U_PATH_SEP_CHAR ':'
00131 # define U_FILE_SEP_STRING "/"
00132 # define U_FILE_ALT_SEP_STRING "/"
00133 # define U_PATH_SEP_STRING ":"
00134 #endif
00135
00156 U_STABLE void U_EXPORT2
00157 u_charsToUChars(const char *cs, UChar *us, int32_t length);
00158
00178 U_STABLE void U_EXPORT2
00179 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
00180
00181 #endif