wchar_t * convert_to_fs(const std::string_view name, wchar_t *utf16_buf, size_t buflen)
Convert from OpenTTD's encoding to that of the environment in UNICODE.
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.
char * convert_from_fs(const wchar_t *name, char *utf8_buf, size_t buflen)
Convert to OpenTTD's encoding from that of the environment in UNICODE.