Public Member Functions

ilStr Class Reference

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)

Detailed Description

Definition at line 33 of file class.ilStr.php.


Member Function Documentation

ilStr::strLen ( a_string  ) 

Definition at line 59 of file class.ilStr.php.

Referenced by ilObjQuestionPoolGUI::deleteExportFileObject(), assClozeTest::getColumnSize(), and 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 47 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 71 of file class.ilStr.php.

Referenced by 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 83 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 35 of file class.ilStr.php.

Referenced by ilObjQuestionPoolGUI::deleteExportFileObject(), assTextQuestion::saveWorkingData(), and 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:


The documentation for this class was generated from the following file: