Extended API Set, Part 4

Available to download
Reference
C065
This APU set includes the following fundamental interfaces: newlocale(), duplocale(), freelocale(), and uselocale(). It permits individual threads to be in different locales.
Availability

This document has been prepared by The Open Group Base Working Group. Four API sets have been developed and submitted to the Austin Group as input to the revision of the Base Specifications, Issue 6.

This fourth set includes the following fundamental interfaces: newlocale(), duplocale(), freelocale(), and uselocale().

In addition to these, all of the ctype.h character categorization functions gain a new locale object counterpart. For example, as well as isalnum(int c), there is an isalnum_l(int c, locale_t l) interface. The former returns true if the character represented by c is alphanumeric. The new interface returns true if the character is alphanumeric in the locale represented by l.

This set of new APIs permits individual threads to be in different locales.

The major new concept in this set of interfaces is the locale_t object. Applications can create as many locale objects as they require, each one associated with a different locale. Each thread can then choose to use one of these locales, and in doing so does not affect the behavior of any other thread.

More Information
Published 26 Oct 2006
Pages 72
Type Standards
Subject Single UNIX Specification
Standards Information
Common Name Extended API Set, Part 4
Status Adopted
Service Category Operating System Services
Service Kernel Operations
Type The Open Group Standard
Usage This set of new APIs permits individual threads to be in different locales. The major new concept in this set of interfaces is the locale_t object. Applications can create as many locale objects as they require, each one associated with a different locale. Each thread can then choose to use one of these locales, and in doing so does not affect the behavior of any other thread.
Write Your Own Review
Only registered users can write reviews. Please or
© 2023 The Open Group