string-transform-d 1.0.0
Library to perform basic string transforms (camelCase, snake_case and plurals)
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
String Transforms D
Basic inflection and pluralization libarary for D
Currently includes only English for pluralization but is enough of a framework to add other languages easily enough.
Case Example
import transforms.camel;
import transforms.snake;
auto camel = "get_http_response_code".camelCase;
assert (camel == "getHttpResponseCode");
auto snake = camel.snakeCase;
assert (snake == "get_http_response_code");
Pluralization Example
import inflections.en;
assert("apple".pluralize == "apples");
assert("apples".singularize == "apple");
- 1.0.0 released 8 years ago
- intrica/string-transform.d
- MIT
- Copyright © 2016, David Monagle
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2016-Jan-30 ~master 2016-Jan-30 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
3225 downloads total
-
- Score:
- 0.8
- Short URL:
- string-transform-d.dub.pm