Back to index

glibc  2.9
dat_wcstok.c
Go to the documentation of this file.
00001 /*
00002  *  TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
00003  *
00004  *      FILE: dat_wcstok.c
00005  *
00006  *      WCSTOK: wchar_t *wcstok (wchar_t *ws, const wchar_t *dlm,
00007  *                            wchar_t **pt);
00008  */
00009 
00010 /*
00011  *  NOTE:
00012  *       need more test data!
00013  *       locale insensitive function...
00014  */
00015 
00016 
00017 
00018 
00019 TST_WCSTOK tst_wcstok_loc [] = {
00020   {
00021     { Twcstok, TST_LOC_de },
00022     {
00023       {
00024        {
00025          {
00026            { 1, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
00027                  0x00D9,0x0000 },
00028              {              0x00D3,0x00D2,           0x00D5 }
00029            },
00030            { 0, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
00031                  0x00D9,0x0000 },
00032              {              0x00D3,0x00D2,           0x00D5 }
00033            },
00034            { 0, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
00035                  0x00D9,0x0000 },
00036              {              0x00D3,0x00D2,           0x00D5 }
00037            },
00038          }
00039        },
00040        {
00041          {
00042            { 0, 0,0,
00043              { 0x00D1,0x0000 }
00044            },
00045            { 0, 0,0,
00046              {                          0x00D4,0x0000 }
00047            },
00048            { 0, 0,0,
00049              { 0x00D6,0x00D7,0x00D8,0x00D9,0x0000 }
00050            },
00051          }
00052        }
00053       },
00054       { .is_last = 1 }
00055     }
00056   },
00057   {
00058     { Twcstok, TST_LOC_enUS },
00059     {
00060       {
00061        {
00062          {
00063            { 1, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
00064                  0x0049,0x0000 },
00065              {              0x0043,0x0042,           0x0045 }
00066            },
00067            { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
00068                  0x0049,0x0000 },
00069              {              0x0043,0x0042,           0x0045 }
00070            },
00071            { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
00072                  0x0049,0x0000 },
00073              {              0x0043,0x0042,           0x0045 }
00074            },
00075          }
00076        },
00077        {
00078          {
00079            { 0, 0,0,
00080              { 0x0041,0x0000 }
00081            },
00082            { 0, 0,0,
00083              {                          0x0044,0x0000 }
00084            },
00085            { 0, 0,0,
00086              { 0x0046,0x0047,0x0048,0x0049,0x0000 }
00087            },
00088          }
00089        }
00090       },
00091       { .is_last = 1 }
00092     }
00093   },
00094   {
00095     { Twcstok, TST_LOC_eucJP },
00096     {
00097       {
00098        {
00099          {
00100            { 1, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
00101                  0x0049,0x0000 },
00102              {              0x0043,0x0042,           0x0045 }
00103            },
00104            { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
00105                  0x0049,0x0000 },
00106              {              0x0043,0x0042,           0x0045 }
00107            },
00108            { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
00109                  0x0049,0x0000 },
00110              {              0x0043,0x0042,           0x0045 }
00111            },
00112          }
00113        },
00114        {
00115          {
00116            { 0, 0,0,
00117              { 0x0041,0x0000 }
00118            },
00119            { 0, 0,0,
00120              {                          0x0044,0x0000 }
00121            },
00122            { 0, 0,0,
00123              { 0x0046,0x0047,0x0048,0x0049,0x0000 }
00124            },
00125          }
00126        }
00127       },
00128       { .is_last = 1 }
00129     }
00130   },
00131   {
00132     { Twcstok, TST_LOC_end }
00133   }
00134 };