putil.h

Go to the documentation of this file.
00001 /*
00002 ******************************************************************************
00003 *
00004 *   Copyright (C) 1997-2005, International Business Machines
00005 *   Corporation and others.  All Rights Reserved.
00006 *
00007 ******************************************************************************
00008 *
00009 *  FILE NAME : putil.h
00010 *
00011 *   Date        Name        Description
00012 *   05/14/98    nos         Creation (content moved here from utypes.h).
00013 *   06/17/99    erm         Added IEEE_754
00014 *   07/22/98    stephen     Added IEEEremainder, max, min, trunc
00015 *   08/13/98    stephen     Added isNegativeInfinity, isPositiveInfinity
00016 *   08/24/98    stephen     Added longBitsFromDouble
00017 *   03/02/99    stephen     Removed openFile().  Added AS400 support.
00018 *   04/15/99    stephen     Converted to C
00019 *   11/15/99    helena      Integrated S/390 changes for IEEE support.
00020 *   01/11/00    helena      Added u_getVersion.
00021 ******************************************************************************
00022 */
00023 
00024 #ifndef PUTIL_H
00025 #define PUTIL_H
00026 
00027 #include "unicode/utypes.h"
00033 /* Define this to 1 if your platform supports IEEE 754 floating point,
00034    to 0 if it does not. */
00035 #ifndef IEEE_754
00036 #   define IEEE_754 1
00037 #endif
00038 
00039 /*==========================================================================*/
00040 /* Platform utilities                                                       */
00041 /*==========================================================================*/
00042 
00069 U_STABLE const char* U_EXPORT2 u_getDataDirectory(void);
00070 
00090 U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
00091 
00100 U_INTERNAL const char*  U_EXPORT2 uprv_getDefaultCodepage(void);
00101 
00111 U_INTERNAL const char*  U_EXPORT2 uprv_getDefaultLocaleID(void);
00112 
00118 #ifdef XP_MAC
00119 #   define U_FILE_SEP_CHAR ':'
00120 #   define U_FILE_ALT_SEP_CHAR ':'
00121 #   define U_PATH_SEP_CHAR ';'
00122 #   define U_FILE_SEP_STRING ":"
00123 #   define U_FILE_ALT_SEP_STRING ":"
00124 #   define U_PATH_SEP_STRING ";"
00125 #elif defined(U_WINDOWS)
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 #else
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 #endif
00140 
00159 U_STABLE void U_EXPORT2
00160 u_charsToUChars(const char *cs, UChar *us, int32_t length);
00161 
00181 U_STABLE void U_EXPORT2
00182 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
00183 
00184 #endif

Generated on Mon Aug 13 07:17:24 2007 for ICU 3.6 by  doxygen 1.5.2