Convert ReplaceSubstringIntention to ReplaceSubstringInspection

Relates to #KT-31502
This commit is contained in:
Dmitry Gridin
2019-05-27 19:49:59 +07:00
parent 2310826ec9
commit 8988b4b344
77 changed files with 463 additions and 476 deletions
@@ -1 +0,0 @@
s.<spot>dropLast(5)</spot>
@@ -1 +0,0 @@
s.<spot>substring(0, s.length - 5)</spot>
@@ -1,5 +0,0 @@
<html>
<body>
This intention replaces calls like <b>s.substring(0, s.length - x)</b> with <b>s.dropLast(x)</b>.
</body>
</html>
@@ -1 +0,0 @@
<spot>"abc".substring(0, 1)</spot>
@@ -1,5 +0,0 @@
<html>
<body>
This intention replaces calls like <b>"abc".substring(0, 1)</b> with <b>"abc"[0]</b>.
</body>
</html>
@@ -1 +0,0 @@
s.<spot>substringAfter('x')</spot>
@@ -1 +0,0 @@
s.<spot>substring(s.indexOf('x'))</spot>
@@ -1,5 +0,0 @@
<html>
<body>
This intention replaces calls like <b>s.substring(s.indexOf(x))</b> with <b>s.substringAfter(x)</b>.
</body>
</html>
@@ -1 +0,0 @@
s.<spot>substringBefore('x')</spot>
@@ -1 +0,0 @@
s.<spot>substring(0, s.indexOf('x'))</spot>
@@ -1,5 +0,0 @@
<html>
<body>
This intention replaces calls like <b>s.substring(0, s.indexOf(x))</b> with <b>s.substringBefore(x)</b>.
</body>
</html>
@@ -1 +0,0 @@
s.<spot>take(10)</spot>
@@ -1 +0,0 @@
s.<spot>substring(0, 10)</spot>
@@ -1,5 +0,0 @@
<html>
<body>
This intention replaces calls like <b>s.substring(0, x)</b> with <b>s.take(x)</b>.
</body>
</html>