Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dwt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dlang
dwt
Commits
a44d9fd2
Commit
a44d9fd2
authored
7 years ago
by
Jacob Carlborg
Browse files
Options
Downloads
Patches
Plain Diff
Remove usage of deprecated "delete" keyword
parent
33a3fcad
No related branches found
Branches containing commit
Tags
v1.0.1+swt-3.4.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
base/src/java/lang/String.d
+2
-18
2 additions, 18 deletions
base/src/java/lang/String.d
with
2 additions
and
18 deletions
base/src/java/lang/String.d
+
2
−
18
View file @
a44d9fd2
...
...
@@ -405,16 +405,7 @@ public bool equals( in char[] src, in char[] other ){
/// Extension to String
public
bool
equalsIgnoreCase
(
in
char
[]
src
,
in
char
[]
other
){
version
(
Tango
)
{
if
(
src
.
length
!=
other
.
length
)
return
false
;
String
s1b
=
new
char
[
src
.
length
*
2
];
//*2, or Tango may reallocate buffers
String
s2b
=
new
char
[
other
.
length
*
2
];
scope
(
exit
)
{
delete
s1b
;
delete
s2b
;
}
return
tango
.
text
.
Unicode
.
toFold
(
src
,
s1b
)
==
tango
.
text
.
Unicode
.
toFold
(
other
,
s2b
);
static
assert
(
false
,
"Not implemented"
);
}
else
{
// Phobos
return
std
.
string
.
icmp
(
src
,
other
)
==
0
;
}
...
...
@@ -423,14 +414,7 @@ public bool equalsIgnoreCase( in char[] src, in char[] other ){
/// Extension to String
public
int
compareToIgnoreCase
(
in
char
[]
src
,
in
char
[]
other
){
version
(
Tango
){
String
s1b
=
new
char
[
src
.
length
*
2
];
//*2, or Tango may reallocate buffers
String
s2b
=
new
char
[
other
.
length
*
2
];
scope
(
exit
)
{
delete
s1b
;
delete
s2b
;
}
return
compareTo
(
tango
.
text
.
Unicode
.
toFold
(
src
,
s1b
),
tango
.
text
.
Unicode
.
toFold
(
other
,
s2b
));
static
assert
(
false
,
"Not implemented"
);
}
else
{
// Phobos
return
std
.
string
.
icmp
(
src
,
other
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment