Skip to content

A reference counted string implementation for D's build in string construct.

Notifications You must be signed in to change notification settings

burner/std.rcstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCString a reference counted string

The module rcstring provides everything necessary to replace D's build-in strings with a reference counted version. It should be as easy as replacing all occurrences of the keyword string with String.

Additional, to String there are WString and DString defined in this module.

String str = "Hello World";
assert(str.front == "H");
assert(str.back == "d");

auto slice = str[1 .. 5];
assert(slice == "ello");

slice.popFront();
assert(slice == "llo");

About

A reference counted string implementation for D's build in string construct.

Resources

Stars

Watchers

Forks

Packages

No packages published