Source code

CERNY.js.String

Adds some useful methods for the String prototype.

Uses

None

Functions

pad

Pad a string.

padChr (string) : the character which should be used for padding
length (number) : how many characters should the string have after padding
front (undefined,boolean) : if true, padding is added before the string
return (string) : the padded string

History

2007-05-17 : Using short names for method and signature.
2007-05-03 : Refactored.
2007-03-15 : Added signatures.
2007-01-06 : Added interception.
2007-01-05 : Fixed bug in require statement.
2004-10-27 : Created.

API Documentation for version

2.0

Scripts

2.0

Functions

Functions

pad

Support

If you have any question or suggestions regarding Cerny.js, do not hesitate to contact me. Your input is always welcome.