Menu

#1 Support for posix named classes

open
nobody
None
5
2004-02-05
2004-02-05
No

We chose to use jregex for an internal project.
However, we needed support for posix named classes,
like [:digit:] and [:^space:], which were not available
in jregex.

Examining the code in CharacterClass.java, I found that
there was actually definitions for posix classes, but
the parser didn't look for them. I added the necessary
parsing code, but in the process of testing, I found
that the handling of hex and octal backslash escapes
was buggy. Finally, while fixing all that, I added a
position indicator to the parser error messages emitted
in Term.java and CharacterClass.java.

Since we wanted to add jregex to our project, we needed
a way to build the jar as needed. To this end, I wrote
a simple Makefile.

The patches are available here:

http://professional.juniper.net/gnats/jregex/

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.