Re: Re: Gobo Regexp and Unicode support.
Colin Paul Adams <colin-vnRo6g/[email protected]> Fri, 13 Jun 2008 19:01:58 +0100
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Ted" == Ted <kkkkg999-/[email protected]> writes: Ted> --- In [email protected], Colin Paul Adams <colin@...> wrote: >> >> >> I don't understand how you have done this - the regexp library >> only handles 8-bit characters. 19981 is not an 8-bit value. Ted> That's what the patch does. `item_code' of UC_STRING does Ted> return correct 4-byte Unicode character (INTEGER_32), doesn't Ted> it? `item' didn't. But the library is using an 8-bit state automaton - it only knows about 8-bit codes. Are you taking the code modulo 256? Have you tried to match ".*a.*" against a string of 256 successive codepoints (not including ASCII")? -- Colin Adams Preston Lancashire