https://issues.dlang.org/show_bug.cgi?id=14564

Илья Ярошенко <ilyayaroshe...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilyayaroshe...@gmail.com

--- Comment #4 from Илья Ярошенко <ilyayaroshe...@gmail.com> ---
(In reply to Vladimir Panteleev from comment #3)
> -property is going away, but let's see what the maintainers say.
> 
> Introduced in https://github.com/D-Programming-Language/phobos/pull/2723

Also introduced in std.uni (c.isWhite):

@trusted int comparePropertyName(Char1, Char2)(const(Char1)[] a, const(Char2)[]
b)
{
    import std.ascii : toLower;
    import std.algorithm : cmp, map, filter;
    static bool pred(dchar c) {return !c.isWhite && c != '-' && c != '_';}
    return cmp(
        a.map!toLower.filter!pred,
        b.map!toLower.filter!pred);
}

--

Reply via email to