2
0
Pascal Peridont 19 жил өмнө
parent
commit
a565ff74d7
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      std/String.hx

+ 5 - 0
std/String.hx

@@ -52,6 +52,11 @@ extern class String {
 	function charAt( index : Int) : String;
 	function charCodeAt( index : Int) : Int;
 
+	/**
+		Returns the index of first occurence of [value]
+		If [value] is not found, will return -1
+		The optional [startIndex] parameter allows you to specify which character to start searching. The position returned is still relative to the beginning of the string.
+	**/
 	function indexOf( value : String, ?startIndex : Int ) : Int;
 	function lastIndexOf( value : String, startIndex : Int ) : Int;
 	function split( delimiter : String ) : Array<String>;