]> git.tdb.fi Git - libs/core.git/commitdiff
Add a method to set autobase in Fmt
authorMikko Rasa <tdb@tdb.fi>
Wed, 21 Feb 2018 17:29:43 +0000 (19:29 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 21 Feb 2018 17:29:43 +0000 (19:29 +0200)
source/strings/fmt.h

index baf2a76f9b96ae51e7cf7d845193f39fcbc8c9a5..ee84911bcec06fcd0fc34402ef8975133235b3ce 100644 (file)
@@ -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; }