Re: Tailoring of collation algorithm for control sequences

Markus Scherer <[email protected]> Mon, 10 May 2004 17:46:08 -0700
Newsgroups gmane.comp.lib.icu.c++.support,gmane.comp.lib.icu.general
Organization IBM
Message-ID <[email protected]>
Please use the icu4c-support mailing list for support questions. See 
http://oss.software.ibm.com/icu/archives/

[email protected] wrote:
> Now, quite aside from the question if this is a terribly sensible thing to
> do: How to I express this in the ICU tailoring syntax?
> 
> A number of problems: gcc barks at an expression such as & [last tertiary
> ignorable] <<< '\u0000' if occuring in a char* (XXXX in \uXXXX must be at
> least 0020).

Use a double backslash (like \\u0000) so that gcc does not see the \u but the collation rule builder 
sees it.

> Putting the custom tailoring rules into a file and reading it removes the
> gcc problem, of course, but causes ICU to run amock so that the program
> needs to be killed.

Curious. Which part of ICU "runs amok"? With a "file", do you mean to stick it into a resource bundle?

Viele Grüße,
markus
_______________________________________________
[email protected] - icu4c-support mailing list
To Un/Subscribe:
http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu4c-support