| 455 | } |
| 456 | |
| 457 | int Host::LocaleSensitiveCompare(std::string_view lhs, std::string_view rhs) |
| 458 | { |
| 459 | const int res = std::strncmp(lhs.data(), rhs.data(), std::min(lhs.size(), rhs.size())); |
| 460 | if (res != 0) |
| 461 | return res; |
| 462 | return lhs.size() > rhs.size() ? 1 : (lhs.size() < rhs.size() ? -1 : 0); |
| 463 | } |
| 464 | |
| 465 | std::optional<u32> InputManager::ConvertHostKeyboardStringToCode(const std::string_view str) |
| 466 | { |