Re: Re: Gobo Regexp and Unicode support.

Colin Paul Adams <colin-vnRo6g/[email protected]> Fri, 13 Jun 2008 18:01:40 +0100
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
>>>>> "Ted" == Ted  <kkkkg999-/[email protected]> writes:

    Ted> I tried "a.a" to match either `aHa' or `a&#19981;a' (a
    Ted> Chinese char in between), they both perfectly matched.

    Ted> I also tried "a..+a" to match either `aHa' or `a&#19981;a',
    Ted> neither of them matched.

I don't understand how you have done this - the regexp library only
handles 8-bit characters. 19981 is not an 8-bit value.

    >> There are many more problems. For instance, case insensitive
    >> matching.

    Ted> Now I understand the case insensitive matching is a tough
    Ted> task. It is language specific, for example, 0069(i) <->
    Ted> 0049(I), but in Turkish 0069 <-> 0130. 

No - the language is not the issue - there are default mappings, but
some of these involve string-length changes. The current library will
not do that.

-- 
Colin Adams
Preston Lancashire