Skip to content

dmonagle/string-transform.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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");

About

D library to perform basic string transforms (camelCase, snake_case and plurals)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages