API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JString::ltrim | ( | $ | str, |
$ | charlist = FALSE |
||
) | [static] |
UTF-8 aware replacement for ltrim() Strip whitespace (or other characters) from the beginning of a string Note: you only need to use this if you are supplying the charlist optional arg and it contains UTF-8 characters. Otherwise ltrim will work normally on a UTF-8 string
public
string | the string to be trimmed |
string | the optional charlist of additional characters to trim |
Références jimport(), et utf8_ltrim().
JString::rtrim | ( | $ | str, |
$ | charlist = FALSE |
||
) | [static] |
UTF-8 aware replacement for rtrim() Strip whitespace (or other characters) from the end of a string Note: you only need to use this if you are supplying the charlist optional arg and it contains UTF-8 characters. Otherwise rtrim will work normally on a UTF-8 string
public
string | the string to be trimmed |
string | the optional charlist of additional characters to trim |
Références jimport(), et utf8_rtrim().
JString::str_ireplace | ( | $ | search, |
$ | replace, | ||
$ | str, | ||
$ | count = NULL |
||
) | [static] |
UTF-8 aware alternative to str_ireplace Case-insensitive version of str_replace
public
string | string to search |
string | existing string to replace |
string | new string to replace with |
int | optional count value to be passed by referene |
Références $count, jimport(), et utf8_ireplace().
Référencé par JTableContent::check(), et plgEmailCloak().
JString::str_split | ( | $ | str, |
$ | split_len = 1 |
||
) | [static] |
UTF-8 aware alternative to str_split Convert a string to an array
public
string | UTF-8 encoded |
int | number to characters to split string by |
Références jimport(), et utf8_str_split().
JString::strcasecmp | ( | $ | str1, |
$ | str2 | ||
) | [static] |
UTF-8 aware alternative to strcasecmp A case insensivite string comparison
public
string | string 1 to compare |
string | string 2 to compare |
Références jimport(), et utf8_strcasecmp().
JString::strcspn | ( | $ | str, |
$ | mask, | ||
$ | start = NULL , |
||
$ | length = NULL |
||
) | [static] |
UTF-8 aware alternative to strcspn Find length of initial segment not matching mask
public
string | |
string | the mask |
int | Optional starting character position (in characters) |
int | Optional length |
Références $start, jimport(), et utf8_strcspn().
JString::stristr | ( | $ | str, |
$ | search | ||
) | [static] |
UTF-8 aware alternative to stristr Returns all of haystack from the first occurrence of needle to the end. needle and haystack are examined in a case-insensitive manner Find first occurrence of a string using case insensitive comparison
public
string | the haystack |
string | the needle |
Références jimport(), et utf8_stristr().
Référencé par ContactController::_checkText(), et SearchHelper::checkNoHtml().
JString::strlen | ( | $ | str | ) |
UTF-8 aware alternative to strlen Returns the number of characters in the string (NOT THE NUMBER OF BYTES),
public
string | UTF-8 string |
Références utf8_strlen().
Référencé par ContentViewArticle::_displayForm(), SearchHelper::_smartSubstr(), JHTMLList::genericordering(), SearchHelper::limitSearchWord(), et SearchHelper::santiseSearchWord().
JString::strpos | ( | $ | str, |
$ | search, | ||
$ | offset = FALSE |
||
) | [static] |
UTF-8 aware alternative to strpos Find position of first occurrence of a string
public
$str | - string String being examined |
$search | - string String being searced for |
$offset | - int Optional, specifies the position from which the search should be performed |
Références utf8_strpos().
Référencé par SearchHelper::_smartSubstr(), modRandomImageHelper::getFolder(), getHelpTOC(), plgContentGeshi(), plgContentLoadModule(), plgEmailCloak(), et plgEmailCloakString().
JString::strrev | ( | $ | str | ) | [static] |
UTF-8 aware alternative to strrev Reverse a string
public
string | String to be reversed |
Références jimport(), et utf8_strrev().
JString::strrpos | ( | $ | str, |
$ | search | ||
) | [static] |
UTF-8 aware alternative to strrpos Finds position of last occurrence of a string
public
$str | - string String being examined |
$search | - string String being searced for |
Références utf8_strrpos().
JString::strspn | ( | $ | str, |
$ | mask, | ||
$ | start = NULL , |
||
$ | length = NULL |
||
) | [static] |
UTF-8 aware alternative to strspn Find length of initial segment matching mask
public
string | the haystack |
string | the mask |
int | start optional |
int | length optional |
Références $start, jimport(), et utf8_strspn().
JString::strtolower | ( | $ | str | ) |
UTF-8 aware alternative to strtlower Make a string lowercase Note: The concept of a characters "case" only exists is some alphabets such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does not exist in the Chinese alphabet, for example. See Unicode Standard Annex #21: Case Mappings
public
string |
Références utf8_strtolower().
Référencé par WeblinksModelWeblinks::_buildContentWhere(), ContentModelSection::_buildContentWhere(), ContentModelCategory::_buildContentWhere(), ContentModelArchive::_buildContentWhere(), JButtonStandard::_getCommand(), JButtonConfirm::_getCommand(), ContentViewElement::_getLists(), MenusViewList::_getViewLists(), InstallerModelTemplates::_loadItems(), InstallerModelLanguages::_loadItems(), InstallerModelComponents::_loadItems(), SearchHelper::_smartSubstr(), SearchViewSearch::display(), WeblinksViewWeblinks::display(), UsersViewUsers::display(), PollViewPolls::display(), PluginsViewPlugins::display(), BannerControllerClient::display(), BannerControllerBanner::display(), SearchModelSearch::getItems(), MenusModelList::getItems(), ContentModelElement::getList(), TemplatesHelper::parseXMLTemplateFile(), SearchHelper::santiseSearchWord(), showCategories(), showContacts(), showMessages(), showNewsFeeds(), showSections(), ContentController::viewContent(), viewFrontPage(), viewTrashContent(), et viewTrashMenu().
JString::strtoupper | ( | $ | str | ) |
UTF-8 aware alternative to strtoupper Make a string uppercase Note: The concept of a characters "case" only exists is some alphabets such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does not exist in the Chinese alphabet, for example. See Unicode Standard Annex #21: Case Mappings
public
string |
Références utf8_strtoupper().
JString::substr | ( | $ | str, |
$ | offset, | ||
$ | length = FALSE |
||
) | [static] |
UTF-8 aware alternative to substr Return part of a string given character offset (and optionally length)
public
string | |
integer | number of UTF-8 characters offset (from left) |
integer | (optional) length in UTF-8 characters from offset |
Références utf8_substr().
Référencé par TOOLBAR_categories::_DEFAULT(), SearchHelper::_smartSubstr(), JHTMLList::genericordering(), et SearchHelper::limitSearchWord().
JString::substr_replace | ( | $ | str, |
$ | repl, | ||
$ | start, | ||
$ | length = NULL |
||
) | [static] |
UTF-8 aware substr_replace Replace text within a portion of a string
public
string | the haystack |
string | the replacement string |
int | start |
int | length (optional) |
Références $start, et utf8_substr_replace().
JString::transcode | ( | $ | source, |
$ | from_encoding, | ||
$ | to_encoding | ||
) | [static] |
Transcode a string.
string | $source | The string to transcode. |
string | $from_encoding | The source encoding. |
string | $to_encoding | The target encoding. |
JString::trim | ( | $ | str, |
$ | charlist = FALSE |
||
) | [static] |
UTF-8 aware replacement for trim() Strip whitespace (or other characters) from the beginning and end of a string Note: you only need to use this if you are supplying the charlist optional arg and it contains UTF-8 characters. Otherwise trim will work normally on a UTF-8 string
public
string | the string to be trimmed |
string | the optional charlist of additional characters to trim |
Références jimport(), et utf8_trim().
JString::ucfirst | ( | $ | str | ) | [static] |
UTF-8 aware alternative to ucfirst Make a string's first character uppercase
public
string |
Références jimport(), et utf8_ucfirst().
JString::ucwords | ( | $ | str | ) | [static] |
UTF-8 aware alternative to ucwords Uppercase the first character of each word in a string
public
string |
Références jimport(), et utf8_ucwords().