Strings
[ class tree: Strings ] [ index: Strings ] [ all elements ]

Class: STRLeetSpeak

Source Location: /STRleetSpeak.php

Class Overview

Strings
   |
   --STRLeetSpeak

This class manages LeetSpeak objects. This class manages STRLeetSpeak strings objects.


Author(s):

Version:

  • 1.1

Variables

Methods


Inherited Variables

Inherited Methods

Class: Strings

Strings::__construct()
Construction function
Strings::console()
Console function
Strings::IsUTF8()
UTF8 detection function
Strings::QuoteStrip()
Quotes stripping function
Strings::RemoveAccent()
Accents removal function
Strings::RemoveSpaces()
Spaces removal function
Strings::stringHasNumbers()
Numbers detection function
Strings::ToUTF8()
UTF8 conversion function
Strings::ucwordsw()
Special uppercase function

Class Details

[line 37]
This class manages LeetSpeak objects. This class manages STRLeetSpeak strings objects.

Created on 01 jan 09

Changes: 1.0 -> 1.1: 21 jul 09 added: file is PEAR compatible which is deprecated for HTMLInputOpen()




Tags:

author:  Pierre-Dominique Vienne <pvienne@me.com>
version:  1.1
license:  GNU Public License


[ Top ]


Class Variables

$aFromChars = array(
       'a',
       'b',
       'c',
       'd',
       'e',
       'f',
       'g',
       'h',
       'i',
       'j',
       'k',
       'l',
       'm',
       'n',
       'o',
       'p',
       'q',
       'r',
       's',
       't',
       'u',
       'v',
       'w',
       'x',
       'y',
       'z'
    )

[line 43]

Variable that defines characters to be converted



Tags:

access:  protected

Type:   array


[ Top ]

$aToChars = array(
       '4',
       '6',
       '¢',
       '|)',
       '3',
       ']=',
       '&',
       '/-/',
       '1',
       '_|',
       '|X',
       '£',
       '/\\/\\',
       '|\\|',
       '0',
       '|*',
       '(_,)',
       '2',
       '5',
       '7',
       'µ',
       '\\/',
       '\\/\\/',
       '%',
       'φ',
       '~/_'
    )

[line 75]

Variable that defines leet characters resulting



Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


method fromLeet [line 169]

string fromLeet( string $this->value)

fromleet conversion function

This function is used to convert a leet text into normal language Result is returned

  1.  <?php
  2.  $oLeetSpeak        new LeetSpeak();
  3.  $oLeetSpeak->value "]=00 642";
  4.  echo $oLeetSpeak->fromLeet();
  5.  // foo bar
  6.  ?>




Tags:

return:  transformed text
since:  version 1.0


Parameters:

string   $this->value   text to be processed (required)

[ Top ]

method toLeet [line 129]

string toLeet( string $this->value)

toleet conversion function

This function is used to convert a text into leet language Result is returned

  1.  <?php
  2.  $oLeetSpeak        new LeetSpeak();
  3.  $oLeetSpeak->value "foo bar";
  4.  echo $oLeetSpeak->toLeet();
  5.  // ]=00 642
  6.  ?>




Tags:

return:  transformed text
since:  version 1.0


Parameters:

string   $this->value   text to be processed (required)

[ Top ]


Documentation generated on Wed, 26 Aug 2009 12:30:46 +0200 by phpDocumentor 1.4.1