diff options
author | Mike Buland <eichlan@xagasoft.com> | 2022-04-22 23:52:29 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2022-04-22 23:52:29 -0700 |
commit | 8ef500bc0b259cf6a73772148153b759e954297e (patch) | |
tree | d0c30837f15656f0b3bade6ce608d396551b78a4 /src/tests | |
parent | 23d88aa2812c361d30abefeeb296548698409bf5 (diff) | |
download | libbu++-bigchange.tar.gz libbu++-bigchange.tar.bz2 libbu++-bigchange.tar.xz libbu++-bigchange.zip |
C++11 introduced actual unicode string literals.bigchange
I'm moving things to take advantage of that. It's pretty cool!
Diffstat (limited to '')
-rw-r--r-- | src/tests/archivetags.cpp | 8 | ||||
-rw-r--r-- | src/tests/text.cpp | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/tests/archivetags.cpp b/src/tests/archivetags.cpp index 5c8e0fa..b9b3603 100644 --- a/src/tests/archivetags.cpp +++ b/src/tests/archivetags.cpp | |||
@@ -1,4 +1,4 @@ | |||
1 | 1 | /* | |
2 | class SubThing | 2 | class SubThing |
3 | { | 3 | { |
4 | public: | 4 | public: |
@@ -70,4 +70,10 @@ Bu::Archive &operator>>( Bu::Archive &ar, Something &st ) | |||
70 | ar >> ar.tag("thing") >> st.xThing; | 70 | ar >> ar.tag("thing") >> st.xThing; |
71 | return ar; | 71 | return ar; |
72 | } | 72 | } |
73 | */ | ||
74 | |||
75 | int main( int argc, char *argv[] ) | ||
76 | { | ||
77 | return 0; | ||
78 | } | ||
73 | 79 | ||
diff --git a/src/tests/text.cpp b/src/tests/text.cpp new file mode 100644 index 0000000..0b99e3b --- /dev/null +++ b/src/tests/text.cpp | |||
@@ -0,0 +1,9 @@ | |||
1 | #include "bu/text.h" | ||
2 | |||
3 | int main( int argc, char *argv[] ) | ||
4 | { | ||
5 | Bu::Text txt(UR"sql(Hello there!""''"")sql"); | ||
6 | |||
7 | return 0; | ||
8 | } | ||
9 | |||