aboutsummaryrefslogtreecommitdiff
path: root/src/formatter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/formatter.h')
-rw-r--r--src/formatter.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/formatter.h b/src/formatter.h
index 47592ad..7e0c54b 100644
--- a/src/formatter.h
+++ b/src/formatter.h
@@ -32,7 +32,8 @@ namespace Bu
32 uRadix( 10 ), 32 uRadix( 10 ),
33 uAlign( Right ), 33 uAlign( Right ),
34 bPlus( false ), 34 bPlus( false ),
35 bCaps( true ) 35 bCaps( true ),
36 bTokenize( true )
36 { 37 {
37 } 38 }
38 39
@@ -44,7 +45,8 @@ namespace Bu
44 uRadix( uRadix ), 45 uRadix( uRadix ),
45 uAlign( a ), 46 uAlign( a ),
46 bPlus( bPlus ), 47 bPlus( bPlus ),
47 bCaps( bCaps ) 48 bCaps( bCaps ),
49 bTokenize( true )
48 { 50 {
49 } 51 }
50 Fmt( unsigned int uMinWidth, Alignment a, 52 Fmt( unsigned int uMinWidth, Alignment a,
@@ -55,7 +57,8 @@ namespace Bu
55 uRadix( uRadix ), 57 uRadix( uRadix ),
56 uAlign( a ), 58 uAlign( a ),
57 bPlus( bPlus ), 59 bPlus( bPlus ),
58 bCaps( bCaps ) 60 bCaps( bCaps ),
61 bTokenize( true )
59 { 62 {
60 } 63 }
61 64
@@ -85,6 +88,7 @@ namespace Bu
85 Fmt &align( Alignment eAlign ); 88 Fmt &align( Alignment eAlign );
86 Fmt &plus( bool bPlus=true ); 89 Fmt &plus( bool bPlus=true );
87 Fmt &caps( bool bCaps=true ); 90 Fmt &caps( bool bCaps=true );
91 Fmt &tokenize( bool bTokenize=true );
88 92
89 Fmt &left(); 93 Fmt &left();
90 Fmt &right(); 94 Fmt &right();
@@ -96,6 +100,7 @@ namespace Bu
96 unsigned short uAlign : 2; 100 unsigned short uAlign : 2;
97 unsigned short bPlus : 1; 101 unsigned short bPlus : 1;
98 unsigned short bCaps : 1; 102 unsigned short bCaps : 1;
103 unsigned short bTokenize : 1;
99 } Fmt; 104 } Fmt;
100 105
101 void write( const Bu::FString &sStr ); 106 void write( const Bu::FString &sStr );