ICU 4.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ucat.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (c) 2003-2004, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Author: Alan Liu
7 * Created: March 19 2003
8 * Since: ICU 2.6
9 **********************************************************************
10 */
11 #ifndef UCAT_H
12 #define UCAT_H
13 
14 #include "unicode/utypes.h"
15 #include "unicode/ures.h"
16 
65 
72 
105 u_catopen(const char* name, const char* locale, UErrorCode* ec);
106 
115 U_STABLE void U_EXPORT2
116 u_catclose(u_nl_catd catd);
117 
150 U_STABLE const UChar* U_EXPORT2
151 u_catgets(u_nl_catd catd, int32_t set_num, int32_t msg_num,
152  const UChar* s,
153  int32_t* len, UErrorCode* ec);
154 
156 
157 #endif /*UCAT_H*/
158 /*eof*/
void u_catclose(u_nl_catd catd)
Close an ICU message catalog, given its descriptor.
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
Definition: umachine.h:101
#define U_EXPORT2
Definition: platform.h:338
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
Definition: umachine.h:299
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
Definition: umachine.h:102
UResourceBundle * u_nl_catd
An ICU message catalog descriptor, analogous to nl_catd.
Definition: ucat.h:71
u_nl_catd u_catopen(const char *name, const char *locale, UErrorCode *ec)
Open and return an ICU message catalog descriptor.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:593
const UChar * u_catgets(u_nl_catd catd, int32_t set_num, int32_t msg_num, const UChar *s, int32_t *len, UErrorCode *ec)
Retrieve a localized string from an ICU message catalog.
Basic definitions for ICU, for both C and C++ APIs.
struct UResourceBundle UResourceBundle
Definition: ures.h:56
signed int int32_t
Define 64 bit limits.
Definition: pwin32.h:143
C API: Resource Bundle.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:117