[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Fallback functions for PHP installed without mbstring support. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 172 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
Fallback:: (5 methods):
mb_substr()
mb_substr_split_unicode()
mb_strlen()
mb_strpos()
mb_strrpos()
mb_substr( $str, $start, $count = 'end' ) X-Ref |
Fallback implementation for mb_substr, hardcoded to UTF-8. Attempts to be at least _moderately_ efficient; best optimized for relatively small offset and count values -- about 5x slower than native mb_string in my testing. Larger offsets are still fairly efficient for Latin text, but can be up to 100x slower than native if the text is heavily multibyte and we have to slog through a few hundred kb. param: string $str param: int $start param: string $count return: string |
mb_substr_split_unicode( $str, $splitPos ) X-Ref |
param: string $str param: int $splitPos return: int |
mb_strlen( $str, $enc = '' ) X-Ref |
Fallback implementation of mb_strlen, hardcoded to UTF-8. param: string $str param: string $enc Optional encoding; ignored return: int |
mb_strpos( $haystack, $needle, $offset = 0, $encoding = '' ) X-Ref |
Fallback implementation of mb_strpos, hardcoded to UTF-8. param: string $haystack param: string $needle param: string $offset Optional start position param: string $encoding Optional encoding; ignored return: int |
mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) X-Ref |
Fallback implementation of mb_strrpos, hardcoded to UTF-8. param: string $haystack param: string $needle param: string $offset Optional start position param: string $encoding Optional encoding; ignored return: int |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |