diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-07 12:36:31 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-07 12:36:31 +0000 |
commit | f8528a659c919d7bc1e78c5aacc95e27cddec627 (patch) | |
tree | bb70865f922867a83fa144f315ad40014a982e2b /phpBB/includes/utf/utf_tools.php | |
parent | e87f740a9e7a048b7900d92ede04f405a337441c (diff) | |
download | forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.gz forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.bz2 forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.tar.xz forums-f8528a659c919d7bc1e78c5aacc95e27cddec627.zip |
tried to begin adjusting all string functions where applicable - still a *lot* to do.
i hope i catched all relevant sections and did not mess something up.
git-svn-id: file:///svn/phpbb/trunk@6452 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/utf/utf_tools.php')
-rw-r--r-- | phpBB/includes/utf/utf_tools.php | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/phpBB/includes/utf/utf_tools.php b/phpBB/includes/utf/utf_tools.php index a906cc6ffb..342952db69 100644 --- a/phpBB/includes/utf/utf_tools.php +++ b/phpBB/includes/utf/utf_tools.php @@ -6,6 +6,10 @@ * @copyright (c) 2006 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License * +* @todo make sure the replacements are called correctly +* already done: strtolower, strtoupper, ucfirst, str_split, strrpos, strlen (hopefully!) +* remaining: clean_username, htmlentities (no longer needed for internal data?), htmlspecialchars (using charset), html_entity_decode (own function to reverse htmlspecialchars and not htmlentities) +* substr, strpos, strspn, chr, ord */ /** @@ -136,6 +140,7 @@ if (extension_loaded('mbstring')) * @param string needle * @param integer (optional) offset (from left) * @return mixed integer position or FALSE on failure + * @ignore */ if (version_compare(phpversion(), '5.2.0', '>=')) { @@ -209,15 +214,7 @@ if (extension_loaded('mbstring')) /** * UTF-8 aware alternative to strtolower - * Make a string lowercase - * Note: The concept of a characters "case" only exists is some alphabets - * such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does - * not exist in the Chinese alphabet, for example. See Unicode Standard - * Annex #21: Case Mappings - * - * @author Andreas Gohr <andi@splitbrain.org> - * @param string - * @return mixed either string in lowercase or FALSE is UTF-8 invalid + * @ignore */ function utf8_strtolower($str) { @@ -226,15 +223,7 @@ if (extension_loaded('mbstring')) /** * UTF-8 aware alternative to strtoupper - * Make a string uppercase - * Note: The concept of a characters "case" only exists is some alphabets - * such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does - * not exist in the Chinese alphabet, for example. See Unicode Standard - * Annex #21: Case Mappings - * - * @author Andreas Gohr <andi@splitbrain.org> - * @param string - * @return mixed either string in lowercase or FALSE is UTF-8 invalid + * @ignore */ function utf8_strtoupper($str) { |