r69644 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69643‎ | r69644 | r69645 >
Date:21:24, 20 July 2010
Author:mah
Status:deferred
Tags:
Comment:
Added an explanation for the way the code is set up.
Modified paths:
  • /trunk/phase3/includes/normal/UtfNormalTest2.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/normal/UtfNormalTest2.php
@@ -41,12 +41,19 @@
4242
4343 require_once("./UtfNormal.php");
4444 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+ */
4555 function normalize_form_c_php($c) { return UtfNormal::toNFC($c, "php"); }
46 -function normalize_form_d($c) { return UtfNormal::toNFD($c); }
4756 function normalize_form_d_php($c) { return UtfNormal::toNFD($c, "php"); }
48 -function normalize_form_kc($c) { return UtfNormal::toNFKC($c); }
4957 function normalize_form_kc_php($c) { return UtfNormal::toNFKC($c, "php"); }
50 -function normalize_form_kd($c) { return UtfNormal::toNFKD($c); }
5158 function normalize_form_kd_php($c) { return UtfNormal::toNFKD($c, "php"); }
5259
5360 assert_options(ASSERT_ACTIVE, 1);

Status & tagging log