Regex.hx 806 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package java.util.regex;
  2. /**
  3. * ...
  4. * @author waneck
  5. */
  6. extern class Pattern
  7. {
  8. static function compile(regex:String):Pattern;
  9. function matcher(input:String):Matcher;
  10. }
  11. extern interface MatchResult
  12. {
  13. @:overload(function(group:Int):Int {})
  14. function end():Int;
  15. function group(group:Int):String;
  16. function groupCount():Int;
  17. @:overload(function(group:Int):Int {})
  18. function start():Int;
  19. }
  20. extern class Matcher implements MatchResult
  21. {
  22. function reset(input:String):Matcher;
  23. @:overload(function(group:Int):Int {})
  24. function end():Int;
  25. function group(group:Int):String;
  26. function groupCount():Int;
  27. @:overload(function(group:Int):Int {})
  28. function start():Int;
  29. function find():Bool;
  30. function replaceAll(replacement:String):String;
  31. }