|
@@ -78,11 +78,12 @@ extern class String {
|
|
|
String.
|
|
|
|
|
|
If `startIndex` is given, the search is performed within the substring
|
|
|
- of `this` String starting from `startIndex` (if `startIndex` is posivite
|
|
|
- or 0) or `max(this.length + startIndex, 0)` (if `startIndex` is negative).
|
|
|
+ of `this` String starting from `startIndex`.
|
|
|
|
|
|
If `startIndex` exceeds `this.length`, -1 is returned.
|
|
|
|
|
|
+ If `startIndex` is negative, the result is unspecifed.
|
|
|
+
|
|
|
Otherwise the search is performed within `this` String. In either case,
|
|
|
the returned position is relative to the beginning of `this` String.
|
|
|
|
|
@@ -99,6 +100,8 @@ extern class String {
|
|
|
is performed within `this` String. In either case, the returned position
|
|
|
is relative to the beginning of `this` String.
|
|
|
|
|
|
+ If `startIndex` is negative, the result is unspecifed.
|
|
|
+
|
|
|
If `str` cannot be found, -1 is returned.
|
|
|
**/
|
|
|
function lastIndexOf(str:String, ?startIndex:Int):Int;
|