summaryrefslogtreecommitdiff
path: root/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test.cc')
-rw-r--r--test.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/test.cc b/test.cc
index d821382..f162705 100644
--- a/test.cc
+++ b/test.cc
@@ -78,7 +78,7 @@ static_assert(::zp::typequ<::zp::i04m, ::std::uint_least64_t>::val == true);
static_assert(::zp::typequ<::zp::i04ms,::std::int_least64_t>::val == true);
static_assert(::zp::typequ<::zp::intptr,::std::uintptr_t>::val == true);
-static_assert(::zp::typequ<::zp::sz, ::std::size_t>::val == true);
+static_assert(::zp::typequ<::zp::siz, ::std::size_t>::val == true);
static_assert(::zp::isusgn<char>::val == ::std::is_unsigned<char>::value);
static_assert(::zp::isusgn<char16_t>::val == ::std::is_unsigned<char16_t>::value);
@@ -282,9 +282,9 @@ int main() {
wchar_t wstr[] = L"Hello there!";
char32_t str02[] = U"Hello there!";
- ::zp::sz const len = ::zp_strlen( str);
- ::zp::sz const wlen = ::zp_wstrlen( wstr);
- ::zp::sz const len02 = ::zp_utf32len(str02);
+ ::zp::siz const len = ::zp_strlen( str);
+ ::zp::siz const wlen = ::zp_wstrlen( wstr);
+ ::zp::siz const len02 = ::zp_utf32len(str02);
cmp(len, 0xCu);
cmp(wlen, 0xCu);
@@ -308,7 +308,7 @@ int main() {
char32_t const src[] = U"\U0001F480";
- ::zp::sz const buf8len = ::zp_utf8enclen(src);
+ ::zp::siz const buf8len = ::zp_utf8enclen(src);
cmp(buf8len,0x4u);
::zp::c8 * buf8 = new ::zp::c8[buf8len+0x1];
@@ -321,7 +321,7 @@ int main() {
cmp(buf8[0x3],0x80u);
cmp(buf8[0x4],0x00u);
- ::zp::sz const buf02len = ::zp_utf8declen(buf8);
+ ::zp::siz const buf02len = ::zp_utf8declen(buf8);
cmp(buf02len,0x1u);
char32_t * buf02 = new char32_t[buf02len+0x1];
@@ -340,7 +340,7 @@ int main() {
char32_t const src[] = U"\U0001F480\u00F0";
- ::zp::sz const buf01len = ::zp_utf16enclen(src);
+ ::zp::siz const buf01len = ::zp_utf16enclen(src);
cmp(buf01len,0x3u);
char16_t * buf01 = new char16_t[buf01len+0x1];
@@ -352,7 +352,7 @@ int main() {
cmp(buf01[0x2],0x00F0u);
cmp(buf01[0x3],0x0000u);
- ::zp::sz const buf02len = ::zp_utf16declen(buf01);
+ ::zp::siz const buf02len = ::zp_utf16declen(buf01);
cmp(buf02len,0x2u);
char32_t * buf02 = new char32_t[buf02len+0x1];