Difference between revisions of "Unit Locale"
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
---- | ---- | ||
− | |||
This unit implements the locale support for Ultibo and provides the code page support for the WideStringManager/UnicodeStringManager interface for the RTL. | This unit implements the locale support for Ultibo and provides the code page support for the WideStringManager/UnicodeStringManager interface for the RTL. | ||
− | |||
This unit provides compatible implementations of the following functions: | This unit provides compatible implementations of the following functions: | ||
Line 43: | Line 41: | ||
* SetConsoleOutputCP | * SetConsoleOutputCP | ||
</div> | </div> | ||
− | |||
The following functions are implemented by the Threads unit: | The following functions are implemented by the Threads unit: | ||
Line 53: | Line 50: | ||
Most of the above are currently not implemented. | Most of the above are currently not implemented. | ||
− | |||
OEM Code Page defaults to 437 (OEM United States) | OEM Code Page defaults to 437 (OEM United States) | ||
ANSI Code Page defaults to 1252 (ANSI Latin 1; Western European (Windows)) | ANSI Code Page defaults to 1252 (ANSI Latin 1; Western European (Windows)) | ||
− | |||
See also: https://msdn.microsoft.com/en-us/library/windows/desktop/dd319081%28v=vs.85%29.aspx | See also: https://msdn.microsoft.com/en-us/library/windows/desktop/dd319081%28v=vs.85%29.aspx |
Revision as of 05:19, 2 September 2016
Return to Unit Reference
Description
This unit implements the locale support for Ultibo and provides the code page support for the WideStringManager/UnicodeStringManager interface for the RTL.
This unit provides compatible implementations of the following functions:
- ConvertDefaultLocale
- EnumCodePagesProc
- EnumLocalesProc
- EnumTimeFormats
- GetCPInfo
- GetNumberFormat
- GetSystemDefaultLangID
- GetUserDefaultLangID
- IsValidLocale
- GetConsoleOutputCP
- EnumCalendarInfo
- EnumDateFormats
- EnumSystemCodePages
- EnumTimeFormatsProc
- GetCurrencyFormat
- GetLocaleInfo
- GetSystemDefaultLCID
- GetUserDefaultLCID
- SetLocaleInfo
- SetConsoleCP
- EnumCalendarInfoProc
- EnumDateFormatsProc
- EnumSystemLocales
- GetACP
- GetDateFormat
- GetOEMCP
- GetTimeFormat
- IsValidCodePage
- GetConsoleCP
- SetConsoleOutputCP
The following functions are implemented by the Threads unit:
- GetThreadLocale (ThreadGetLocale) (GetThreadLocale is exposed in the Ultibo unit)
- SetThreadLocale (ThreadSetLocale) (SetThreadLocale is exposed in the Ultibo unit)
Most of the above are currently not implemented.
OEM Code Page defaults to 437 (OEM United States)
ANSI Code Page defaults to 1252 (ANSI Latin 1; Western European (Windows))
See also: https://msdn.microsoft.com/en-us/library/windows/desktop/dd319081%28v=vs.85%29.aspx
Constants
To be documented
Type definitions
To be documented
Public variables
To be documented
Function declarations
Initialization functions
procedure LocaleInit;
Note | To be documented |
---|
Locale functions
function IsValidCodePage(CodePage:UINT):BOOL;
Note | To be documented |
---|
function GetACP:UINT;
Note | To be documented |
---|
function GetOEMCP:UINT;
Note | To be documented |
---|
function SetACP(CodePage:UINT):BOOL;
Note | To be documented |
---|
function SetOEMCP(CodePage:UINT):BOOL;
Note | To be documented |
---|
function GetConsoleCP:UINT;
Note | To be documented |
---|
function SetConsoleCP(wCodePageID:UINT):BOOL;
Note | To be documented |
---|
function GetConsoleOutputCP:UINT;
Note | To be documented |
---|
function SetConsoleOutputCP(wCodePageID:UINT):BOOL;
Note | To be documented |
---|
function GetCPInfo(CodePage:UINT; var lpCPInfo:TCPInfo):BOOL;
Note | To be documented |
---|
function GetCPInfoEx(CodePage:UINT; dwFlags:DWORD; var lpCPInfoEx:CPINFOEXA):BOOL;
Note | To be documented |
---|
function GetCPInfoExA(CodePage:UINT; dwFlags:DWORD; var lpCPInfoEx:CPINFOEXA):BOOL;
Note | To be documented |
---|
function GetCPInfoExW(CodePage:UINT; dwFlags:DWORD; var lpCPInfoEx:CPINFOEXW):BOOL;
Note | To be documented |
---|
function IsValidLocale(Locale:LCID; dwFlags:DWORD):BOOL;
Note | To be documented |
---|
function GetSystemDefaultLCID:LCID;
Note | To be documented |
---|
function GetUserDefaultLCID:LCID;
Note | To be documented |
---|
function SetSystemDefaultLCID(Locale:LCID):BOOL;
Note | To be documented |
---|
RTL unicode string manager functions
function SysGetStandardCodePage(const stdcp:TStandardCodePageEnum):TSystemCodePage;
Note | To be documented |
---|
Locale helper functions
function MapPage(CodePage:UINT):Word;
Note | To be documented |
---|
function GetPage(PageID:Word):PCodePage;
Note | To be documented |
---|
function CheckPage(Page:PCodePage):Boolean;
Note | To be documented |
---|
function LinkPage(Page:PCodePage):Boolean;
Note | To be documented |
---|
function UnlinkPage(Page:PCodePage):Boolean;
Note | To be documented |
---|
function LoadPage(PageID:Word; Table:PCodeTable; Lower:PLowerTable; Upper:PUpperTable):Boolean;
Note | To be documented |
---|
function UnloadPage(PageID:Word; Page:PCodePage):Boolean;
Note | To be documented |
---|
function DefaultTrans(PageID,TransID:Word):Boolean;
Note | To be documented |
---|
function InstallTrans(PageID:Word; Table:PTransTable):Boolean;
Note | To be documented |
---|
Return to Unit Reference