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) | |
| strToLower ($a_string) | |
| strToUpper ($a_string) | |
Multi byte sensitive string functions.
Definition at line 32 of file class.ilStr.php.
| ilStr::strLen | ( | $ | a_string | ) |
Definition at line 58 of file class.ilStr.php.
Referenced by ilObjQuestionPool::_getFullPathToQpl(), ilObjQuestionPoolGUI::deleteExportFileObject(), ilUtil::shortenText(), and ilUtil::shortenWords().
{
if (function_exists("mb_strlen"))
{
return mb_strlen($a_string, "UTF-8");
}
else
{
return strlen($a_string);
}
}
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 assTextQuestion::isKeywordMatching(), and ilUtil::shortenText().
{
if (function_exists("mb_strpos"))
{
return mb_strpos($a_haystack, $a_needle, $a_offset, "UTF-8");
}
else
{
return strpos($a_haystack, $a_needle, $a_offset);
}
}
Here is the caller graph for this function:| ilStr::strToLower | ( | $ | a_string | ) |
Definition at line 70 of file class.ilStr.php.
Referenced by assClozeTest::getTextgapPoints(), assTextSubset::isAnswerCorrect(), and assTextQuestion::isKeywordMatching().
{
if (function_exists("mb_strtolower"))
{
return mb_strtolower($a_string, "UTF-8");
}
else
{
return strtolower($a_string);
}
}
Here is the caller graph for this function:| ilStr::strToUpper | ( | $ | a_string | ) |
Definition at line 82 of file class.ilStr.php.
{
if (function_exists("mb_strtoupper"))
{
return mb_strtoupper($a_string, "UTF-8");
}
else
{
return strtoupper($a_string);
}
}
| ilStr::subStr | ( | $ | a_str, | |
| $ | a_start, | |||
| $ | a_length = NULL | |||
| ) |
Definition at line 34 of file class.ilStr.php.
Referenced by ilObjQuestionPool::_getFullPathToQpl(), ilObjQuestionPoolGUI::deleteExportFileObject(), assTextQuestion::saveWorkingData(), ilUtil::shortenText(), and ilUtil::shortenWords().
{
if (function_exists("mb_substr"))
{
return mb_substr($a_str, $a_start, $a_length, "UTF-8");
}
else
{
return substr($a_str, $a_start, $a_length);
}
}
Here is the caller graph for this function:
1.7.1