(String s1)
| 2909 | } |
| 2910 | |
| 2911 | int indexOf(String s1) { |
| 2912 | s1 = getStringFunctionArg(s1); |
| 2913 | String s2 = getString(); |
| 2914 | int fromIndex = 0; |
| 2915 | if (interp.nextToken()==',') { |
| 2916 | fromIndex = (int)getLastArg(); |
| 2917 | checkIndex(fromIndex, 0, s1.length()-1); |
| 2918 | } else |
| 2919 | interp.getRightParen(); |
| 2920 | if (fromIndex==0) |
| 2921 | return s1.indexOf(s2); |
| 2922 | else |
| 2923 | return s1.indexOf(s2, fromIndex); |
| 2924 | } |
| 2925 | |
| 2926 | int startsWithEndsWith(int type) { |
| 2927 | String s1 = getFirstString(); |
no test coverage detected