ICU 73.2  73.2
putil.h
Go to the documentation of this file.
00001 // © 2016 and later: Unicode, Inc. and others.
00002 // License & terms of use: http://www.unicode.org/copyright.html
00003 /*
00004 ******************************************************************************
00005 *
00006 *   Copyright (C) 1997-2014, International Business Machines
00007 *   Corporation and others.  All Rights Reserved.
00008 *
00009 ******************************************************************************
00010 *
00011 *  FILE NAME : putil.h
00012 *
00013 *   Date        Name        Description
00014 *   05/14/98    nos         Creation (content moved here from utypes.h).
00015 *   06/17/99    erm         Added IEEE_754
00016 *   07/22/98    stephen     Added IEEEremainder, max, min, trunc
00017 *   08/13/98    stephen     Added isNegativeInfinity, isPositiveInfinity
00018 *   08/24/98    stephen     Added longBitsFromDouble
00019 *   03/02/99    stephen     Removed openFile().  Added AS400 support.
00020 *   04/15/99    stephen     Converted to C
00021 *   11/15/99    helena      Integrated S/390 changes for IEEE support.
00022 *   01/11/00    helena      Added u_getVersion.
00023 ******************************************************************************
00024 */
00025 
00026 #ifndef PUTIL_H
00027 #define PUTIL_H
00028 
00029 #include "unicode/utypes.h"
00035 /*==========================================================================*/
00036 /* Platform utilities                                                       */
00037 /*==========================================================================*/
00038 
00069 U_CAPI const char* U_EXPORT2 u_getDataDirectory(void);
00070 
00071 
00091 U_CAPI void U_EXPORT2 u_setDataDirectory(const char *directory);
00092 
00093 #ifndef U_HIDE_INTERNAL_API
00094 
00102 U_CAPI const char * U_EXPORT2 u_getTimeZoneFilesDirectory(UErrorCode *status);
00103 
00112 U_CAPI void U_EXPORT2 u_setTimeZoneFilesDirectory(const char *path, UErrorCode *status);
00113 #endif  /* U_HIDE_INTERNAL_API */
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_CAPI void U_EXPORT2
00159 u_charsToUChars(const char *cs, UChar *us, int32_t length);
00160 
00180 U_CAPI void U_EXPORT2
00181 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
00182 
00183 #endif