diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-16 22:55:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-16 22:55:07 +0000 |
commit | eb075660e7cb61b138c2da337115c59857f89e17 (patch) | |
tree | 0fe031a8f3562b22f61d0f95b740fe5f2326fd7b /src/auxiliary/functions.h | |
parent | fecc54ad8c5a108831c2bc268f9dd7e16b511b7e (diff) |
network protocol cleanup, radar test (doesn't work)
Diffstat (limited to 'src/auxiliary/functions.h')
-rw-r--r-- | src/auxiliary/functions.h | 5 |
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); |