ILIAS
Release_5_0_x_branch Revision 61816
|
Multi byte sensitive string functions. More...
Static Public Member Functions | |
static | subStr ($a_str, $a_start, $a_length=NULL) |
static | strPos ($a_haystack, $a_needle, $a_offset=NULL) |
static | strIPos ($a_haystack, $a_needle, $a_offset=NULL) |
static | strLen ($a_string) |
static | strToLower ($a_string) |
static | strToUpper ($a_string) |
static | strCmp ($a, $b) |
Compare two strings. | |
static | shortenText ($a_string, $a_start_pos, $a_num_bytes, $a_encoding= 'UTF-8') |
Shorten text to the given number of bytes. | |
static | isUtf8 ($a_str) |
Check whether string is utf-8. | |
static | strPosAll ($a_haystack, $a_needle) |
Get all positions of a string. | |
static | replaceFirsOccurence ($a_old, $a_new, $a_str) |
Replaces the first occurence of $a_old in $a_str with $a_new. |
Multi byte sensitive string functions.
Definition at line 13 of file class.ilStr.php.
|
static |
Check whether string is utf-8.
Definition at line 152 of file class.ilStr.php.
Referenced by ilObjLanguage\check().
|
static |
Replaces the first occurence of $a_old in $a_str with $a_new.
Definition at line 214 of file class.ilStr.php.
Referenced by ilPageObjectGUI\insertPageToc().
|
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 144 of file class.ilStr.php.
Referenced by ilPageObject\truncateHTML().
|
static |
Compare two strings.
Definition at line 117 of file class.ilStr.php.
References strToUpper().
Referenced by ilUtil\sort_func().
|
static |
Definition at line 44 of file class.ilStr.php.
Referenced by ilPCParagraph\linkTermsInDom().
|
static |
Definition at line 77 of file class.ilStr.php.
Referenced by ilObjQuestionPool\_getFullPathToQpl(), ilICalWriter\addLine(), ilWikiPage\afterUpdate(), assTextQuestion\getSolutionSubmit(), ilUtil\isPassword(), ilPCParagraph\linkTermsInDom(), ilObjForumAccess\prepareMessageForLists(), ilUtil\shortenText(), ilUtil\shortenWords(), subStr(), and ilObjBibliographic\writeSourcefileEntriesToDb().
|
static |
Definition at line 32 of file class.ilStr.php.
Referenced by assTextQuestion\isKeywordMatching(), ilUtil\shortenText(), assOrderingHorizontal\splitAndTrimOrderElementText(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
|
static |
Get all positions of a string.
string | the string to search in |
string | the string to search for |
Definition at line 199 of file class.ilStr.php.
Referenced by ilPageObjectGUI\insertPageToc().
|
static |
Definition at line 89 of file class.ilStr.php.
Referenced by ilTree\getNodePathForTitlePath(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
|
static |
Definition at line 101 of file class.ilStr.php.
Referenced by ilUtil\sort_func(), and strCmp().
|
static |
Definition at line 15 of file class.ilStr.php.
References strLen().
Referenced by ilObjQuestionPool\_getFullPathToQpl(), ilSCORMCertificateAdapter\addAdditionalFormElements(), ilICalWriter\addLine(), assTextQuestion\getSolutionSubmit(), ilPCParagraph\linkTermsInDom(), ilObjForumAccess\prepareMessageForLists(), ilUtil\shortenText(), ilUtil\shortenWords(), and ilObjBibliographic\writeSourcefileEntriesToDb().