]> git.tdb.fi Git - libs/core.git/blobdiff - source/strings/fmt.h
Add a method to set autobase in Fmt
[libs/core.git] / 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; }