String Class Extensions

Provides various extensions to the JavaScript String class.

Class Members

MemberDescription
format Provides a very simplistic C# like string.Format functionality.
String.format(formatString)
htmlEncode HTML encodes an HTML string ensuring that HTML is displayed as text.
o.String.htmlEncode()
padL Pads a string to the left with the specified character.
o.String.padL(width,pad)
padR Pads a string on the right with a given pad character.
o.String.padR(width,pad)
repeat Static string extension that allows creating a repeated string.
String.repeat(chr,count)
trimEnd Trims white space off the end of a string.
o.String.trimEnd()
trimStart Trims white space off the beginning of a string.
o.String.trimStart()

Requirements

See also:

Class String

  Last Updated: 4/6/2008 | © West Wind Technologies, 2008