Index: trunk/phase3/includes/normal/UtfNormalTest2.php |
— | — | @@ -41,12 +41,19 @@ |
42 | 42 | |
43 | 43 | require_once("./UtfNormal.php"); |
44 | 44 | function normalize_form_c($c) { return UtfNormal::toNFC($c); } |
| 45 | +function normalize_form_d($c) { return UtfNormal::toNFD($c); } |
| 46 | +function normalize_form_kc($c) { return UtfNormal::toNFKC($c); } |
| 47 | +function normalize_form_kd($c) { return UtfNormal::toNFKD($c); } |
| 48 | + |
| 49 | +/** |
| 50 | + * This set of functions is only useful if youve added a param to the |
| 51 | + * following functions to force pure PHP usage. I decided not to |
| 52 | + * commit that code since might produce a slowdown in the UTF |
| 53 | + * normalization code just for the sake of these tests. -- hexmode |
| 54 | + */ |
45 | 55 | function normalize_form_c_php($c) { return UtfNormal::toNFC($c, "php"); } |
46 | | -function normalize_form_d($c) { return UtfNormal::toNFD($c); } |
47 | 56 | function normalize_form_d_php($c) { return UtfNormal::toNFD($c, "php"); } |
48 | | -function normalize_form_kc($c) { return UtfNormal::toNFKC($c); } |
49 | 57 | function normalize_form_kc_php($c) { return UtfNormal::toNFKC($c, "php"); } |
50 | | -function normalize_form_kd($c) { return UtfNormal::toNFKD($c); } |
51 | 58 | function normalize_form_kd_php($c) { return UtfNormal::toNFKD($c, "php"); } |
52 | 59 | |
53 | 60 | assert_options(ASSERT_ACTIVE, 1); |