#include "hycomp.h"
#include "hyport.h"
#include "portpriv.h"
#include "hythread.h"
#include "hynlshelpers.h"
#include "portnls.h"
#include <stdlib.h>
#include <string.h>
Functions | |
void VMCALL | hynls_set_locale (struct HyPortLibrary *portLibrary, const char *lang, const char *region, const char *variant) |
Set the language, region, and variant of the locale. | |
const char *VMCALL | hynls_get_language (struct HyPortLibrary *portLibrary) |
Return the string representing the currently set language. | |
const char *VMCALL | hynls_get_region (struct HyPortLibrary *portLibrary) |
Return the string representing the currently set region. | |
const char *VMCALL | hynls_get_variant (struct HyPortLibrary *portLibrary) |
Return the string representing the currently set variant. | |
void VMCALL | hynls_printf (struct HyPortLibrary *portLibrary, UDATA flags, U_32 module_name, U_32 message_num,...) |
Print a formatted NLS message. | |
void VMCALL | hynls_vprintf (struct HyPortLibrary *portLibrary, UDATA flags, U_32 module_name, U_32 message_num, va_list args) |
Print a formatted NLS message. | |
const char *VMCALL | hynls_lookup_message (struct HyPortLibrary *portLibrary, UDATA flags, U_32 module_name, U_32 message_num, const char *default_string) |
Return the NLS string for the module name and message number. | |
void VMCALL | hynls_set_catalog (struct HyPortLibrary *portLibrary, const char **paths, const int nPaths, const char *baseName, const char *extension) |
Setup the path to the NLS catalog. | |
I_32 VMCALL | hynls_startup (struct HyPortLibrary *portLibrary) |
PortLibrary startup. | |
void VMCALL | hynls_shutdown (struct HyPortLibrary *portLibrary) |
PortLibrary shutdown. |
|
Return the string representing the currently set language.
|
|
Return the string representing the currently set region.
|
|
Return the string representing the currently set variant.
|
|
Return the NLS string for the module name and message number. If no string is found, or a failure occurs, return the default_string.
|
|
Print a formatted NLS message.
|
|
Setup the path to the NLS catalog.
|
|
Set the language, region, and variant of the locale.
|
|
PortLibrary shutdown. This function is called during shutdown of the portLibrary. Any resources that were created by hynls_startup should be destroyed here.
|
|
PortLibrary startup. This function is called during startup of the portLibrary. Any resources that are required for the NLS library operations may be created here. All resources created here should be destroyed in hynls_shutdown.
|
|
Print a formatted NLS message.
|