Re: Regular Expressions Proposal

Andy Heninger <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Message-ID <[email protected]>
Andy Heninger wrote:
> Looking more closely at the proposed regular expression extension
> 
>> 3.  Add new API
>>     UBool  RegexMatcher::touchedEnd();
>>
[...]

> 
> This is turning out to have an awkward interaction with some of the 
> speed optimizations.  

After discussing it with Mark, I think it best to withdraw this proposal 
for now.  One of the main clients of the new API would be a revamped 
version of ICU transforms (transliterators), something which is not 
targetted for ICU 2.8.  The safest way to make sure that the regex API 
meets the anticipated needs of Translit is to design both together.

While exact best choice for an extended API isn't completely clear, it 
would be something that indicated whether a longer (or any) match could 
be obtained with addtional input to the string being matched.  The API 
may end up being a new matching function, rather than returning status 
regarding a previously attempted match.


   -- Andy Heninger
      [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.