Mercurial > projects > dwt2
comparison java/src/java/mangoicu/URegex.d @ 21:9b96950f2c3c
the 'java' tree compiles on both D1-Tango and D2-Phobos
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 19 Mar 2009 20:38:55 +0100 |
parents | dbfb303e8fb0 |
children |
comparison
equal
deleted
inserted
replaced
20:dccb717aa902 | 21:9b96950f2c3c |
---|---|
170 { | 170 { |
171 UErrorCode e; | 171 UErrorCode e; |
172 | 172 |
173 handle = uregex_open (pattern.ptr, pattern.length, flags, pe, e); | 173 handle = uregex_open (pattern.ptr, pattern.length, flags, pe, e); |
174 testError (e, "failed to open regex"); | 174 testError (e, "failed to open regex"); |
175 uregex_setText (handle, "", 0, e); | 175 uregex_setText (handle, null, 0, e); |
176 } | 176 } |
177 | 177 |
178 /*********************************************************************** | 178 /*********************************************************************** |
179 | 179 |
180 Compiles the regular expression in string form into an | 180 Compiles the regular expression in string form into an |
198 private this (Handle handle) | 198 private this (Handle handle) |
199 { | 199 { |
200 UErrorCode e; | 200 UErrorCode e; |
201 | 201 |
202 this.handle = handle; | 202 this.handle = handle; |
203 uregex_setText (handle, "", 0, e); | 203 uregex_setText (handle, null, 0, e); |
204 } | 204 } |
205 | 205 |
206 /*********************************************************************** | 206 /*********************************************************************** |
207 | 207 |
208 Close the regular expression, recovering all resources (memory) | 208 Close the regular expression, recovering all resources (memory) |