package java; import haxe.Int64; import haxe.extern.Rest; import java.StdTypes.Int8; import java.StdTypes.Char16; import java.lang.CharSequence; import java.util.Locale; @:native("java.lang.String") extern class NativeString { function charAt(index:Int):Char16; function codePointAt(index:Int):Int; function codePointBefore(index:Int):Int; function codePointCount(beginIndex:Int, endIndex:Int):Int; function compareTo(anotherString:String):Int; function compareToIgnoreCase(str:String):Int; function concat(str:String):String; function contains(s:CharSequence):Bool; @:overload function contentEquals(cs:CharSequence):Bool; @:overload function contentEquals(sb:java.lang.StringBuffer):Bool; @:overload static function copyValueOf(data:NativeArray):String; @:overload static function copyValueOf(data:NativeArray, offset:Int, count:Int):String; function endsWith(suffix:String):Bool; function equals(anObject:Dynamic):Bool; function equalsIgnoreCase(anotherString:String):Bool; @:overload static function format(l:Locale, format:String, args:Rest):String; @:overload static function format(format:String, args:Rest):String; @:overload function getBytes():NativeArray; @:overload function getBytes(charset:java.nio.charset.Charset):NativeArray; @:deprecated @:overload function getBytes(srcBegin:Int, srcEnd:Int, dst:NativeArray, dstBegin:Int):Void; @:overload function getBytes(charsetName:String):NativeArray; function getChars(srcBegin:Int, srcEnd:Int, dst:NativeArray, dstBegin:Int):Void; function hashCode():Int; @:overload function indexOf(ch:Int):Int; @:overload function indexOf(ch:Int, fromIndex:Int):Int; @:overload function indexOf(str:String):Int; @:overload function indexOf(str:String, fromIndex:Int):Int; function intern():String; function isEmpty():Bool; @:overload function lastIndexOf(ch:Int):Int; @:overload function lastIndexOf(ch:Int, fromIndex:Int):Int; @:overload function lastIndexOf(str:String):Int; @:overload function lastIndexOf(str:String, fromIndex:Int):Int; function length():Int; function matches(regex:String):Bool; function offsetByCodePoints(index:Int, codePointOffset:Int):Int; @:overload function regionMatches(ignoreCase:Bool, toffset:Int, other:String, ooffset:Int, len:Int):Bool; @:overload function regionMatches(toffset:Int, other:String, ooffset:Int, len:Int):Bool; @:overload function replace(oldChar:Char16, newChar:Char16):String; @:overload function replace(target:CharSequence, replacement:CharSequence):String; function replaceAll(regex:String, replacement:String):String; function replaceFirst(regex:String, replacement:String):String; @:overload function split(regex:String):NativeArray; @:overload function split(regex:String, limit:Int):NativeArray; @:overload function startsWith(prefix:String):Bool; @:overload function startsWith(prefix:String, toffset:Int):Bool; function subSequence(beginIndex:Int, endIndex:Int):CharSequence; @:overload function substring(beginIndex:Int):String; @:overload function substring(beginIndex:Int, endIndex:Int):String; function toCharArray():NativeArray; @:overload function toLowerCase():String; @:overload function toLowerCase(locale:Locale):String; function toString():String; @:overload function toUpperCase():String; @:overload function toUpperCase(locale:Locale):String; function trim():String; @:overload static function valueOf(b:Bool):String; @:overload static function valueOf(c:Char16):String; @:overload static function valueOf(data:NativeArray):String; @:overload static function valueOf(data:NativeArray, offset:Int, count:Int):String; @:overload static function valueOf(d:Float):String; @:overload static function valueOf(f:String):String; @:overload static function valueOf(i:Int):String; @:overload static function valueOf(l:haxe.Int64):String; @:overload static function valueOf(obj:java.lang.Object):String; }