ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
putil.h
Go to the documentation of this file.
1 /*
2 ******************************************************************************
3 *
4 * Copyright (C) 1997-2009, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 ******************************************************************************
8 *
9 * FILE NAME : putil.h
10 *
11 * Date Name Description
12 * 05/14/98 nos Creation (content moved here from utypes.h).
13 * 06/17/99 erm Added IEEE_754
14 * 07/22/98 stephen Added IEEEremainder, max, min, trunc
15 * 08/13/98 stephen Added isNegativeInfinity, isPositiveInfinity
16 * 08/24/98 stephen Added longBitsFromDouble
17 * 03/02/99 stephen Removed openFile(). Added AS400 support.
18 * 04/15/99 stephen Converted to C
19 * 11/15/99 helena Integrated S/390 changes for IEEE support.
20 * 01/11/00 helena Added u_getVersion.
21 ******************************************************************************
22 */
23 
24 #ifndef PUTIL_H
25 #define PUTIL_H
26 
27 #include "unicode/utypes.h"
35 #ifndef IEEE_754
36 # define IEEE_754 1
37 #endif
38 
39 /*==========================================================================*/
40 /* Platform utilities */
41 /*==========================================================================*/
42 
73 U_STABLE const char* U_EXPORT2 u_getDataDirectory(void);
74 
94 U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
95 
96 #if !U_CHARSET_IS_UTF8
97 
106 #endif
107 
118 
125 #ifdef XP_MAC
126 # define U_FILE_SEP_CHAR ':'
127 # define U_FILE_ALT_SEP_CHAR ':'
128 # define U_PATH_SEP_CHAR ';'
129 # define U_FILE_SEP_STRING ":"
130 # define U_FILE_ALT_SEP_STRING ":"
131 # define U_PATH_SEP_STRING ";"
132 #elif defined(U_WINDOWS)
133 # define U_FILE_SEP_CHAR '\\'
134 # define U_FILE_ALT_SEP_CHAR '/'
135 # define U_PATH_SEP_CHAR ';'
136 # define U_FILE_SEP_STRING "\\"
137 # define U_FILE_ALT_SEP_STRING "/"
138 # define U_PATH_SEP_STRING ";"
139 #else
140 # define U_FILE_SEP_CHAR '/'
141 # define U_FILE_ALT_SEP_CHAR '/'
142 # define U_PATH_SEP_CHAR ':'
143 # define U_FILE_SEP_STRING "/"
144 # define U_FILE_ALT_SEP_STRING "/"
145 # define U_PATH_SEP_STRING ":"
146 #endif
147 
168 U_STABLE void U_EXPORT2
169 u_charsToUChars(const char *cs, UChar *us, int32_t length);
170 
190 U_STABLE void U_EXPORT2
191 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
192 
193 #endif