D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3225 - std.string function name casing
Summary: std.string function name casing
Status: RESOLVED REMIND
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 minor
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-04 00:40 UTC by John Chapman
Modified: 2015-06-09 05:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description John Chapman 2009-08-04 00:40:10 UTC
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 Andrei Alexandrescu 2009-08-04 09:33:38 UTC
thanks
Comment 2 Andrei Alexandrescu 2009-08-28 10:51:52 UTC
This makes sense but the names as chosen reflect existing Python and Ruby APIs. I'm not sure how to proceed about this. Thoughts?