It's very good addition :) especially the new formating functions. I'll improve my MochiKit.String module so that one can create String instance with the new formating patterns.
Again, I'm too, agree with Arner. Try to follow Python conventions as much as possible. startsWith => startswith endsWith => endswith and so on... See `MochiKit.String.splitlines`, you can remove `splitJoin` as you one can easily do the same with `splitlines` (if it's all about triming newline chars). Regards -- Amit On Dec 17, 5:23 pm, "Per Cederberg" <[email protected]> wrote: > Hi everyone, > > I've just finished committing one of my planned additions to MochiKit > 1.5 -- a new MochiKit.Text module: > > http://www.mochikit.com/doc/html/MochiKit/Text.html > > It basically provides some of the text formatting stuff discussed here > on the list previously. With some random string utility functions > added on top. I chose the name "Text" instead of "String" or "Format" > for various reasons, but in the end I guess it is just a matter of > taste. Also, it avoids collisions with the "MochiKit.String" name > already in use by Amit. > > My plans for MochiKit.Text are as follows: > > 1. Collect more ideas and feedback (hence this email). > > 2. Migrate camelize, strip, lstrip, rstrip, truncToFixed, roundToFixed > and locale handling over to MochiKit.Text. Perhaps the remaining parts > of MochiKit.Format should be deprecated? > > 3. Implement some additional stuff like toTitleCase, isDigit, > isAlphaNumeric, etc. > > Please let me know what you think. > > Cheers, > > /Per --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
