RFR 8013252: Regex Matcher .start and .end should be accessible by group name (original) (raw)
Xueming Shen xueming.shen at oracle.com
Mon Apr 29 20:56:23 UTC 2013
- Previous message: hg: jdk8/tl/corba: 8011986: [corba] idlj generates read/write union helper methods that throw wrong exception in some cases
- Next message: RFR 8013252: Regex Matcher .start and .end should be accessible by group name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
The regex named capturing group support was added into jdk7 [1]. Matcher.group(gname) is the only direct access method we added back then to access the matched result. The proposed change here is to add a pair of accessing/convenient method Matcher.start/end(gname) to access the start/end offset info of the matched result, to match the corresponding start/end/group (int index) access methods.
http://cr.openjdk.java.net/~sherman/8013252/webrev
Thanks! -Sherman
[1] http://cr.openjdk.java.net/~sherman/6350801/webrev.02/
- Previous message: hg: jdk8/tl/corba: 8011986: [corba] idlj generates read/write union helper methods that throw wrong exception in some cases
- Next message: RFR 8013252: Regex Matcher .start and .end should be accessible by group name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]