[Issue 10717] std.ascii.toLower and toUpper should return char instead of dchar and avoid me to use a bad cast(char)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 31 02:43:47 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10717


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #5 from monarchdodra at gmail.com 2013-07-31 02:43:39 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > https://github.com/D-Programming-Language/phobos/pull/1436
> 
> Thank you again Jonathan :-)

The new semantics are:

//----
If $(D c) is an uppercase ASCII character, then its corresponding lowercase
letter is returned. Otherwise, $(D c) is returned.

$(D C) can be any type which implicitly converts to $(D dchar). In the case
where it's a built-in type, $(D Unqual!C) is returned, whereas if it's a
user-defined type, $(D dchar) is returned.
//----

Does this fit the bill, or do you see anything else that needs to be addressed?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list