summaryrefslogtreecommitdiff
path: root/src/string_utils.hh
diff options
context:
space:
mode:
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)
{