Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/auxiliary/functions.h')
-rw-r--r--src/auxiliary/functions.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/auxiliary/functions.h b/src/auxiliary/functions.h
index e8704d4..557ab45 100644
--- a/src/auxiliary/functions.h
+++ b/src/auxiliary/functions.h
@@ -35,7 +35,10 @@ inline bool is_color_code(char const *c) { return (is_base_color_code(c) || is_c
size_t text_length(const std::string &text);
/// prepend spaces to a string up to the desired lenght, excluding color codes
-const std::string spaces(const std::string &text, size_t n);
+const std::string pad_left(const std::string &text, size_t n);
+
+/// append spaces to a string up to the desired lenght, excluding color codes
+const std::string pad_right(const std::string &text, size_t n);
/// convert a string to lowercase
void to_lowercase(std::string &text);