|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 |
String assignAll()
String camelize()
String capitalize()
String cut(<Number> p1, <Number> p2)
p1 - Cut start position
p2 - Cut end position
Boolean empty()
Boolean equalsIgnoreCase(<String> str)
str - String to compare
String escapeHTML()
void evalScripts()
void evalScriptsDelayed(<Integer> t)
t - Delay in miliseconds
Boolean find(<String> str)
str - Substring to be searched
String insert(<String> val, <Number> at)
val - Value to insert
at - Insert position
String pad(<String> pad, <Number> len, <String> type)
pad - Pad substring
len - Final length
type - Pad type
String repeat(<Number> n)
n - Times to repeat the string
String serialize()
String splice(<Number> offset, <Number> len, <String> replace)
offset - Cut start position
len - Cut length
replace - Replacement value
String stripScripts()
String stripSpaces()
String stripTags()
Array toArray()
String trim()
String urlEncode()
String wrap(<String> l, <String> r)
l - Wrap for left side
r - Wrap for right side
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||