PHP2Go Javascript Framework

Class String

Object
   |
   +--String

class String

Defined in php2go.js


 
Method Summary
 String assignAll()
           Replace all %N directives found in the string using the function arguments as replacements.
 String camelize()
           Convert the string to its camelized version.
 String capitalize()
           Capitalize the string
 String cut(<Number> p1, <Number> p2)
           Remove a slice from the string, starting at p1 and ending at p2
 Boolean empty()
           Checks if the string is empty
 Boolean equalsIgnoreCase(<String> str)
           Verifies if the string is equal to another string using case-insensitive comparison
 String escapeHTML()
           Escapes all HTML code inside the string and return a new string instance
 void evalScripts()
           Extract and evaluate all script blocks included in the string
 void evalScriptsDelayed(<Integer> t)
           Evaluate script blocks on the string after a delay of "t" miliseconds
 Boolean find(<String> str)
           Verifies if a given value is present on the string.
 String insert(<String> val, <Number> at)
           Insert a string inside another string in a given position
 String pad(<String> pad, <Number> len, <String> type)
           Fills the string until a given length using another substring.
 String repeat(<Number> n)
           Repeat the string 'n' times and return the resultant string
 String serialize()
           Dumps out the string, including starting and ending single quotes
 String splice(<Number> offset, <Number> len, <String> replace)
           Remove a portion of the string and replace it with something else
 String stripScripts()
           Remove <script> tags from the string
 String stripSpaces()
           Replace one or more blank chars by a single space in the string
 String stripTags()
           Remove HTML/XHTML tags from the string
 Array toArray()
           Converts the string into an array
 String trim()
           Removes blank chars from the start and from the end of the string
 String urlEncode()
           Cross-browser encoding function
 String wrap(<String> l, <String> r)
           Wraps the string in left and right sides.


Method Detail

assignAll

String assignAll()

camelize

String camelize()

capitalize

String capitalize()

cut

String cut(<Number> p1, <Number> p2)

empty

Boolean empty()

equalsIgnoreCase

Boolean equalsIgnoreCase(<String> str)

escapeHTML

String escapeHTML()

evalScripts

void evalScripts()

evalScriptsDelayed

void evalScriptsDelayed(<Integer> t)

find

Boolean find(<String> str)

insert

String insert(<String> val, <Number> at)

pad

String pad(<String> pad, <Number> len, <String> type)

repeat

String repeat(<Number> n)

serialize

String serialize()

splice

String splice(<Number> offset, <Number> len, <String> replace)

stripScripts

String stripScripts()

stripSpaces

String stripSpaces()

stripTags

String stripTags()

toArray

Array toArray()

trim

String trim()

urlEncode

String urlEncode()

wrap

String wrap(<String> l, <String> r)

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007