12#if !defined(OWL_CODEPAGES_H)
13#define OWL_CODEPAGES_H
16#if defined(BI_HAS_PRAGMA_ONCE)
21#define OWL_SET_OEMCP_(idCodePage) static_cast<bool>(::SetOEMCP(static_cast<UINT>(idCodePage)))
22#define OWL_SET_ANSICP_(idCodePage) static_cast<bool>(::SetACP(static_cast<UINT>(idCodePage)))
24#define OWL_SET_OEMCP_(idCodePage) false
25#define OWL_SET_ANSICP_(idCodePage) false
214 static auto GetInstance() ->
const TCodePages&
231#undef OWL_SET_ANSICP_
Encapsulates Windows code page functionality.
static auto GetIndex(TCodePageId idCodePage) -> int
Searches the code page list for a code page identifier.
static auto SetMultiByteCodePage(TCodePageId idCodePage) -> bool
Sets the multi-byte code page identifier.
std::vector< TCodePage > TCodePageList
static auto SetOemCodePageId(TCodePageId idCodePage) -> bool
Sets the current OEM code page identifier.
static auto SetAnsiCodePageId(TCodePageId idCodePage) -> bool
Sets the current ANSI code page identifier.
static auto GetOemCodePageId() -> TCodePageId
Retrieves the current OEM code page identifier.
static auto GetAnsiCodePageId() -> TCodePageId
Retrieves the current ANSI code page identifier.
static auto GetMultiByteCodePage() -> TCodePageId
Retieves the multi-byte code page identifier.
static auto GetCodePageInfo(TCodePageId idCodePage) -> CPINFO
Retieves a CPINFO structure.
static auto GetCodePageList() -> const TCodePageList &
Retrieves the code page list.
uint TCodePageId
Define the code page, code page object, and container types.
static auto GetCodePageInfoEx(TCodePageId idCodePage) -> CPINFOEX
Retieves a CPINFOEX structure.
#define OWL_SET_OEMCP_(idCodePage)
#define OWL_SET_ANSICP_(idCodePage)
Object Windows Library (OWLNext Core)