Re: Gobo Regexp and Unicode support.
"Ted" <kkkkg999-/[email protected]> Fri, 13 Jun 2008 13:33:53 -0000
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Message-ID | <[email protected]> |
The patch basically does three things:
1. Makes that piece of code treats a Unicode point code as a
character, rather than a code less than 255 (CHARACTER_8), which could
be a byte of UTF8, not representing a Unicode character.
2. And the Unicode point is allowed putting into the byte code (it was
"a_code \\ 256").
3. Avoid using {STRING}.append_string, which does not doing things
correctly when a UC_STRING is passed in as a pattern.
Ted
--- In [email protected], Colin Paul Adams <colin@...> wrote:
>
> >>>>> "Ted" == Ted <kkkkg999@...> writes:
>
> Ted> Thank you for quick response, Colin. Can I know what problem
> Ted> the patch has? At least, based on some simple experiments,
> Ted> with the patch, I got what I wanted using UC_STRING. That
> Ted> could be case issue, character set issue or something like
> Ted> that?
>
> What is the patch supposed to do?
>
> Just because you got what you want, doesn't mean Unicode regular
> expressions will work correctly.
> --
> Colin Adams
> Preston Lancashire
>