diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-09-10 20:27:39 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-09-10 20:27:39 +0000 |
commit | 46542b4d64565fcf46a4d92f63e1bcd4e4b9ccd8 (patch) | |
tree | 7e6267ade384d860a7689355126e58f1f1c0b442 /src/stable/formatter.cpp | |
parent | 17829dc5722c5811912dd7dc8806d79cf562893a (diff) | |
download | libbu++-46542b4d64565fcf46a4d92f63e1bcd4e4b9ccd8.tar.gz libbu++-46542b4d64565fcf46a4d92f63e1bcd4e4b9ccd8.tar.bz2 libbu++-46542b4d64565fcf46a4d92f63e1bcd4e4b9ccd8.tar.xz libbu++-46542b4d64565fcf46a4d92f63e1bcd4e4b9ccd8.zip |
Changed Fmt to use lower case by default and added more helpers.
Diffstat (limited to 'src/stable/formatter.cpp')
-rw-r--r-- | src/stable/formatter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/stable/formatter.cpp b/src/stable/formatter.cpp index 2f3c382..a04f7a6 100644 --- a/src/stable/formatter.cpp +++ b/src/stable/formatter.cpp | |||
@@ -294,6 +294,18 @@ Bu::Fmt &Bu::Fmt::caps( bool bCaps ) | |||
294 | return *this; | 294 | return *this; |
295 | } | 295 | } |
296 | 296 | ||
297 | Bu::Fmt &Bu::Fmt::upper() | ||
298 | { | ||
299 | this->bCaps = true; | ||
300 | return *this; | ||
301 | } | ||
302 | |||
303 | Bu::Fmt &Bu::Fmt::lower() | ||
304 | { | ||
305 | this->bCaps = false; | ||
306 | return *this; | ||
307 | } | ||
308 | |||
297 | Bu::Fmt &Bu::Fmt::tokenize( bool bTokenize ) | 309 | Bu::Fmt &Bu::Fmt::tokenize( bool bTokenize ) |
298 | { | 310 | { |
299 | this->bTokenize = bTokenize; | 311 | this->bTokenize = bTokenize; |