| 12 text = text.arg( it->value() ); |
12 text = text.arg( it->value() ); |
| 13 |
13 |
| 14 return text; |
14 return text; |
| 15 } |
15 } |
| 16 |
16 |
| 17 void doPrint( initlist<StringFormatArg> args ) { |
17 void doPrint( FILE* fp, initlist<StringFormatArg> args ) { |
| 18 printf( "%s", doFormat( args ).toStdString().c_str() ); |
18 fprintf( fp, "%s", doFormat( args ).toStdString().c_str() ); |
| 19 } |
19 } |
| 20 |
20 |
| 21 // ============================================================================= |
21 // ============================================================================= |
| 22 StringFormatArg::StringFormatArg( const str& v ) { m_val = v; } |
22 StringFormatArg::StringFormatArg( const str& v ) { m_val = v; } |
| 23 StringFormatArg::StringFormatArg( const char& v ) { m_val = v; } |
23 StringFormatArg::StringFormatArg( const char& v ) { m_val = v; } |