From d223fcaba3660e8c4d61c9136311064898e23ae9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 19 Mar 2011 18:28:10 +0000 Subject: 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. --- src/tests/fastcgi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tests/fastcgi.cpp') 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: sOut += getcwd( buf, 2048 ); sOut += ""; sOut += "

Stdin:

"; - sOut.formatAppend("%d bytes
", sStdIn.getSize() );
+		sOut += Bu::String("%1 bytes
").arg( sStdIn.getSize() );
 		Bu::String sL, sR;
 		for( Bu::String::const_iterator i = sStdIn.begin();
 			i; i++ )
 		{
-			sL.formatAppend("%02X ",
-				(unsigned int)((unsigned char)*i) );
+			sL += Bu::String("%1").arg(
+					(unsigned int)((unsigned char)*i), Bu::Fmt::hex().width(2).fill('0') );
 			if( *i < 27 )
 				sR += ". ";
 			else
-				sR.formatAppend("&#%d; ",
+				sR += Bu::String("&#%1; ").arg(
 					(unsigned int)((unsigned char)*i) );
 			if( sL.getSize()/3 == 8 )
 			{
-- 
cgit v1.2.3