Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2005-07-01 10:24:05


John Maddock wrote:
>>Imagine I write a traits class which recognizes [[:fubar:]], and the
>>"fubar" char class happens to be case-sensitive. How is the regex engine
>>to know that? And how should it do a case-insensitive match of a
>>character against the [[:fubar:]] char class? John, can you confirm this
>>is a legitimate problem?
>
<snip>
>
> In fact I suspect this may be a real bug in the current Boost.Regex Unicode
> support: matching a case insensitive [[:Ll:]] will only match lower case
> letters. Although frankly which of the other L* categories it should match
> is an open question: should it match Lo or Lm for example?
>

Wow, I don't know. Do whatever ICU does. :-) My guess is no, the Lo and
Lm categories don't seem to be involved in case folding. OK, I'll file
another DR.

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk