On 2011-01-21 08:57, Andrei Alexandrescu wrote:
The following symbols in std.string don't satisfy the Phobos naming
conventions and need to be renamed:

LS PS capwords countchars entab expandtabs hexdigits icmp iswhite
ljustify lowercase maketrans newline octdigits removechars rjustify
sformat splitlines stripl stripr tolower tolowerInPlace toupper
toupperInPlace tr whitespace zfill

Opinions on what to rename?


Thanks,

Andrei

LS -> lineSeparator/LineSeparator
PS -> paragraphSeparator/ParagraphSeparator
capwords -> capitalizeWords/capitalizeAll // should this function really mess with whitespaces ?

countchars -> countChars/count
entab -> entab/spacesToTabs
expandtabs -> expandTabs/tabsToSpaces
hexdigits -> hexDigits
icmp -> insensitiveCompare
iswhite -> isWhitespace
ljustify -> leftJustify /justifyLeft
lowercase -> lowercaseChars
maketrans -> makeTranslationTable // is this really needed, can't translate to this

newline -> newline
octdigits -> octalDigits
removechars -> removeChars/remove
rjustify -> rightJustify/justifyRight
sformat -> formatInPlace
splitlines -> splitLines
stripl -> stripLeft
stripr -> striptRight
tolower -> toLower/toLowercase/toLowerCase
tolowerInPlace ->  toLowerInPlace/toLowercaseInPlace/toLowerCaseInPlace
toupper -> toUpper/toUppercase/toUpperCase
toupperInPlace -> toUpperInPlace/toUppercaseInPlace/toUpperCaseInPlace
tr -> replaceWithmModifiers
whitespace -> whitespaceCharsr
zfill -> zeroFill

--
/Jacob Carlborg

Reply via email to