changed i18n schema to use only one db table for translations
https://trac.cakephp.org/changeset/5669
Initial start of Unicode support
https://trac.cakephp.org/changeset/5691
“もちろん”mb_string関数は使われていませんでした。
(世界的に見れば、mb_stringが入っていない環境のほうが多い??)
string.test.php には、下記のようなテストがありました。物申すなら今のうち。
= QUOTE from string.test.php =========================
$string = 'abcdefghijklmnopqrstuvwxyz';
$result = String::utf8($string);
$expected = array(65345, 65346, 65347, 65348, 65349, 65350, 65351, 65352, 65353, 65354, 65355, 65356, 65357, 65358, 65359, 65360, 65361, 65362, 65363, 65364, 65365, 65366, 65367, 65368, 65369, 65370);
$this->assertEqual($result, $expected);
$string = '。「」、・ヲァィゥェォャュョッーアイウエオカキク';
$result = String::utf8($string);
$expected = array(65377, 65378, 65379, 65380, 65381, 65382, 65383, 65384, 65385, 65386, 65387, 65388, 65389, 65390, 65391, 65392, 65393, 65394, 65395, 65396, 65397, 65398, 65399, 65400);
$this->assertEqual($result, $expected);
$string = 'ケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙';
$result = String::utf8($string);
$expected = array(65401, 65402, 65403, 65404, 65405, 65406, 65407, 65408, 65409, 65410, 65411, 65412, 65413, 65414, 65415, 65416, 65417, 65418, 65419, 65420, 65421, 65422, 65423, 65424, 65425, 65426, 65427, 65428, 65429, 65430, 65431, 65432, 65433, 65434, 65435, 65436, 65437, 65438);
$this->assertEqual($result, $expected);
$string = '一二三周永龍';
$result = String::utf8($string);
$expected = array(19968, 20108, 19977, 21608, 27704, 40845);
$this->assertEqual($result, $expected);
-------------------------------------------
$string = 'abcdefghijklmnopqrstuvwxyz';
$find = 'z';
$result = String::strpos($string, $find);
$expected = 25;
$this->assertEqual($result, $expected);
$string = '。「」、・ヲァィゥェォャュョッーアイウエオカキク';
$find = 'ク';
$result = String::strpos($string, $find);
$expected = 23;
$this->assertEqual($result, $expected);
$string = 'ケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙';
$find = 'ル';
$result = String::strpos($string, $find);
$expected = 32;
$this->assertEqual($result, $expected);