MediaWiki REL1_28
StringUtilsTest Class Reference
Inheritance diagram for StringUtilsTest:
Collaboration diagram for StringUtilsTest:

Public Member Functions

 escaped ( $string)
 Print high range characters as a hexadecimal.
 
 testIsUtf8 ( $expected, $string)
 StringUtils::isUtf8 provideStringsForIsUtf8Check.
 

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.
 

Detailed Description

Definition at line 3 of file StringUtilsTest.php.

Member Function Documentation

◆ escaped()

StringUtilsTest::escaped (   $string)

Print high range characters as a hexadecimal.

Parameters
string$string
Returns
string

Definition at line 19 of file StringUtilsTest.php.

Referenced by testIsUtf8().

◆ provideStringsForIsUtf8Check()

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 40 of file StringUtilsTest.php.

◆ testIsUtf8()

StringUtilsTest::testIsUtf8 (   $expected,
  $string 
)

StringUtils::isUtf8 provideStringsForIsUtf8Check.

Definition at line 9 of file StringUtilsTest.php.

References escaped(), and StringUtils\isUtf8().


The documentation for this class was generated from the following file: