### Locale-Sensitive Interfaces

The IBM C and C++ Compilers library provide many interfaces to manipulate and access locales. You can use these interfaces to write internationalized C programs. The C locale support will also work for C`++` programs.

This list summarizes all the IBM C and C++ Compilers library functions which affect or are affected by the current locale.

Selecting locale
  Changing the characteristics of the user's cultural environment by changing the current locale: `setlocale`
Querying locale
  Retrieving the locale information that characterizes the user's cultural environment:
  Monetary and numeric formatting conventions:
    `localeconv`
  Date and time formatting conventions:
    `localdtconv`
  User-specified information:
    `nl_langinfo`
  Encoding of the variant part of the portable character set:
    `getsyntx`
  Character set identifier:
    `csid`, `wcsid`
  Code page and coded character set identifiers
    `ccsidtocs``,` `cstoccsid`
Classification of characters:
  Single-byte characters:
    isalnum, isalpha, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit
  Wide characters:
    iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype, iswctype
Character case mapping:
  Single-byte characters:
    tolower, toupper
  Wide characters:
    towlower, towupper, wctrans, towctrans
Multibyte character and multibyte string conversion:
  btowc, mblen, mbrlen, mbtowc, mbrtowc, wctomb, wcrtomb, mbstowcs, mbsrtowcs, wcstombs, wcsrtombs, mbsinit, wctob
String conversions to arithmetic:
  strtod, wcstod, strtol, wcstol, strtoul, wcstoul, atof, atoi, atol , strtoll, wcstoull, strtoull
String collating:
  strcoll, strxfrm, wcscoll, wcsxfrm
Character display width:
  wcswidth, wcwidth
Date, time, and monetary formatting:
  strftime, strptime, wcsftime, mktime, ctime, gmtime, localtime, strfmon
Formatted input/output:
  printf (and family of functions), scanf (and family of functions), wprintf (and family of functions), wscanf (and family of functions), vwprintf, vswprintf, swscanf
Processing regular expressions:
  regcomp, regexec
Wide character unformatted input/output:
  fgetwc, fgetws, fputwc, fputws, getwc, getwchar, putwc, putwchar, ungetwc, fwide
Response matching:
  rpmatch

Internationalization
Localization and Locales

Make Your Program International

Locale Categories