API17

Difference between revisions of "JString::strlen"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (preparing for archive only)
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
UTF-8 aware alternative to strlen Returns the number of characters in the string (NOT THE NUMBER OF BYTES),.  
 
UTF-8 aware alternative to strlen Returns the number of characters in the string (NOT THE NUMBER OF BYTES),.  
  
{{Description:JString::strlen}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JString::strlen|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JString::strlen ($str)
+
public static function strlen ($str)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 22: Line 19:
 
|string
 
|string
 
|
 
|
|UTF-8 string  
+
|UTF-8 string
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' int number of UTF-8 characters in string
int number of UTF-8 characters in string
+
* '''Defined''' on line 146 of libraries/joomla/utilities/string.php
===Defined in===
+
* '''Referenced by'''
libraries/joomla/utilities/string.php
+
** [[API17:JHtmlString::abridge|JHtmlString::abridge]]
===Referenced by===
+
** [[compliant|compliant]]
* [[JHtmlString/abridge/11.1|JHtmlString::abridge]]
+
** [[API17:JHtmlList::genericordering|JHtmlList::genericordering]]
* [[compliant/11.1|compliant]]
+
** [[API17:JHtmlString::truncate|JHtmlString::truncate]]
* [[JHtmlList/genericordering/11.1|JHtmlList::genericordering]]
+
** [[valid|valid]]
* [[JHtmlString/truncate/11.1|JHtmlString::truncate]]
 
* [[valid/11.1|valid]]
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JString::strlen source code''' on [[jplatform:utilities/string.php#cl-138|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JString::strlen|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JString|JString]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
* [[JString/11.1|JString]]
+
* [[API17:JString::strlen|Other versions of JString::strlen]]
* [[JString::strlen|Other versions of this method]]
+
 
{{SeeAlso:JString::strlen}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JString::strlen
 
category=JString::strlen
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JString]][[Category:JString::strlen]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:45, 24 March 2017

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.

Joomla 11.1 JString::strlen[edit]

Description[edit]

UTF-8 aware alternative to strlen Returns the number of characters in the string (NOT THE NUMBER OF BYTES),.


public static function strlen ($str)
Parameter Type Default Description
$str string UTF-8 string

See also[edit]


User contributed notes[edit]

Code Examples[edit]