Mercurial > projects > dwt-addons
comparison dwtx/dwtxhelper/regex.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | 7926b636c282 |
children |
comparison
equal
deleted
inserted
replaced
161:f8d52b926852 | 162:1a5b8f8129df |
---|---|
1 module dwtx.dwtxhelper.regex; | 1 module dwtx.dwtxhelper.regex; |
2 | 2 |
3 import dwt.dwthelper.utils; | |
4 | |
3 class Matcher { | 5 class Matcher { |
6 public Pattern pattern(){ | |
7 implMissing( __FILE__, __LINE__ ); | |
8 return null; | |
9 } | |
10 public String group(){ | |
11 implMissing( __FILE__, __LINE__ ); | |
12 return null; | |
13 } | |
14 public String group(int n){ | |
15 implMissing( __FILE__, __LINE__ ); | |
16 return null; | |
17 } | |
18 public String replaceFirst(String replacement) { | |
19 implMissing( __FILE__, __LINE__ ); | |
20 return null; | |
21 } | |
22 public int start(){ | |
23 implMissing( __FILE__, __LINE__ ); | |
24 return 0; | |
25 } | |
26 public int end(){ | |
27 implMissing( __FILE__, __LINE__ ); | |
28 return 0; | |
29 } | |
30 public bool find(){ | |
31 implMissing( __FILE__, __LINE__ ); | |
32 return false; | |
33 } | |
34 public bool find(int start){ | |
35 implMissing( __FILE__, __LINE__ ); | |
36 return false; | |
37 } | |
4 } | 38 } |
5 | 39 |
6 class Pattern { | 40 class Pattern { |
41 public static const int MULTILINE; | |
42 public static const int CASE_INSENSITIVE ; | |
43 public static const int UNICODE_CASE ; | |
44 | |
45 public String pattern(){ | |
46 implMissing( __FILE__, __LINE__ ); | |
47 return null; | |
48 } | |
49 public int flags(){ | |
50 implMissing( __FILE__, __LINE__ ); | |
51 return 0; | |
52 } | |
53 public static Pattern compile(String regex){ | |
54 implMissing( __FILE__, __LINE__ ); | |
55 return null; | |
56 } | |
57 public static Pattern compile(String regex, int flags){ | |
58 implMissing( __FILE__, __LINE__ ); | |
59 return null; | |
60 } | |
61 public Matcher matcher(CharSequence input){ | |
62 implMissing( __FILE__, __LINE__ ); | |
63 return null; | |
64 } | |
65 public Matcher matcher(String input){ | |
66 implMissing( __FILE__, __LINE__ ); | |
67 return null; | |
68 } | |
7 } | 69 } |
8 | 70 |
9 class PatternSyntaxException { | 71 class PatternSyntaxException : IllegalArgumentException { |
72 this(String desc, String regex, int index) { | |
73 super(desc); | |
74 } | |
10 } | 75 } |
11 | 76 |