| 137 | } |
| 138 | |
| 139 | std::string DebugPrint(StringUtf8Multilang const & s) |
| 140 | { |
| 141 | std::string result; |
| 142 | |
| 143 | bool isFirst = true; |
| 144 | s.ForEach([&result, &isFirst](int8_t code, std::string_view name) |
| 145 | { |
| 146 | if (isFirst) |
| 147 | isFirst = false; |
| 148 | else |
| 149 | result += ' '; |
| 150 | |
| 151 | result.append(localisation::ConvertLanguageIndexToLanguageCode(code)).append(":").append(name); |
| 152 | }); |
| 153 | |
| 154 | return result; |
| 155 | } |
| 156 | |
| 157 | StringUtf8Multilang StringUtf8Multilang::FromBuffer(std::string && s) |
| 158 | { |
nothing calls this directly
no test coverage detected