|
@@ -60,9 +60,14 @@ class StringBuf {
|
|
/**
|
|
/**
|
|
Adds a part of a string to the string buffer.
|
|
Adds a part of a string to the string buffer.
|
|
**/
|
|
**/
|
|
- public function addSub( s : String, pos : Int, len : Int ) {
|
|
|
|
|
|
+ public function addSub( s : String, pos : Int, ?len : Int ) {
|
|
#if neko
|
|
#if neko
|
|
__add_sub(b,untyped s.__s,pos,len);
|
|
__add_sub(b,untyped s.__s,pos,len);
|
|
|
|
+ #else flash9
|
|
|
|
+ if( len == null )
|
|
|
|
+ b += s.substr(pos);
|
|
|
|
+ else
|
|
|
|
+ b += s.substr(pos,len);
|
|
#else flash
|
|
#else flash
|
|
b += s.substr(pos,len);
|
|
b += s.substr(pos,len);
|
|
#else js
|
|
#else js
|