| 103 | } |
| 104 | |
| 105 | std::string toUpper(const std::string& string) |
| 106 | { |
| 107 | try |
| 108 | { |
| 109 | std::string result = string; |
| 110 | std::transform(string.begin(), string.end(), result.begin(), |
| 111 | [](unsigned char c) { return (unsigned char)std::toupper(c); }); |
| 112 | return result; |
| 113 | } |
| 114 | catch (const std::exception& e) |
| 115 | { |
| 116 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 117 | return ""; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | std::string remove0sFromString(const std::string& string) |
| 122 | { |