Skip to content

yowcow/p6-String-CamelCase

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
t
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build Status

NAME

String::CamelCase - Camelizes and decamelizes given string

SYNOPSIS

use String::CamelCase;

DESCRIPTION

String::CamelCase is a module to camelize and decamelize a string.

FUNCTIONS

Following functions are exported:

camelize (Str) returns Str

camelize("hoge_fuga");
# => "HogeFuga"

camelize("hoge-fuga");
# => "HogeFuga"

decamelize (Str, [Str $expr = '-']) returns Str

decamelize("HogeFuga");
# => hoge-fuga

decamelize("HogeFuga", "_");
# => hoge_fuga

wordsplit (Str) returns List

wordsplit("HogeFuga");
# => ["Hoge", "Fuga"]

wordsplit("hoge-fuga");
# => ["hoge", "fuga"]

SEE ALSO

String::CamelCase

AUTHOR

Yoko Ohyama yowcow@cpan.org

COPYRIGHT AND LICENSE

Copyright 2015 yowcow

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

About

Camelize and decamelize a string

Resources

License

Stars

Watchers

Forks

Packages

No packages published