Bug 3225 – std.string function name casing

Status
RESOLVED
Resolution
REMIND
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-08-04T00:40:00Z
Last change time
2015-06-09T05:15:13Z
Assigned to
andrei
Creator
johnch_atms

Comments

Comment #0 by johnch_atms — 2009-08-04T00:40:10Z
Most function names in Phobos use camel casing, but std.string seems to be a mix of all lowercase and camel case. Here's a list of offending functions and their more correct names. tolower -> toLower tolowerInPlace -> toLowerInPlace toupper -> toUpper toupperInPlace -> toUpperInPlace iswhite -> isWhite newline -> newLine hexdigits -> hexDigits capwords -> capWords splitlines -> splitLines expandtabs -> expandTabs maketrans -> makeTrans removechars -> removeChars
Comment #1 by andrei — 2009-08-04T09:33:38Z
thanks
Comment #2 by andrei — 2009-08-28T10:51:52Z
This makes sense but the names as chosen reflect existing Python and Ruby APIs. I'm not sure how to proceed about this. Thoughts?