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.
License:
Authors:
Walter Bright, Sean Kelly
Source rt/aApplyR.d
- alias
dg_t
= int delegate(void* c); - Delegate type corresponding to transformed loop bodyThe parameter is a pointer to the current char, wchar or dcharReturns:non-zero when a break statement is hit
- int
_aApplyRcd1
(scope const(char)[]aa
, dg_tdg
);
int_aApplyRwd1
(scope const(wchar)[]aa
, dg_tdg
);
int_aApplyRcw1
(scope const(char)[]aa
, dg_tdg
);
int_aApplyRwc1
(scope const(wchar)[]aa
, dg_tdg
);
int_aApplyRdc1
(scope const(dchar)[]aa
, dg_tdg
);
int_aApplyRdw1
(scope const(dchar)[]aa
, dg_tdg
); - Same as _aApplyXXX functions, but for foreach_reverseParameters:
const(char)[] aa
input string dg_t dg
foreach body transformed into a delegate, similar to opApply Returns:non-zero when the loop was exited through a break - alias
dg2_t
= int delegate(void* i, void* c); - Delegate type corresponding to transformed loop bodyParameters are pointers to a size_t loop index, and the current char, wchar or dchar.Returns:non-zero when a break statement is hit
- int
_aApplyRcd2
(scope const(char)[]aa
, dg2_tdg
);
int_aApplyRwd2
(scope const(wchar)[]aa
, dg2_tdg
);
int_aApplyRcw2
(scope const(char)[]aa
, dg2_tdg
);
int_aApplyRwc2
(scope const(wchar)[]aa
, dg2_tdg
);
int_aApplyRdc2
(scope const(dchar)[]aa
, dg2_tdg
);
int_aApplyRdw2
(scope const(dchar)[]aa
, dg2_tdg
); - Variants of aApplyRXXX that include a loop index.
Copyright © 1999-2024 by the D Language Foundation | Page generated by
Ddoc on Sun Nov 17 01:08:12 2024