NativeString.hx 766 B

123456789101112131415161718192021222324
  1. package java;
  2. import java.lang.CharSequence;
  3. @:native("java.lang.String")
  4. extern class NativeString {
  5. function charAt(index:Int):java.types.Char16;
  6. function codePointAt(index:Int):Int;
  7. function compareTo(s:String):Int;
  8. function concat(s:String):String;
  9. function endsWith(suffix:String):Bool;
  10. function equals(obj:Dynamic):Bool;
  11. function hashCode():Int;
  12. @:overload function indexOf(str:String):Int;
  13. @:overload function indexOf(str:String, fromIndex:Int):Int;
  14. function lastIndexOf(str:String, fromIndex:Int):Int;
  15. function replace(target:CharSequence, replacement:CharSequence):String;
  16. function startsWith(prefix:String):Bool;
  17. @:overload function substring(beginIndex:Int):String;
  18. @:overload function substring(beginIndex:Int, endIndex:Int):String;
  19. }