| 8 | BEGIN_SE() |
| 9 | |
| 10 | TranslatedString TranslatedString::FromString(StringView const& sv) |
| 11 | { |
| 12 | TranslatedString ts; |
| 13 | auto sep = sv.find_first_of(';'); |
| 14 | if (sep != STDString::npos) { |
| 15 | ts.Handle.Handle = FixedString(sv.substr(0, sep)); |
| 16 | ts.Handle.Version = (uint16_t)atoi(sv.substr(sep + 1).data()); |
| 17 | } else { |
| 18 | ts.Handle.Handle = FixedString(sv); |
| 19 | } |
| 20 | return ts; |
| 21 | } |
| 22 | |
| 23 | std::optional<StringView> TranslatedString::Get() const |
| 24 | { |
nothing calls this directly
no test coverage detected