aboutsummaryrefslogtreecommitdiff
path: root/src/tests/fastcgi.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-03-19 18:28:10 +0000
committerMike Buland <eichlan@xagasoft.com>2011-03-19 18:28:10 +0000
commitd223fcaba3660e8c4d61c9136311064898e23ae9 (patch)
tree58ac992b15667d814ddfd502640a54a1209e241e /src/tests/fastcgi.cpp
parentcba6293cf22e2c2ae17dd3954ad7d097f379c7ac (diff)
downloadlibbu++-d223fcaba3660e8c4d61c9136311064898e23ae9.tar.gz
libbu++-d223fcaba3660e8c4d61c9136311064898e23ae9.tar.bz2
libbu++-d223fcaba3660e8c4d61c9136311064898e23ae9.tar.xz
libbu++-d223fcaba3660e8c4d61c9136311064898e23ae9.zip
The rest of libbu++ is corrected as far as the now Bu::String toUpper/toLower
semantics go as well as switching everything to the new string formatting code.
Diffstat (limited to 'src/tests/fastcgi.cpp')
-rw-r--r--src/tests/fastcgi.cpp8
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 {