ucat.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
* Copyright (c) 2003-2004, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Author: Alan Liu
* Created: March 19 2003
* Since: ICU 2.6
**********************************************************************
*/
#ifndef UCAT_H
#define UCAT_H
#include "unicode/utypes.h"
#include "unicode/ures.h"
U_CDECL_BEGIN
typedef UResourceBundle* u_nl_catd;
U_CAPI u_nl_catd U_EXPORT2
u_catopen(const char* name, const char* locale, UErrorCode* ec);
U_CAPI void U_EXPORT2
u_catclose(u_nl_catd catd);
U_CAPI const UChar* U_EXPORT2
u_catgets(u_nl_catd catd, int32_t set_num, int32_t msg_num,
const UChar* s,
int32_t* len, UErrorCode* ec);
U_CDECL_END
#endif /*UCAT_H*/
/*eof*/
u_catclose
U_CAPI void u_catclose(u_nl_catd catd)
Close an ICU message catalog, given its descriptor.
u_catopen
U_CAPI u_nl_catd u_catopen(const char *name, const char *locale, UErrorCode *ec)
Open and return an ICU message catalog descriptor.
u_catgets
U_CAPI 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.
u_nl_catd
UResourceBundle * u_nl_catd
An ICU message catalog descriptor, analogous to nl_catd.
Definition: ucat.h:73
U_CDECL_END
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
Definition: umachine.h:86
U_CAPI
#define U_CAPI
This is used to declare a function as a public ICU C API.
Definition: umachine.h:110
UChar
char16_t UChar
The base type for UTF-16 code units and pointers.
Definition: umachine.h:386
U_CDECL_BEGIN
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
Definition: umachine.h:85
ures.h
C API: Resource Bundle.
UResourceBundle
struct UResourceBundle UResourceBundle
Definition: ures.h:63
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition: utypes.h:415