Report a bugIf you spot a problem with this page, click here to create a Bugzilla issue.
Improve this pageQuickly 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 usinga local clone.
rt.aApplyR
This code handles decoding UTF strings forforeach_reverse loops.
Authors:Walter Bright, Sean Kelly
alias
dg_t = int delegate(void* c);
Delegate type corresponding to transformed loop body
The parameter is a pointer to the currentchar,wchar ordchar
Returns:non-zero when abreak statement is hit
int
_aApplyRcd1(scope const(char)[]
aa, dg_t
dg);
int
_aApplyRwd1(scope const(wchar)[]
aa, dg_t
dg);
int
_aApplyRcw1(scope const(char)[]
aa, dg_t
dg);
int
_aApplyRwc1(scope const(wchar)[]
aa, dg_t
dg);
int
_aApplyRdc1(scope const(dchar)[]
aa, dg_t
dg);
int
_aApplyRdw1(scope const(dchar)[]
aa, dg_t
dg);
Same as_aApplyXXX functions, but forforeach_reverse
Parameters:const(char)[]aa | input string |
dg_tdg | foreach body transformed into a delegate, similar toopApply |
Returns:non-zero when the loop was exited through abreak
alias
dg2_t = int delegate(void* i, void* c);
Delegate type corresponding to transformed loop body
Parameters are pointers to asize_t loop index, and the currentchar,wchar ordchar.
Returns:non-zero when abreak statement is hit
int
_aApplyRcd2(scope const(char)[]
aa, dg2_t
dg);
int
_aApplyRwd2(scope const(wchar)[]
aa, dg2_t
dg);
int
_aApplyRcw2(scope const(char)[]
aa, dg2_t
dg);
int
_aApplyRwc2(scope const(wchar)[]
aa, dg2_t
dg);
int
_aApplyRdc2(scope const(dchar)[]
aa, dg2_t
dg);
int
_aApplyRdw2(scope const(dchar)[]
aa, dg2_t
dg);
Variants of aApplyRXXX that include a loop index.