[prev in list] [next in list] [prev in thread] [next in thread] 

List:       icu-charsets
Subject:    Re: Welcome to the "icu-charsets" mailing list (Digest mode)
From:       "Markus Scherer" <markus.scherer () us ! ibm ! com>
Date:       2001-10-19 16:04:16
[Download RAW message or body]

Hi, this is really a technical question about ICU, not about our charset 
collection.
Please redirect your question to the icu mailing list.

As a quick response,
- you should not use char constants for UChar because you may want/need to 
port to a non-ASCII-based platform
- you did not NUL-terminate your UChar array
- your rule does not appear to follow the syntax (e.g. does not start with 
'&', ends with relationship operator ';' without following character)
- you did not set status=U_ZERO_ERROR

Please take a look at the online documentation, at coll.h, at our (draft) 
User Guide (http://oss.software.ibm.com/icu/userguide/).
Please also take a look at the sample code in icu/source/samples .
Please note that the current online documentation (esp. User Guide) is 
geared towards more recent code; we have improved collation greatly in 
1.8.1.

Again, please direct this to the icu mailing list, as this question is 
unrelated to mapping tables. On the icu list you will find many more 
people who will gladly assist you.

Best regards,
markus

Markus Scherer  IBM GCoC-Unicode/ICU  Cupertino, CA 
markus.scherer@us.ibm.com (also for SameTime)





azu din <azuicu@yahoo.com>
Sent by: icu-charsets-admin@www-124.southbury.usf.ibm.com
2001-10-18 20:24

 
        To:     icu-charsets@www-126.southbury.usf.ibm.com
        cc: 
        Subject:        Re: Welcome to the "icu-charsets" mailing list (Digest mode)

 

Hi,

I am currently using ICU 1.6 for sorting.  I was
trying to create my own RuleBasedCollator object.  But
when I try to use the unicode values for ascii
charaters,  I get an error "INVALID_FORMAT_ERROR".  I
am sending you a sample of the code.  Is there any
mapping for the ascii characters?


// 0x0022 for " 
UChar contentsW1[] = {';',0x0022,';',};
UnicodeString conW(contentsW1);

Collator* newCollator = new RuleBasedCollator( conW,
status );

Please give suggestion how to handle this scenario

thank you


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
_______________________________________________
icu-charsets mailing list
icu-charsets@oss.software.ibm.com
http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu-charsets




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic