MediaWiki
REL1_22
|
Public Member Functions | |
escaped ($string) | |
Print high range characters as an hexadecimal. | |
testIsUtf8WithMbstring ($expected, $string) | |
This tests StringUtils::isUtf8 whenever we have the mbstring extension loaded. | |
testIsUtf8WithPhpFallbackImplementation ($expected, $string) | |
This tests StringUtils::isUtf8 making sure we use the pure PHP implementation used as a fallback when mb_check_encoding() is not available. | |
Static Public Member Functions | |
static | provideStringsForIsUtf8Check () |
See also "UTF-8 decoder capability and stress test" by Markus Kuhn: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt. |
Definition at line 3 of file StringUtilsTest.php.
StringUtilsTest::escaped | ( | $ | string | ) |
Print high range characters as an hexadecimal.
Definition at line 40 of file StringUtilsTest.php.
Referenced by testIsUtf8WithMbstring(), and testIsUtf8WithPhpFallbackImplementation().
static StringUtilsTest::provideStringsForIsUtf8Check | ( | ) | [static] |
See also "UTF-8 decoder capability and stress test" by Markus Kuhn: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt.
Definition at line 61 of file StringUtilsTest.php.
References array().
StringUtilsTest::testIsUtf8WithMbstring | ( | $ | expected, |
$ | string | ||
) |
This tests StringUtils::isUtf8 whenever we have the mbstring extension loaded.
StringUtils::isUtf8 provideStringsForIsUtf8Check
Definition at line 12 of file StringUtilsTest.php.
References escaped(), and StringUtils\isUtf8().
StringUtilsTest::testIsUtf8WithPhpFallbackImplementation | ( | $ | expected, |
$ | string | ||
) |
This tests StringUtils::isUtf8 making sure we use the pure PHP implementation used as a fallback when mb_check_encoding() is not available.
StringUtils::isUtf8 provideStringsForIsUtf8Check
Definition at line 30 of file StringUtilsTest.php.
References escaped(), and StringUtils\isUtf8().