blob: 98be65803c2cc624b15f3a86c0c545fcd36c4b50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include <stdbool.h>
bool zaptest_test_utf20len(void) {
zap_chr20 const str0[] = U"Ça va?";
zap_chr20 const str1[] = U"Non, ça ne va pas.";
zap_sz const len0 = zap_utf20len(str0);
zap_sz const len1 = zap_utf20len(str1);
zaptest_chk(len0,0x6u,zap_sz,"%zX")
zaptest_chk(len1,0x12u,zap_sz,"%zX")
return false;
}
|