Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

rt.aApplyR

This code handles decoding UTF strings for foreach_reverse loops. There are 6 combinations of conversions between char, wchar, and dchar, and 2 of each of those.
Authors:
Walter Bright, Sean Kelly
alias dg_t = int delegate(void*);
int _aApplyRwd1(in wchar[] aa, dg_t dg);
int _aApplyRcw1(in char[] aa, dg_t dg);
int _aApplyRwc1(in wchar[] aa, dg_t dg);
int _aApplyRdc1(in dchar[] aa, dg_t dg);
int _aApplyRdw1(in dchar[] aa, dg_t dg);
alias dg2_t = int delegate(void*, void*);
int _aApplyRwd2(in wchar[] aa, dg2_t dg);
int _aApplyRcw2(in char[] aa, dg2_t dg);
int _aApplyRwc2(in wchar[] aa, dg2_t dg);
int _aApplyRdc2(in dchar[] aa, dg2_t dg);
int _aApplyRdw2(in dchar[] aa, dg2_t dg);