diff options
author | Nils Adermann <naderman@naderman.de> | 2007-08-16 13:48:29 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2007-08-16 13:48:29 +0000 |
commit | da55886024b41d67d12efbe2efbdbddb05434754 (patch) | |
tree | 6b6cbbd9e6d3f4e6bd598504379e4d24ba6ebbc8 /phpBB/docs/coding-guidelines.html | |
parent | 487ca9229997f0bd1c5ed228cf7dc3a033fce329 (diff) | |
download | forums-da55886024b41d67d12efbe2efbdbddb05434754.tar forums-da55886024b41d67d12efbe2efbdbddb05434754.tar.gz forums-da55886024b41d67d12efbe2efbdbddb05434754.tar.bz2 forums-da55886024b41d67d12efbe2efbdbddb05434754.tar.xz forums-da55886024b41d67d12efbe2efbdbddb05434754.zip |
- added info on utf8_strtolower/upper
git-svn-id: file:///svn/phpbb/trunk@8036 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/docs/coding-guidelines.html')
-rw-r--r-- | phpBB/docs/coding-guidelines.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html index d7d40d926e..11d4dd2940 100644 --- a/phpBB/docs/coding-guidelines.html +++ b/phpBB/docs/coding-guidelines.html @@ -1603,7 +1603,7 @@ echo request_var('multibyte_string', ''); <h3>Case Folding</h3> -<p>Case insensitive comparison of strings is no longer possible with <code>strtolower</code> or <code>strtoupper</code> as some characters have multiple lower case or multiple upper case forms depending on their position in a word. So instead you should use case folding which gives you a case insensitive version of the string which can be used for case insensitive comparisons. An NFC normalized string can be case folded using <code>utf8_case_fold_nfc()</code>.</p> +<p>Case insensitive comparison of strings is no longer possible with <code>strtolower</code> or <code>strtoupper</code> as some characters have multiple lower case or multiple upper case forms depending on their position in a word. The <code>utf8_strtolower</code> and the <code>utf8_strtoupper</code> functions suffer from the same problem so they can only be used to display upper/lower case versions of a string but they cannot be used for case insensitive comparisons either. So instead you should use case folding which gives you a case insensitive version of the string which can be used for case insensitive comparisons. An NFC normalized string can be case folded using <code>utf8_case_fold_nfc()</code>.</p> <p class="bad">// Bad - The strings might be the same even if strtolower differs</p> |