norm_test.c File Reference
Include dependency graph for norm_test.c:
Go to the source code of this file.
int
main (int argc, char **argv)
Macro Definition Documentation
◆ BUF_DIGITS
Function Documentation
◆ main()
int main
(
int
argc,
char **
argv
)
Definition at line 60 of file norm_test.c.
61{
62 const pg_unicode_test *
test;
63
64 for (
test = UnicodeNormalizationTests;
test->input[0] != 0;
test++)
65 {
66 for (int form = 0; form < 4; form++)
67 {
69
71
73 {
74 printf(
"FAILURE (NormalizationTest.txt line %d form %d):\n",
test->linenum, form);
79 exit(1);
80 }
81 }
82 }
83
84 printf(
"norm_test: All tests successful!\n");
85 exit(0);
86}
static char * print_wchar_str(const pg_wchar *s)
static int pg_wcscmp(const pg_wchar *s1, const pg_wchar *s2)
pg_wchar * unicode_normalize(UnicodeNormalizationForm form, const pg_wchar *input)
References pg_wcscmp(), print_wchar_str(), printf, test(), and unicode_normalize().
◆ pg_wcscmp()
static int pg_wcscmp
(
const
pg_wchar *
s1,
)
static
Definition at line 44 of file norm_test.c.
45{
46 for (;;)
47 {
49 return -1;
51 return 1;
53 return 0;
56 }
57}
References s1, and s2.
Referenced by main().
◆ print_wchar_str()
static char * print_wchar_str
(
const
pg_wchar *
s )
static