DOMString.opApply

foreach iteration uses opApply, since one delegate call per loop iteration is faster than three virtual function calls. TO DO: Use metaprogramming to make it able to be used in all sorts of context.

  1. int opApply(int delegate(XMLCh) deleg)
    class DOMString
    int
    opApply
    (
    scope int delegate deleg
    )
  2. int opApply(int delegate(size_t, XMLCh) deleg)

Meta