summaryrefslogtreecommitdiff
path: root/src/string_utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-05-19 17:16:37 +1000
committerMaxime Coste <mawww@kakoune.org>2020-05-19 17:16:37 +1000
commitaf175d2e7e8b32f5519aac6992ba337aaaff6361 (patch)
treea362cb5465914915b786edf0c7550f2a0b508b09 /src/string_utils.hh
parent5933ab1e780f8f2a51f6580e6fad249beea31698 (diff)
Output debug memory stats in a nice table
Diffstat (limited to 'src/string_utils.hh')
-rw-r--r--src/string_utils.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/string_utils.hh b/src/string_utils.hh
index 6f78b674..4da7ddc3 100644
--- a/src/string_utils.hh
+++ b/src/string_utils.hh
@@ -26,6 +26,9 @@ String indent(StringView str, StringView indent = " ");
String replace(StringView str, StringView substr, StringView replacement);
+String left_pad(StringView str, ColumnCount size, Codepoint c = ' ');
+String right_pad(StringView str, ColumnCount size, Codepoint c = ' ');
+
template<typename Container>
String join(const Container& container, char joiner, bool esc_joiner = true)
{