diff options
Diffstat (limited to 'src/tests/fastcgi.cpp')
-rw-r--r-- | src/tests/fastcgi.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/fastcgi.cpp b/src/tests/fastcgi.cpp index 7ca4ebc..7447a6f 100644 --- a/src/tests/fastcgi.cpp +++ b/src/tests/fastcgi.cpp | |||
@@ -43,17 +43,17 @@ public: | |||
43 | sOut += getcwd( buf, 2048 ); | 43 | sOut += getcwd( buf, 2048 ); |
44 | sOut += "</li></ul>"; | 44 | sOut += "</li></ul>"; |
45 | sOut += "<h1>Stdin:</h1>"; | 45 | sOut += "<h1>Stdin:</h1>"; |
46 | sOut.formatAppend("%d bytes<pre>", sStdIn.getSize() ); | 46 | sOut += Bu::String("%1 bytes<pre>").arg( sStdIn.getSize() ); |
47 | Bu::String sL, sR; | 47 | Bu::String sL, sR; |
48 | for( Bu::String::const_iterator i = sStdIn.begin(); | 48 | for( Bu::String::const_iterator i = sStdIn.begin(); |
49 | i; i++ ) | 49 | i; i++ ) |
50 | { | 50 | { |
51 | sL.formatAppend("%02X ", | 51 | sL += Bu::String("%1").arg( |
52 | (unsigned int)((unsigned char)*i) ); | 52 | (unsigned int)((unsigned char)*i), Bu::Fmt::hex().width(2).fill('0') ); |
53 | if( *i < 27 ) | 53 | if( *i < 27 ) |
54 | sR += ". "; | 54 | sR += ". "; |
55 | else | 55 | else |
56 | sR.formatAppend("&#%d; ", | 56 | sR += Bu::String("&#%1; ").arg( |
57 | (unsigned int)((unsigned char)*i) ); | 57 | (unsigned int)((unsigned char)*i) ); |
58 | if( sL.getSize()/3 == 8 ) | 58 | if( sL.getSize()/3 == 8 ) |
59 | { | 59 | { |