Format a number with separators per locale */
| 88 | Format a number with separators per locale |
| 89 | */ |
| 90 | std::string StringUtils::formatNumber(u64 number) { |
| 91 | std::string out = std::to_string(number); |
| 92 | for (int i = out.size() - 3; i > 0; i -= 3) { |
| 93 | out.insert(i, Lang::get("THOUSAND_SEPARATOR")); |
| 94 | } |
| 95 | |
| 96 | return out; |
| 97 | } |
| 98 | |
| 99 | /* |
| 100 | Return a vector of all marks. |