|
@@ -32,7 +32,7 @@ extern class String {
|
|
inline function indexOf( str : String, ?startIndex : Int ) : Int {
|
|
inline function indexOf( str : String, ?startIndex : Int ) : Int {
|
|
if (startIndex == null) startIndex = 1;
|
|
if (startIndex == null) startIndex = 1;
|
|
else startIndex += 1;
|
|
else startIndex += 1;
|
|
- return lua.LuaStringTools.find(this, str, startIndex, str.length, true);
|
|
|
|
|
|
+ return lua.StringTools.find(this, str, startIndex, str.length, true);
|
|
}
|
|
}
|
|
inline function lastIndexOf( str : String, ?startIndex : Int ) : Int {
|
|
inline function lastIndexOf( str : String, ?startIndex : Int ) : Int {
|
|
return 0;
|
|
return 0;
|
|
@@ -51,17 +51,17 @@ extern class String {
|
|
}
|
|
}
|
|
|
|
|
|
inline function get_length() : Int {
|
|
inline function get_length() : Int {
|
|
- return lua.LuaStringTools.len(this);
|
|
|
|
|
|
+ return lua.StringTools.len(this);
|
|
}
|
|
}
|
|
inline function charAt( index : Int) : String {
|
|
inline function charAt( index : Int) : String {
|
|
- return lua.LuaStringTools.sub(this,index+1, index+1);
|
|
|
|
|
|
+ return lua.StringTools.sub(this,index+1, index+1);
|
|
}
|
|
}
|
|
inline function charCodeAt( index : Int) : Null<Int> {
|
|
inline function charCodeAt( index : Int) : Null<Int> {
|
|
- return lua.LuaStringTools.byte(this,index+1);
|
|
|
|
|
|
+ return lua.StringTools.byte(this,index+1);
|
|
}
|
|
}
|
|
|
|
|
|
inline function substr( pos : Int, ?len : Int ) : String {
|
|
inline function substr( pos : Int, ?len : Int ) : String {
|
|
- return lua.LuaStringTools.substr(this, pos, len);
|
|
|
|
|
|
+ return lua.StringTools.substr(this, pos, len);
|
|
}
|
|
}
|
|
|
|
|
|
static function fromCharCode( code : Int ) : String;
|
|
static function fromCharCode( code : Int ) : String;
|