diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2023-08-19 17:13:01 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2023-08-19 20:04:50 +0300 |
| commit | 15f08488d36f12a0ffd3d9f641a393b0e4200afe (patch) | |
| tree | aac1ebcd7955ca42746141b25683a084c077a443 /lib/utils/mu-utils.hh | |
| parent | ce397f3c251cd214ab54a3c68bca45df82b96a60 (diff) | |
remove Mu::format, use mu_format
Use the new fmt-based formatting.
Diffstat (limited to 'lib/utils/mu-utils.hh')
| -rw-r--r-- | lib/utils/mu-utils.hh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/utils/mu-utils.hh b/lib/utils/mu-utils.hh index c16c0db..0854c59 100644 --- a/lib/utils/mu-utils.hh +++ b/lib/utils/mu-utils.hh @@ -34,7 +34,6 @@ #include <algorithm> #include <numeric> -#include "mu-utils-format.hh" #include "mu-option.hh" @@ -375,6 +374,17 @@ std::string size_to_string(int64_t size); */ std::string summarize(const std::string& str, size_t max_lines); + +/** + * Quote & escape a string for " and \ + * + * @param str a string + * + * @return quoted string + */ +std::string quote(const std::string& str); + + /** * Convert any ostreamable<< value to a string * |
