OpenTTD Source
20241121-master-g67a0fccfad
|
declarations of functions for MS windows systems More...
Go to the source code of this file.
Functions | |
bool | MyShowCursor (bool show, bool toggle=false) |
char * | convert_from_fs (const std::wstring_view src, std::span< char > dst_buf) |
Convert to OpenTTD's encoding from that of the environment in UNICODE. More... | |
wchar_t * | convert_to_fs (const std::string_view src, std::span< wchar_t > dst_buf) |
Convert from OpenTTD's encoding to that of the environment in UNICODE. More... | |
void | Win32SetCurrentLocaleName (const char *iso_code) |
int | OTTDStringCompare (std::string_view s1, std::string_view s2) |
int | Win32StringContains (const std::string_view str, const std::string_view value, bool case_insensitive) |
Search if a string is contained in another string using the current locale. More... | |
declarations of functions for MS windows systems
Definition in file win32.h.
char* convert_from_fs | ( | const std::wstring_view | src, |
std::span< char > | dst_buf | ||
) |
Convert to OpenTTD's encoding from that of the environment in UNICODE.
OpenTTD encoding is UTF8, local is wide.
src | wide string that will be converted |
dst_buf | span of valid char buffer that will receive the converted string |
wchar_t* convert_to_fs | ( | const std::string_view | src, |
std::span< wchar_t > | dst_buf | ||
) |
Convert from OpenTTD's encoding to that of the environment in UNICODE.
OpenTTD encoding is UTF8, local is wide.
src | string that will be converted |
dst_buf | span of valid wide-char buffer that will receive the converted string |
Definition at line 389 of file win32.cpp.
Referenced by HFontFromFont().
int Win32StringContains | ( | const std::string_view | str, |
const std::string_view | value, | ||
bool | case_insensitive | ||
) |
Search if a string is contained in another string using the current locale.
str | String to search in. |
value | String to search for. |
case_insensitive | Search case-insensitive. |
Definition at line 479 of file win32.cpp.
References LibraryLoader::GetFunction().
Referenced by StrNaturalContains(), and StrNaturalContainsIgnoreCase().