steffen: server/kolab-horde-framework/kolab-horde-framework/Util/tests String.phpt, NONE, 1.1 String2.phpt, NONE, 1.1 utf-8.phpt, NONE, 1.1
cvs at intevation.de
cvs at intevation.de
Fri Oct 14 16:33:16 CEST 2005
- Previous message: steffen: server/kolab-horde-framework/kolab-horde-framework/Util Array.php, NONE, 1.1 String.php, NONE, 1.1 Util.php, NONE, 1.1 Variables.php, NONE, 1.1 package.xml, NONE, 1.1
- Next message: steffen: server/kolab-horde-framework/kolab-horde-framework/VC VC.php, NONE, 1.1 package.xml, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: steffen
Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/Util/tests
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/Util/tests
Added Files:
String.phpt String2.phpt utf-8.phpt
Log Message:
Separated Horde Framework from kolab-resource-handlers
--- NEW FILE: String.phpt ---
--TEST--
Simple String:: tests
--FILE--
<?php
require dirname(__FILE__) . '/../String.php';
echo String::length('Welcome', 'en_US'). "\n";
echo String::length('Welcome', 'zh_TW'). "\n";
echo String::upper('abCDefG', true, 'en_US') . "\n";
echo String::lower('abCDefG', true, 'en_US') . "\n";
echo String::upper('abCDefG', true, 'zh_TW') . "\n";
echo String::lower('abCDefG', true, 'zh_TW') . "\n";
?>
--EXPECT--
7
7
ABCDEFG
abcdefg
ABCDEFG
abcdefg
--- NEW FILE: String2.phpt ---
--TEST--
zh_TW String:: tests
--FILE--
<?php
require dirname(__FILE__) . '/../String.php';
echo String::length('Welcome', 'zh_TW'). "\n";
echo String::length('Åwªï', 'zh_TW') . "\n";
?>
--EXPECT--
7
4
--- NEW FILE: utf-8.phpt ---
--TEST--
UTF-8 String:: tests
--FILE--
<?php
require dirname(__FILE__) . '/../String.php';
/* The following strings were taken with permission from the UTF-8
* sampler by Frank da Cruz <fdc at columbia.edu> and the Kermit Project
* (http://www.columbia.edu/kermit/). The original page is located at
* http://www.columbia.edu/kermit/utf8.html */
// French 50
echo String::length('Je peux manger du verre, ça ne me fait pas de mal.', 'UTF-8') . "\n";
// Spanish 36
echo String::length('Puedo comer vidrio, no me hace daño.', 'UTF-8') . "\n";
// Portuguese 34
echo String::length('Posso comer vidro, não me faz mal.', 'UTF-8') . "\n";
// Brazilian Portuguese 34
echo String::length('Posso comer vidro, não me machuca.', 'UTF-8') . "\n";
// Italian 41
echo String::length('Posso mangiare il vetro e non mi fa male.', 'UTF-8') . "\n";
// English 39
echo String::length('I can eat glass and it doesn\'t hurt me.', 'UTF-8') . "\n";
// Norsk/Norwegian/Nynorsk 33
echo String::length('Eg kan eta glas utan å skada meg.', 'UTF-8') . "\n";
// Svensk/Swedish 36
echo String::length('Jag kan äta glas utan att skada mig.', 'UTF-8') . "\n";
// Dansk/Danish 45
echo String::length('Jeg kan spise glas, det gør ikke ondt på mig.', 'UTF-8') . "\n";
// Deutsch/German 41
echo String::length('Ich kann Glas essen, ohne mir weh zu tun.', 'UTF-8') . "\n";
// Russian 38
echo String::length('Я Ð¼Ð¾Ð³Ñ ÐµÑÑÑ ÑÑекло, оно мне не вÑедиÑ.', 'UTF-8') . "\n";
?>
--EXPECT--
50
36
34
34
41
39
33
36
45
41
38
- Previous message: steffen: server/kolab-horde-framework/kolab-horde-framework/Util Array.php, NONE, 1.1 String.php, NONE, 1.1 Util.php, NONE, 1.1 Variables.php, NONE, 1.1 package.xml, NONE, 1.1
- Next message: steffen: server/kolab-horde-framework/kolab-horde-framework/VC VC.php, NONE, 1.1 package.xml, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the commits
mailing list