aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-08-24 18:15:11 +0000
committerMike Buland <eichlan@xagasoft.com>2012-08-24 18:15:11 +0000
commitda642482dee91921fc16786208aa497d3ee31d94 (patch)
treebae598fca2bb2b55661bc1c854b43a1393aced23 /src/tests
parentf5ac2c1ba333ce6aa6d385d9a63b658caaa46503 (diff)
downloadlibbu++-da642482dee91921fc16786208aa497d3ee31d94.tar.gz
libbu++-da642482dee91921fc16786208aa497d3ee31d94.tar.bz2
libbu++-da642482dee91921fc16786208aa497d3ee31d94.tar.xz
libbu++-da642482dee91921fc16786208aa497d3ee31d94.zip
Adding new Bu::Settings system, which works more or less like QSettings from Qt,
only...without qt. It's the first real system in libbu++ that is going to be all unicode, which is exciting, but I'm having to actually finish the Bu::UtfString class while I work on it. Also exciting.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/settings.cpp9
-rw-r--r--src/tests/utf.cpp6
2 files changed, 15 insertions, 0 deletions
diff --git a/src/tests/settings.cpp b/src/tests/settings.cpp
new file mode 100644
index 0000000..0738cb7
--- /dev/null
+++ b/src/tests/settings.cpp
@@ -0,0 +1,9 @@
1#include "bu/settings.h"
2
3int main()
4{
5 Bu::Settings s("Xagasoft", "Settings");
6
7
8}
9
diff --git a/src/tests/utf.cpp b/src/tests/utf.cpp
index 3418e68..923b611 100644
--- a/src/tests/utf.cpp
+++ b/src/tests/utf.cpp
@@ -1,9 +1,15 @@
1#include <bu/file.h> 1#include <bu/file.h>
2#include <bu/string.h> 2#include <bu/string.h>
3#include <bu/utfstring.h> 3#include <bu/utfstring.h>
4#include <bu/sio.h>
5
6using namespace Bu;
4 7
5int main() 8int main()
6{ 9{
10 sio << "Code: " << Bu::__calcHashCode( Bu::UtfString("Hello there") )
11 << sio.nl;
12
7 Bu::File fIn("utf8.in", Bu::File::Read ); 13 Bu::File fIn("utf8.in", Bu::File::Read );
8 Bu::String sUtf8; 14 Bu::String sUtf8;
9 char buf[4096]; 15 char buf[4096];