10hi_export_module(hikogui.win32.winnls);
12namespace hi {
inline namespace v1 {
14hi_export [[
nodiscard]]
inline std::expected<std::string, win32_error> win32_GetUserDefaultLocaleName()
noexcept
16 auto code = win32_error{};
23 code = win32_GetLastError();
28 if (
static_cast<bool>(code)) {
Rules for working with win32 headers.
@ code
Text is a piece of programming-code; a variable name, a function name.
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
hi_export std::expected< std::string, win32_error > win32_WideCharToMultiByte(std::wstring_view s, unsigned int code_page=CP_UTF8, uint32_t flags=0) noexcept
Convert a win32-API compatible std::wstring to a multi-byte std::string.
Definition base.hpp:73
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377