summaryrefslogtreecommitdiff
path: root/src/tests/print.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
commitec05778d5718a7912e506764d443a78d6a6179e3 (patch)
tree78a9a01532180030c095acefc45763f07c14edb8 /src/tests/print.cpp
parentb20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff)
downloadlibbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip
Converted tabs to spaces with tabconv.
Diffstat (limited to 'src/tests/print.cpp')
-rw-r--r--src/tests/print.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tests/print.cpp b/src/tests/print.cpp
index c6fe053..bee8cf8 100644
--- a/src/tests/print.cpp
+++ b/src/tests/print.cpp
@@ -2,30 +2,30 @@
2 2
3int upper() 3int upper()
4{ 4{
5 static int iVal = 1; 5 static int iVal = 1;
6 return iVal++; 6 return iVal++;
7} 7}
8 8
9int main() 9int main()
10{ 10{
11 Bu::print("hello there %1!\n").arg("Bob"); 11 Bu::print("hello there %1!\n").arg("Bob");
12 12
13 Bu::println("This is %1 crazy, like %2 times over!"). 13 Bu::println("This is %1 crazy, like %2 times over!").
14 arg("totally").arg( 47.2 ).end(); 14 arg("totally").arg( 47.2 ).end();
15 Bu::println("This is unsubstituted?"); 15 Bu::println("This is unsubstituted?");
16 16
17 Bu::serr << "This is error text." << Bu::serr.nl; 17 Bu::serr << "This is error text." << Bu::serr.nl;
18 Bu::println( Bu::serr, "This is also error text?"); 18 Bu::println( Bu::serr, "This is also error text?");
19 19
20 Bu::println("This is %{1}000 - %{1}.").arg( 34, Bu::Fmt().width(10).fill('0') ); 20 Bu::println("This is %{1}000 - %{1}.").arg( 34, Bu::Fmt().width(10).fill('0') );
21 21
22 Bu::String s = Bu::String("hello %1").arg("bob %1").end().toLower().arg("yo"); 22 Bu::String s = Bu::String("hello %1").arg("bob %1").end().toLower().arg("yo");
23 23
24 Bu::println( s ); 24 Bu::println( s );
25 Bu::println("Hello %%1"); 25 Bu::println("Hello %%1");
26 26
27 Bu::println("Nums: %1, %2, %3, %4, %5, %6").arg( upper() ).arg( upper() ).arg( upper() ).arg( upper() ).arg( upper() ).arg( upper() ); 27 Bu::println("Nums: %1, %2, %3, %4, %5, %6").arg( upper() ).arg( upper() ).arg( upper() ).arg( upper() ).arg( upper() ).arg( upper() );
28 28
29 return 0; 29 return 0;
30} 30}
31 31