ICU 50.2 50.2
putil.h
Go to the documentation of this file.
1/*
2******************************************************************************
3*
4* Copyright (C) 1997-2011, 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"
32
33/*==========================================================================*/
34/* Platform utilities */
35/*==========================================================================*/
36
42
67U_STABLE const char* U_EXPORT2 u_getDataDirectory(void);
68
88U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
89
96#if U_PLATFORM == U_PF_CLASSIC_MACOS
97# define U_FILE_SEP_CHAR ':'
98# define U_FILE_ALT_SEP_CHAR ':'
99# define U_PATH_SEP_CHAR ';'
100# define U_FILE_SEP_STRING ":"
101# define U_FILE_ALT_SEP_STRING ":"
102# define U_PATH_SEP_STRING ";"
103#elif U_PLATFORM_USES_ONLY_WIN32_API
104# define U_FILE_SEP_CHAR '\\'
105# define U_FILE_ALT_SEP_CHAR '/'
106# define U_PATH_SEP_CHAR ';'
107# define U_FILE_SEP_STRING "\\"
108# define U_FILE_ALT_SEP_STRING "/"
109# define U_PATH_SEP_STRING ";"
110#else
111# define U_FILE_SEP_CHAR '/'
112# define U_FILE_ALT_SEP_CHAR '/'
113# define U_PATH_SEP_CHAR ':'
114# define U_FILE_SEP_STRING "/"
115# define U_FILE_ALT_SEP_STRING "/"
116# define U_PATH_SEP_STRING ":"
117#endif
118
120
139U_STABLE void U_EXPORT2
140u_charsToUChars(const char *cs, UChar *us, int32_t length);
141
161U_STABLE void U_EXPORT2
162u_UCharsToChars(const UChar *us, char *cs, int32_t length);
163
164#endif
void u_UCharsToChars(const UChar *us, char *cs, int32_t length)
Convert UChar characters to char characters.
void u_setDataDirectory(const char *directory)
Set the ICU data directory.
void u_charsToUChars(const char *cs, UChar *us, int32_t length)
Convert char characters to UChar characters.
const char * u_getDataDirectory(void)
Platform utilities isolates the platform dependencies of the libarary.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
Definition umachine.h:278
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition umachine.h:109
Basic definitions for ICU, for both C and C++ APIs.