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)
  2. int opApply(int delegate(size_t, XMLCh) deleg)
    class DOMString
    int
    opApply
    (
    scope int delegate
    (
    size_t
    ,)
    deleg
    )

Meta