std.string.inPattern()
Lutger
lutger.blijdestijn at gmail.com
Mon Oct 22 04:30:43 PDT 2007
Janice Caron wrote:
> I noticed in the docs that the pattern parameter to inPattern is
> specified as an array of chars, not an array of dchars.
>
> I realise that one can easily be converted to the other, but it leaves
> me wondering ... does inPattern() work with non-ASCII characters? Can
> I, for example, specify "\u0100-\u0200" as a range and expect it to
> work?
Should work, inPattern converts pattern's chars to dchars internally.
> Also, it's not clear how to match a minus sign.
Put it as the first or last character of the pattern argument and it'll
work.
More information about the Digitalmars-d
mailing list