Description

Reference Countered string

Package Information

Version0.0.6 (2016-Sep-29)
Homepage https://github.com/burner/std.rcstring
Repository https://github.com/burner/std.rcstring
LicenseBOOST
CopyrightCopyright © 2016, burner
AuthorsRobert burner Schadek
Registered byRobert Schadek
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

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

Available versions

0.0.6 0.0.5 0.0.4 0.0.3 0.0.2 0.0.1 ~master