Difference between revisions of "JString::strcspn"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
(Layout updates) |
||
Line 43: | Line 43: | ||
int the length of the initial segment of str1 which does not contain any of the characters in str2 | int the length of the initial segment of str1 which does not contain any of the characters in str2 | ||
===Defined in=== | ===Defined in=== | ||
− | libraries/joomla/utilities/string.php | + | libraries/joomla/utilities/string.php (line 304) |
+ | * see source code in [[jplatform:utilities/string.php#cl-304|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
===See also=== | ===See also=== |
Revision as of 21:19, 23 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JString::strcspn[edit]
Description[edit]
UTF-8 aware alternative to strcspn Find length of initial segment not matching mask.
Template:Description:JString::strcspn [Edit Descripton]
Synopsis[edit]
public static JString::strcspn ($str, $mask, $start=NULL, $length=NULL)
Parameter | Type | Default | Description |
---|---|---|---|
$str | string | ||
$mask | string | the mask | |
$start | int | NULL | Optional starting character position (in characters) |
$length | int | NULL | Optional length |
Returns[edit]
int the length of the initial segment of str1 which does not contain any of the characters in str2
Defined in[edit]
libraries/joomla/utilities/string.php (line 304)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JString::strcspn
Examples[edit]
<CodeExamplesForm />