Mercurial > minori
comparison src/core/strings.cpp @ 76:3364fadc8a36
*: format source code
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 04 Oct 2023 01:46:33 -0400 |
| parents | fe719c109dbc |
| children | 6f7385bd334c |
comparison
equal
deleted
inserted
replaced
| 75:d3e9310598b1 | 76:3364fadc8a36 |
|---|---|
| 62 std::string TextifySynopsis(const std::string& string) { | 62 std::string TextifySynopsis(const std::string& string) { |
| 63 return RemoveHtmlTags(SanitizeLineEndings(string)); | 63 return RemoveHtmlTags(SanitizeLineEndings(string)); |
| 64 } | 64 } |
| 65 | 65 |
| 66 /* these functions suck for i18n!... | 66 /* these functions suck for i18n!... |
| 67 but we only use them with JSON | 67 but we only use them with JSON |
| 68 stuff anyway */ | 68 stuff anyway */ |
| 69 std::string ToUpper(const std::string& string) { | 69 std::string ToUpper(const std::string& string) { |
| 70 std::string result(string); | 70 std::string result(string); |
| 71 std::transform(result.begin(), result.end(), result.begin(), [](unsigned char c) { return std::toupper(c); }); | 71 std::transform(result.begin(), result.end(), result.begin(), [](unsigned char c) { return std::toupper(c); }); |
| 72 return result; | 72 return result; |
| 73 } | 73 } |
