ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Useful utilities for working with various strings. More...
Static Public Member Functions | |
static | isUTF8 ($str) |
Returns true or false depending on if a string is valid UTF-8. More... | |
static | convertToUTF8 ($str) |
This method tries its best to convert the input string to UTF-8. More... | |
Useful utilities for working with various strings.
Definition at line 12 of file StringUtil.php.
|
static |
This method tries its best to convert the input string to UTF-8.
Currently only ISO-5991-1 input and UTF-8 input is supported, but this may be expanded upon if we receive other examples.
string | $str |
Definition at line 42 of file StringUtil.php.
Referenced by Sabre\VObject\StringUtilTest\testConvertToUTF8ControlChar(), Sabre\VObject\StringUtilTest\testConvertToUTF8IsUTF8(), Sabre\VObject\StringUtilTest\testConvertToUTF8nonUTF8(), and Sabre\VObject\Property\validate().
|
static |
Returns true or false depending on if a string is valid UTF-8.
string | $str |
Definition at line 21 of file StringUtil.php.
Referenced by Sabre\VObject\StringUtilTest\testIsUTF8(), Sabre\VObject\StringUtilTest\testNonUTF8(), Sabre\VObject\StringUtilTest\testUTF8ControlChar(), and Sabre\VObject\Property\validate().