|
1 | 1 | # coldfusion-inflector |
2 | 2 |
|
3 | 3 | This is a ColdFusion component which provides the ability to transform |
4 | | -words from singular to plural (and back again), capitalises, CamelCases |
| 4 | +words from singular to plural (and back again), capitalises, PascalCase or CamelCases |
5 | 5 | and humanises. It is based on the Ruby on Rails |
6 | 6 | [ActiveSupport::Inflector][rails-inflector] class. |
7 | 7 |
|
@@ -32,23 +32,21 @@ Pluralisation and singularisation both take into account: |
32 | 32 |
|
33 | 33 | * `capitalise` capitalises the first character in a string: `test` |
34 | 34 | becomes `Test` |
35 | | -* `CamelCase` converts a given string to CamelCase, with all |
36 | | - non-alphanumeric characters stripped: `camel_case` becomes `CamelCase` |
| 35 | +* `camelCase` converts a given string to CamelCase, with all |
| 36 | + non-alphanumeric characters stripped: `camel_case` becomes `camelCase` |
| 37 | +* `PascalCase` converts a given string to PascalCase, with all |
| 38 | + non-alphanumeric characters stripped: `pascal_case` becomes `PascalCase` |
37 | 39 | * `variablise` converts a string to an underscore-separated list: |
38 | | - `CamelCase` becomes `camel_case` |
| 40 | + `PascalCase` or `camelCase` becomes `camel_case` |
39 | 41 | * `humanise` converts a string to a human-readable form: |
40 | | - `CamelCase` becomes `Camel Case` |
| 42 | + `PascalCase` or `CamelCase` becomes `Camel Case` |
41 | 43 | * `pad` pads a given string with spaces. |
42 | 44 |
|
43 | 45 | See `test/tests/InflectorTest.cfc` for how other strings are handled. |
44 | 46 |
|
45 | 47 | ## Licensing and Attribution |
46 | 48 |
|
47 | | -coldfusion-inflector was developed by [Tim Blair][timblair] and is |
| 49 | +coldfusion-inflector was originally developed by [Tim Blair][timblair] and updated by [TeamCFML][teamCFML] and is |
48 | 50 | released under the MIT license as detailed in the LICENSE file that |
49 | 51 | should be distributed with this library; the source code is |
50 | | -[freely available](http://github.com/timblair/coldfusion-inflector). |
51 | | - |
52 | | -[rails-inflector]: http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html |
53 | | -[timblair]: http://tim.bla.ir/ |
54 | | -[cf-inflector]: http://github.com/timblair/coldfusion-inflector |
| 52 | +[freely available](https://github.com/TeamCFML/coldfusion-inflector). |
0 commit comments