Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Common Desktop Environment: Internationalization Programmer's Guide > Chapter 2 Internationalization and the Common Desktop Environment

Operating System Internationalized Functions

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

Table 2-10 “Base Operating System Internationalized Functions” lists the base operating system internationalized functions in a common open software environment.

Applications should perform proper locale management with the assumption that a locale may have from 1 to 4 bytes per coded character.

Table 2-10 Base Operating System Internationalized Functions

Locale Management

Single-byte

Multibyte

Wide Character

Convert mb <-> wc

 

mbtowc

mbstowcs

wctomb

wcstombs

Classification

isalpha

is*

 

isalpha

isw*

wctype

Case Mapping

tolower

toupper

 

towlower

towupper

Format Miscellaneous

 

localeconv

nl_langinfo

 

Format of Numeric

 

strtol

strtod

wcstol

wcstod

wcstoi

Format Time/Monetary

 

strftime

strptime

strfmon

wcsftime

String Copy

 

strcat

strcpy

strncat

strncpy

wcscat

wcsncat

wcscpy

wcsncpy

String Collate

 

strcoll

wcscoll

wcsxfrm

String Misc

strlen

mblen

wcscmp

wcsncmp

String Search

strchr

strcspn

strpbrk

strrchr

strspn

strtok

 

wcschr

wcscspn

wcspbrk

wcsrchr

wcsspn

wcstok

wcswcs

wcscspn

I/O Display Width

  

wcwidth[1]

wcswidth

I/O Printf

 

printf

vprintf

sprintf

vsprint

fprintf

vfprint

printf

vprintf

sprintf

vsprint

frpintf

vfprint

I/O Scan

 

scanf

sscanf

fscanf

scanf

sscanf

fscanf

I/O Character

getc

gets

putc

puts

 

fgetwc

fgetws

fputwc

fputws

ungetwc

Message

 

gettxt

catopen

catgets

catclose

 

Convert Codeset

 

iconv_open

iconv

iconv_close

 

[1] These functions are provided for applications using terminals. Graphical user interface (GUI) applications should not use these functions; instead, they should use font metric functions listed in “Simple Text” to determine spacing.

 

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.