From af175d2e7e8b32f5519aac6992ba337aaaff6361 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 19 May 2020 17:16:37 +1000 Subject: Output debug memory stats in a nice table --- src/string_utils.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/string_utils.hh') 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 String join(const Container& container, char joiner, bool esc_joiner = true) { -- cgit v1.2.3