Skip to content

Commit 727985e

Browse files
committed
Remove undocumented template hacks
1 parent f5b8e67 commit 727985e

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

std/uni.d

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8848,16 +8848,6 @@ void toLowerInPlace(C)(ref C[] s) @trusted pure
88488848
{
88498849
toCaseInPlace!(LowerTriple)(s);
88508850
}
8851-
// overloads for the most common cases to reduce compile time
8852-
@safe pure /*TODO nothrow*/
8853-
{
8854-
void toLowerInPlace(ref char[] s)
8855-
{ toLowerInPlace!char(s); }
8856-
void toLowerInPlace(ref wchar[] s)
8857-
{ toLowerInPlace!wchar(s); }
8858-
void toLowerInPlace(ref dchar[] s)
8859-
{ toLowerInPlace!dchar(s); }
8860-
}
88618851

88628852
/++
88638853
Converts $(D s) to uppercase (by performing Unicode uppercase mapping) in place.
@@ -8870,16 +8860,6 @@ void toUpperInPlace(C)(ref C[] s) @trusted pure
88708860
{
88718861
toCaseInPlace!(UpperTriple)(s);
88728862
}
8873-
// overloads for the most common cases to reduce compile time/code size
8874-
@safe pure /*TODO nothrow*/
8875-
{
8876-
void toUpperInPlace(ref char[] s)
8877-
{ toUpperInPlace!char(s); }
8878-
void toUpperInPlace(ref wchar[] s)
8879-
{ toUpperInPlace!wchar(s); }
8880-
void toUpperInPlace(ref dchar[] s)
8881-
{ toUpperInPlace!dchar(s); }
8882-
}
88838863

88848864
/++
88858865
If $(D c) is a Unicode uppercase $(CHARACTER), then its lowercase equivalent
@@ -8919,17 +8899,6 @@ S toLower(S)(S s) @trusted pure
89198899
static import std.ascii;
89208900
return toCase!(LowerTriple, std.ascii.toLower)(s);
89218901
}
8922-
// overloads for the most common cases to reduce compile time
8923-
@safe pure /*TODO nothrow*/
8924-
{
8925-
string toLower(string s)
8926-
{ return toLower!string(s); }
8927-
wstring toLower(wstring s)
8928-
{ return toLower!wstring(s); }
8929-
dstring toLower(dstring s)
8930-
{ return toLower!dstring(s); }
8931-
}
8932-
89338902

89348903
@system unittest //@@@BUG std.format is not @safe
89358904
{
@@ -9085,16 +9054,6 @@ S toUpper(S)(S s) @trusted pure
90859054
static import std.ascii;
90869055
return toCase!(UpperTriple, std.ascii.toUpper)(s);
90879056
}
9088-
// overloads for the most common cases to reduce compile time
9089-
@safe pure /*TODO nothrow*/
9090-
{
9091-
string toUpper(string s)
9092-
{ return toUpper!string(s); }
9093-
wstring toUpper(wstring s)
9094-
{ return toUpper!wstring(s); }
9095-
dstring toUpper(dstring s)
9096-
{ return toUpper!dstring(s); }
9097-
}
90989057

90999058
@safe unittest
91009059
{

0 commit comments

Comments
 (0)