|
@@ -29,7 +29,7 @@
|
|
|
|
|
|
String can be concatenated by using the `+` operator. If an operand is not a
|
|
|
String, it is passed through `Std.string()` first.
|
|
|
-
|
|
|
+
|
|
|
@see https://haxe.org/manual/std-String.html
|
|
|
**/
|
|
|
extern class String {
|
|
@@ -78,9 +78,13 @@ extern class String {
|
|
|
String.
|
|
|
|
|
|
If `startIndex` is given, the search is performed within the substring
|
|
|
- of `this` String starting from `startIndex`. Otherwise the search is
|
|
|
- performed within `this` String. In either case, the returned position
|
|
|
- is relative to the beginning of `this` String.
|
|
|
+ of `this` String starting from `startIndex` (if `startIndex` is posivite
|
|
|
+ or 0) or `max(this.length + startIndex, 0)` (if `startIndex` is negative).
|
|
|
+
|
|
|
+ If `startIndex` exceeds `this.length`, -1 is returned.
|
|
|
+
|
|
|
+ Otherwise the search is performed within `this` String. In either case,
|
|
|
+ the returned position is relative to the beginning of `this` String.
|
|
|
|
|
|
If `str` cannot be found, -1 is returned.
|
|
|
**/
|