joomla/joomla-platform — pull request #951 by robschley (2012-03-02 07:11:45+00:00)
Title: Added JStringNormalise::fromCamelCase()

JStringNormalise::fromCamelCase() will take a string in camel case format and convert it to a space separated string. I've added unit test to verify it works for some basic strings:

The input on the left will produce the output on the right:
FooBar => Foo Bar
fooBar => foo Bar
Foobar => Foobar
foobar => foobar

This currently only works for ASCII characters could be expanded to support a wider range of characters.