From e5f2e1ce7faeb8fb4609f7291e77d5b682685057 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 5 Sep 2012 20:44:55 +0000 Subject: This'll make *everything* rebuild. String formatters now support the end() call, which will force substitution and return a string. They now also support ending actions, which let us do great stuff like printing stuff out after formatting finished...and other stuff. --- src/tests/print.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/tests/print.cpp (limited to 'src/tests') diff --git a/src/tests/print.cpp b/src/tests/print.cpp new file mode 100644 index 0000000..7d55554 --- /dev/null +++ b/src/tests/print.cpp @@ -0,0 +1,13 @@ +#include + +int main() +{ + Bu::print("hello there %1!\n").arg("Bob"); + + Bu::println("This is %1 crazy, like %2 times over!"). + arg("totally").arg( 47.2 ); + Bu::println("This is unsubstituted?"); + + return 0; +} + -- cgit v1.2.3