|
ILIAS
release_4-3 Revision
|
Multi byte sensitive string functions. More...
Collaboration diagram for ilStr:Public Member Functions | |
| strPos ($a_haystack, $a_needle, $a_offset=NULL) | |
| strToUpper ($a_string) | |
| strCmp ($a, $b) | |
| Compare two strings. | |
| isUtf8 ($a_str) | |
| Check whether string is utf-8. | |
| replaceFirsOccurence ($a_old, $a_new, $a_str) | |
| Replaces the first occurence of $a_old in $a_str with $a_new. | |
Static Public Member Functions | |
| static | subStr ($a_str, $a_start, $a_length=NULL) |
| static | strLen ($a_string) |
| 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. | |
| static | strPosAll ($a_haystack, $a_needle) |
| Get all positions of a string. | |
| ilStr::isUtf8 | ( | $a_str | ) |
Check whether string is utf-8.
Definition at line 154 of file class.ilStr.php.
Referenced by ilObjLanguage\check().
Here is the caller graph for this function:| ilStr::replaceFirsOccurence | ( | $a_old, | |
| $a_new, | |||
| $a_str | |||
| ) |
Replaces the first occurence of $a_old in $a_str with $a_new.
Definition at line 216 of file class.ilStr.php.
Referenced by ilPageObjectGUI\insertPageToc().
Here is the caller graph for this function:
|
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 146 of file class.ilStr.php.
| ilStr::strCmp | ( | $a, | |
| $b | |||
| ) |
Compare two strings.
Definition at line 119 of file class.ilStr.php.
References strToUpper().
Referenced by ilUtil\sort_func().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 79 of file class.ilStr.php.
Referenced by ilObjQuestionPool\_getFullPathToQpl(), ilICalWriter\addLine(), ilObjForumAccess\prepareMessageForLists(), assTextQuestion\saveWorkingData(), ilUtil\shortenText(), and ilUtil\shortenWords().
Here is the caller graph for this function:| ilStr::strPos | ( | $a_haystack, | |
| $a_needle, | |||
$a_offset = NULL |
|||
| ) |
Definition at line 46 of file class.ilStr.php.
Referenced by ilMailForm\getRecipientAsync(), assTextQuestion\isKeywordMatching(), ilUtil\shortenText(), and assOrderingHorizontal\splitAndTrimOrderElementText().
Here is the caller graph for this function:
|
static |
Get all positions of a string.
| string | the string to search in |
| string | the string to search for |
Definition at line 201 of file class.ilStr.php.
Referenced by ilPageObjectGUI\insertPageToc().
Here is the caller graph for this function:
|
static |
Definition at line 91 of file class.ilStr.php.
Referenced by ilTree\getNodePathForTitlePath(), ilMailForm\getRecipientAsync(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), and assTextQuestion\isKeywordMatching().
Here is the caller graph for this function:| ilStr::strToUpper | ( | $a_string | ) |
Definition at line 103 of file class.ilStr.php.
Referenced by ilUtil\sort_func(), and strCmp().
Here is the caller graph for this function:
|
static |
Definition at line 34 of file class.ilStr.php.
Referenced by ilObjQuestionPool\_getFullPathToQpl(), ilSCORMCertificateAdapter\addAdditionalFormElements(), ilICalWriter\addLine(), ilObjForumAccess\prepareMessageForLists(), assTextQuestion\saveWorkingData(), ilUtil\shortenText(), and ilUtil\shortenWords().
Here is the caller graph for this function: