| Index: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| index 7e9024549251faa0749bd6e592c64112af5582ff..01ffd5d3315059e322a052a4f7057a83f33aec5f 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| +++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| @@ -154,6 +154,16 @@ class JavaString {
|
| }
|
| });
|
| }
|
| + static int indexOf(String target, String str, int fromIndex) {
|
| + if (fromIndex > target.length) return -1;
|
| + if (fromIndex < 0) fromIndex = 0;
|
| + return target.indexOf(str, fromIndex);
|
| + }
|
| + static int lastIndexOf(String target, String str, int fromIndex) {
|
| + if (fromIndex > target.length) return -1;
|
| + if (fromIndex < 0) fromIndex = 0;
|
| + return target.lastIndexOf(str, fromIndex);
|
| + }
|
| static bool startsWithBefore(String s, String other, int start) {
|
| return s.indexOf(other, start) != -1;
|
| }
|
|
|