From: Mikko Rasa Date: Wed, 21 Feb 2018 17:29:43 +0000 (+0200) Subject: Add a method to set autobase in Fmt X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=71be32fe7248a7d2df7dea4e18c5ebd30fd73d4b Add a method to set autobase in Fmt --- diff --git a/source/strings/fmt.h b/source/strings/fmt.h index baf2a76..ee84911 100644 --- a/source/strings/fmt.h +++ b/source/strings/fmt.h @@ -103,6 +103,7 @@ public: Fmt &hex() { base = HEX; return *this; } Fmt &oct() { base = OCT; return *this; } Fmt &bin() { base = BIN; return *this; } + Fmt &autobase() { base = AUTOBASE; return *this; } Fmt &uppercase(bool u = true) { ucase = u; return *this; } Fmt &numeric() { type = NUM; return *this; } Fmt &character() { type = CHAR; return *this; }