ILIAS
Release_4_0_x_branch Revision 61816
|
Multi byte sensitive string functions. More...
Public Member Functions | |
subStr ($a_str, $a_start, $a_length=NULL) | |
strPos ($a_haystack, $a_needle, $a_offset=NULL) | |
strLen ($a_string) | |
strToUpper ($a_string) | |
strCmp ($a, $b) | |
Compare two strings. | |
isUtf8 ($a_str) | |
Check whether string is utf-8. |
Static Public Member Functions | |
static | strToLower ($a_string) |
static | shortenText ($a_string, $a_start_pos, $a_num_bytes, $a_encoding= 'UTF-8') |
Shorten text to the given number of bytes. |
Multi byte sensitive string functions.
Definition at line 32 of file class.ilStr.php.
ilStr::isUtf8 | ( | $a_str | ) |
Check whether string is utf-8.
Definition at line 153 of file class.ilStr.php.
References elseif().
Referenced by ilObjLanguage\check().
|
static |
Shorten text to the given number of bytes.
If the character is cutted within a character the invalid character will be shortened, too.
E.g: shortenText('€€€',4) will return '€'
string | $a_string | |
int | $a_start_pos | |
int | $a_num_bytes | |
string | $a_encoding | [optional] |
Definition at line 145 of file class.ilStr.php.
ilStr::strCmp | ( | $a, | |
$b | |||
) |
Compare two strings.
Definition at line 118 of file class.ilStr.php.
References strToUpper().
Referenced by ilUtil\sort_func().
ilStr::strLen | ( | $a_string | ) |
Definition at line 79 of file class.ilStr.php.
Referenced by ilObjQuestionPool\_getFullPathToQpl(), ilObjQuestionPoolGUI\deleteExportFileObject(), ilObjForumAccess\prepareMessageForLists(), assTextQuestion\saveWorkingData(), ilUtil\shortenText(), and ilUtil\shortenWords().
ilStr::strPos | ( | $a_haystack, | |
$a_needle, | |||
$a_offset = NULL |
|||
) |
Definition at line 46 of file class.ilStr.php.
Referenced by assOrderingHorizontal\getOrderingElements(), ilMailForm\getRecipientAsync(), assTextQuestion\isKeywordMatching(), and ilUtil\shortenText().
|
static |
Definition at line 91 of file class.ilStr.php.
Referenced by ilTree\getNodePathForTitlePath(), ilMailForm\getRecipientAsync(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), and assTextQuestion\isKeywordMatching().
ilStr::strToUpper | ( | $a_string | ) |
Definition at line 103 of file class.ilStr.php.
Referenced by ilUtil\sort_func(), and strCmp().
ilStr::subStr | ( | $a_str, | |
$a_start, | |||
$a_length = NULL |
|||
) |
Definition at line 34 of file class.ilStr.php.
Referenced by ilObjQuestionPool\_getFullPathToQpl(), ilSCORMCertificateAdapter\addAdditionalFormElements(), ilObjQuestionPoolGUI\deleteExportFileObject(), ilObjForumAccess\prepareMessageForLists(), assTextQuestion\saveWorkingData(), ilUtil\shortenText(), and ilUtil\shortenWords().