On Wed, Jan 30, 2002 at 09:32:49AM -0800, Brent Dax wrote:
> #                 rx_setprops P0, "i", 2
> #                 branch $start0
> #         $advance:
> #                 rx_advance P0, $fail
> #         $start0:
> #                 rx_literal P0, "a", $advance
> #
> # First, we set the rx engine to case-insensitive. Why is that bad? It's
> # setting a runtime property for what should be compile-time
> # unicode-character-kung-fu. Assuming your "CPU" knows what the gritty
> # details of unicode in the first place just feels wrong, but I digress.
> 
> That "i" does a once-off case-folding operation on the target string.
> All other input to the engine MUST already be case-folded for speed.

Hm, is that going to work ? What about a rx like /^a(?i:b)C/ where the
case insensitivity only applies to part of the pattern ?

> # Mostly, I'd like to hear how either Unicode character-ranges aren't
> # deterministic at compile-time (I doubt that) or how crippling to
> 
> One word: locale.


How did I know you would say that :)

Graham.

Reply via email to