Public Member Functions | |
| subStr ($a_str, $a_start, $a_length=NULL) | |
| strPos ($a_haystack, $a_needle, $a_offset=NULL) | |
| strLen ($a_string) | |
Definition at line 32 of file class.ilStr.php.
| ilStr::strLen | ( | $ | a_string | ) |
Definition at line 58 of file class.ilStr.php.
Referenced by ilUtil::shortenText().
{
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 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::subStr | ( | $ | a_str, | |
| $ | a_start, | |||
| $ | a_length = NULL | |||
| ) |
Definition at line 34 of file class.ilStr.php.
Referenced by ilUtil::shortenText().
{
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