Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the National Language Support (NLS) functions with a description of the purpose of each.

In This Section

CompareString

This function compares two character strings, using the locale specified by the given identifier as the basis for the comparison.

ConvertDefaultLocale

This function converts a special default locale value to an actual locale identifier.

EnumCalendarInfo

This function enumerates the calendar information by calling an application–defined callback function.

EnumCalendarInfoProc

This function is an application–defined callback function.

EnumCodePagesProc

This application-defined callback function is used with the EnumSystemCodePagesfunction.

EnumDateFormats

This function enumerates the long or short date formats that are available for a specified locale, including date formats for any alternate calendars.

EnumDateFormatsProc

This function is an application–defined callback function. It is called because of a call to the EnumDateFormatsfunction, and receives a pointer to a string buffer that contains a date format string.

EnumLocalesProc

This function is an application–defined callback function. It is called because of a call to the EnumSystemLocalesfunction, and receives a pointer to a string buffer that contains a locale identifier.

EnumSystemCodePages

This function enumerates the code pages that are either installed on or supported by a system.

EnumSystemLocales

This function enumerates the locales that are either installed on or supported by a system.

EnumTimeFormats

This function enumerates the time formats that are available for a specified locale.

EnumTimeFormatsProc

This function is an application–defined callback function.

FoldString

This function maps one string to another, performing a specified transformation option.

GetACP

This function retrieves the current ANSI code-page identifier for the system.

GetCPInfo

This function retrieves information about any valid installed or available code page.

GetCurrencyFormat

This function formats a number string as a currency string for a specified locale.

GetDateFormat

This function formats a date as a date string for a specified locale.

GetLocaleInfo

This function retrieves information about a locale.

GetNumberFormat

This function formats a number string as a number string customized for a specified locale.

GetOEMCP

This function retrieves the current OEM code–page identifier for the system.

GetStringTypeW

This function returns character–type information for the characters in the specified source string.

GetStringTypeEx

This function returns character–type information for the characters in the specified source string.

GetSystemDefaultLangID

This function retrieves the system default language identifier.

GetSystemDefaultLCID

This function retrieves the system default locale identifier.

GetTimeFormat

This function formats a time as a time string for a specified locale.

GetUserDefaultLangID

This function retrieves the user-default language identifier.

GetUserDefaultUILanguage

This function retrieves the language identifier (LANGID) for the current user's UI language selection.

IsValidCodePage

This function determines whether a specified code page is valid.

IsValidLocale

This function applies a validity test to a locale identifier.

LCMapString

This function maps one character string to another, performing a specified locale-dependent transformation.

SetLocaleInfo

This function sets an item of locale information.

SetUserDefaultLCID

This function sets the locale identifier (LCID) for the current user's locale selection.

Related Sections

National Language Support (NLS) Reference

Provides an overview of the programming elements available for NLS.