浏览代码

added + operator

ncannasse 9 年之前
父节点
当前提交
8abef5b267
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      hxd/UString.hx

+ 4 - 0
hxd/UString.hx

@@ -12,6 +12,10 @@ abstract UString(String) from String to String {
 		#end
 	}
 
+	@:op(a + b) inline static function add( a : UString, b : UString ) : String {
+		return (a:String) + (b:String);
+	}
+
 	public inline function charCodeAt( pos : Int ) : Int {
 		#if (flash || js)
 		return this.charCodeAt( pos );