- STRING METHODS
- SEE ALSO
- COPYRIGHT AND LICENSE
autobox::Camelize - autobox methods for (de)camelcasing
This document describes version 0.001 of autobox::Camelize - released March 17, 2013 as part of autobox-Camelize.
use autobox::Camelize; # $foo is 'this_is__my__name' my $foo = 'ThisIs::My::Name'->decamelize; # $bar is 'ThisIs::NotMy::Name' my $bar = 'this_is__not_my__name'->camelize;
This is a simple set of autobox methods that work on strings, and camelize/decamelize them according to how the author thinks camelization should work:
Camelizing replaces '__[a-z]' with '::[A-Z]', and '_[a-z]' with '[A-Z]'. The first character is capitalized.
Decamelizing replaces '::[A-Z]' with '__[a-z]', and '[A-Z]' with '_[a-z]'. The first character is lowercased.
Camelize a string.
Decamelize a string.
Please see those modules/websites for more information related to this module.
Please report any bugs or feature requests on the bugtracker website https://github.com/RsrchBoy/autobox-Camelize/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Chris Weyl <firstname.lastname@example.org>
This software is Copyright (c) 2012 by Chris Weyl.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999