Oracle 8i Data Cartridge Developer's Guide Release 2 (8.1.6) Part Number A76937-01 |
|
Using Cartridge Services, 6 of 9
To support multilingual application, NLS functionality is required for cartridges and callout. NLSRTL is multi-platform and multilingual library current used in RDBMS and provides consistent NLS behavior to all Oracle products.
NLS basic services will provide the following language and cultural sensitive functionality:
An Oracle locale consists of language, territory and character set definitions. The locale determines conventions such as native day and month names; and date, time, number, and currency formats. An internationalized application will obey a user's locale setting and cultural convention. For example, in a German locale setting, users will expect to see day and month names in German spelling etc. The following interface provides a simple way to retrieve local sensitive information.
Two types of data structure are supported for string manipulation: multi-byte string and wide char string. Multi-byte string is in native Oracle character set encoding and functions operated on it take the string as a whole unit. Wide char string function provides more flexibility in string manipulation and supports character-based and string-based operations.
The wide char data type we use here is Oracle specific and not to be confuse with the wchar_t defined by ANSI/ISO C standard. The Oracle wide char is always 4 bytes in all the platform, while wchar_t is implementation/platform dependent. The idea of Oracle wide char is to normalize multibyte character to have a fixed-width for easy processing. Round-trip conversion between Oracle wide char and native character set is guaranteed.
The string manipulation can be classified into the following categories:
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|