aboutsummaryrefslogtreecommitdiff
path: root/libbutl/utility.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/utility.hxx')
-rw-r--r--libbutl/utility.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/libbutl/utility.hxx b/libbutl/utility.hxx
index 49b61b3..95a7f78 100644
--- a/libbutl/utility.hxx
+++ b/libbutl/utility.hxx
@@ -146,12 +146,30 @@ namespace butl
LIBBUTL_SYMEXPORT std::string&
trim (std::string&);
+ LIBBUTL_SYMEXPORT std::string&
+ trim_left (std::string&);
+
+ LIBBUTL_SYMEXPORT std::string&
+ trim_right (std::string&);
+
inline std::string
trim (std::string&& s)
{
return move (trim (s));
}
+ inline std::string
+ trim_left (std::string&& s)
+ {
+ return move (trim_left (s));
+ }
+
+ inline std::string
+ trim_right (std::string&& s)
+ {
+ return move (trim_right (s));
+ }
+
// Find the beginning and end poistions of the next word. Return the size
// of the word or 0 and set b = e = n if there are no more words. For
// example: