[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/data/ -> stringutils.class.php (sommaire)

(pas de description)

Poids: 122 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 4 fois
Nécessite: 0 fichiers

Définit 1 class

StringUtils:: (6 méthodes):
  htmlTranslate()
  cutString()
  getLinks()
  formatSize()
  text2url()
  pad()


Classe: StringUtils  - X-Ref

\ingroup Data

Basic methods for formatting or doing nasty things to strings :-)
htmlTranslate( $string )   X-Ref
Alias for htmlspecialchars


cutString( $string, $n )   X-Ref
cuts a string at a given character

param: string
param: n
return: The reduced string

getLinks( $string )   X-Ref
Returns an array with all the links in a string.

param: string The string
return: An array with the links in the string.

formatSize( $size )   X-Ref
Returns a size formatted and with its unit: "bytes", "KB", "MB" or "GB"

param: size The amount
return: A string with the formatted size.

text2url( $string )   X-Ref
Returns a string in a readable and url-compliant format.

param: string The string
return: A string ready to use in urls.

pad( $count, $char = " ")   X-Ref
extremely lame function.

param: count how many times we'd like to repeat the character
param: char The character (or string) we'd like to repeat
return: The resulting string



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics