Great to see some new functionality in prototype.

I have a question about the position of the new toPaddedString method
for the Number class.

Shouldn't you have the pad method as part of the String class?

I would like to contribute some new String methods

String.Chr, String.Asc, String.prototype.addCommas,
String.prototype.left/mid/right, String.prototype.lTrim/trim/rTrim,
String.prototype.makePlural, String.prototype.pad

I've attached my code. It may be of use to you. As own pad method
names are different, I'm not in any trouble with a name conflict.


Richard Quadling.
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Attachment: enhanced_string.js
Description: JavaScript source

Reply via email to