|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Multi byte sensitive string functions. More...
Collaboration diagram for ilStr:Static Public Member Functions | |
| static | subStr ($a_str, $a_start, $a_length=null) |
| static | strPos ($a_haystack, $a_needle, $a_offset=null) |
| static | strrPos ($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. More... | |
| static | shortenText ($a_string, $a_start_pos, $a_num_bytes, $a_encoding='UTF-8') |
| Shorten text to the given number of bytes. More... | |
| static | isUtf8 ($a_str) |
| Check whether string is utf-8. More... | |
| static | strPosAll ($a_haystack, $a_needle) |
| Get all positions of a string. More... | |
| static | replaceFirsOccurence ($a_old, $a_new, $a_str) |
| Replaces the first occurence of $a_old in $a_str with $a_new. More... | |
| static | convertUpperCamelCaseToUnderscoreCase ($value) |
| Convert a value given in camel case conversion to underscore case conversion (e.g. More... | |
| static | getBytesForString ($a_str) |
| Return string as byte array Note: Use this for debugging purposes only. More... | |
| static | normalizeUtf8String ($a_str) |
| Normalize UTF8 string. More... | |
|
static |
Convert a value given in camel case conversion to underscore case conversion (e.g.
MyClass to my_class)
| string | $value | Value in lower camel case conversion |
Definition at line 232 of file class.ilStr.php.
Referenced by ilAbstractBuddySystemRelationStateButtonRenderer\__construct(), ilContactUserActionProvider\collectActionsForTargetUser(), ilAbstractBuddySystemRelationStateButtonRenderer\renderStateButton(), ilAbstractBuddySystemRelationStateButtonRenderer\renderTargetState(), ilMailSearchCoursesGUI\showMembers(), and ilMailSearchGroupsGUI\showMembers().
Here is the caller graph for this function:
|
static |
Return string as byte array Note: Use this for debugging purposes only.
If strlen is overwritten by mb_ functions (PHP config) this will return not all characters
| string | $a_str | string |
Definition at line 249 of file class.ilStr.php.
References $i.
Referenced by ilObjFile\createProperties().
Here is the caller graph for this function:
|
static |
Check whether string is utf-8.
Definition at line 149 of file class.ilStr.php.
References $i.
Referenced by ilObjLanguage\check(), ilDclBaseFieldModel\checkTitlesForImport(), and ilDclTextFieldModel\checkTitlesForImport().
Here is the caller graph for this function:
|
static |
Normalize UTF8 string.
| string | $a_str | string |
Definition at line 264 of file class.ilStr.php.
References UtfNormal\toNFC().
Referenced by ilDragDropFileInputGUI\checkInput(), ilFileInputGUI\checkInput(), and ilFileWizardInputGUI\checkInput().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Replaces the first occurence of $a_old in $a_str with $a_new.
Definition at line 219 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 138 of file class.ilStr.php.
Referenced by ilPageObject\truncateHTML().
Here is the caller graph for this function:
|
static |
Compare two strings.
Definition at line 109 of file class.ilStr.php.
References $DIC, and 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 48 of file class.ilStr.php.
Referenced by ilPCParagraph\linkTermsInDom().
Here is the caller graph for this function:
|
static |
Definition at line 78 of file class.ilStr.php.
Referenced by ilObjQuestionPool\_getFullPathToQpl(), ilICalWriter\addLine(), ilWikiPage\afterUpdate(), SurveyTextQuestion\checkUserInput(), assTextQuestion\countLetters(), ilObjWikiGUI\gotoPageObject(), ilUtil\isPassword(), ilPCParagraph\linkTermsInDom(), ilMailSearchGUI\lookupRecipientAsync(), ilMailFormGUI\lookupRecipientAsync(), ilObjForumAccess\prepareMessageForLists(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilUtil\shortenText(), ilUtil\shortenWords(), ilExcCriteriaText\validate(), and ilObjBibliographic\writeSourcefileEntriesToDb().
Here is the caller graph for this function:
|
static |
Definition at line 30 of file class.ilStr.php.
Referenced by assTextQuestion\isKeywordMatching(), ilPCParagraph\linkTermsInDom(), ilUtil\shortenText(), assOrderingHorizontal\splitAndTrimOrderElementText(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
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 205 of file class.ilStr.php.
Referenced by ilPageObjectGUI\insertPageToc().
Here is the caller graph for this function:
|
static |
Definition at line 39 of file class.ilStr.php.
Referenced by ilPCParagraph\linkTermsInDom().
Here is the caller graph for this function:
|
static |
Definition at line 87 of file class.ilStr.php.
Referenced by ilTree\getNodePathForTitlePath(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), and ilMailAutoCompleteSentMailsRecipientsProvider\valid().
Here is the caller graph for this function:
|
static |
Definition at line 96 of file class.ilStr.php.
Referenced by ilUtil\sort_func(), and strCmp().
Here is the caller graph for this function:
|
static |
Definition at line 15 of file class.ilStr.php.
Referenced by ilObjQuestionPool\_getFullPathToQpl(), ilSCORMCertificateAdapter\addAdditionalFormElements(), ilICalWriter\addLine(), ilForumAuthorInformation\init(), ilPCParagraph\linkTermsInDom(), ilObjForumAccess\prepareMessageForLists(), SurveyTextQuestion\saveUserInput(), ilAssQuestionSkillAssignmentRegistry\setStringifiedImports(), ilUtil\shortenText(), ilUtil\shortenWords(), and ilObjBibliographic\writeSourcefileEntriesToDb().
Here is the caller graph for this function: