ソースを参照

added indexOf and lastIndexOf

Nicolas Cannasse 16 年 前
コミット
e6bd36045a
2 ファイル変更4 行追加0 行削除
  1. 1 0
      doc/CHANGES.txt
  2. 3 0
      std/flash9/Vector.hx

+ 1 - 0
doc/CHANGES.txt

@@ -2,6 +2,7 @@
 	optimized Type.enumEq : use index instead of tag comparison for neko/flash9/php
 	bugfix for flash.display.BitmapDataChannel and GraphicsPathCommand (allow inline static)
 	resolve environment variable in -cmd commands
+	added flash.Vector.indexOf and lastIndexOf
 
 2008-11-23: 2.02
 	Std.is(MyInterface, Class) now returns true (haXe/PHP)

+ 3 - 0
std/flash9/Vector.hx

@@ -23,4 +23,7 @@ extern class Vector<T> implements ArrayAccess<T> {
 
 	function iterator() : Iterator<T>;
 
+	function indexOf( x : T, ?from : Int ) : Int;
+	function lastIndexOf( x : T, ?from : Int ) : Int;
+
 }