decodeReverse

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 6 08:58:25 PST 2015


On 1/5/15 10:43 PM, HaraldZealot wrote:
> For my particular project (it binds with something like finite state
> machine) I will write some counterpart of decode function from std.utf.
> Future function will decode string backward, return dchar and change
> index passed by reference.
>
> Is it interesting for community that I code this feature in general way
> targeting in phobos for future?

back() and popBack() for narrow strings do reverse decode. -- Andrei


More information about the Digitalmars-d mailing list