I am writing an app that needs to search through the Palm phone book.
It uses a binary search and uses TxtCaselessCompare for the comparison
operator.
I am getting incorrect results from TxtCaselessCompare when using a
mixture or ASCII string and MBCS strings.
My phonebook order is
aaa
bbb
ccc
<Hirigana a>
<Hirigana i>
<Hirigana u>
<Hirigana e>
<Hirigana o>
When I call
TxtCaselessCompare ("b", <Hirigana i>,...);
it returns 1 instead of -1.
Do I need to convert the ASCII string to MBCS? If so, How?
Any other reasons for this behavior?
I do not have the source code for the Japanese Palm phonebook. The
address.c file in the the examples does not look MBCS compliant.
Any help would be appreciated.
P.S. My linear search works and I am aware of the yomi (pronounciation
data after the Hex 0x01 delimiter) readings.
Received: from mailer.symantec.com ([198.6.49.176]) by smtp-ima.symantec.com
with SMTP
(IMA Internet Exchange 3.1) id 00678D96; Fri, 7 May 1999 10:53:14 -0700
Received: from seattle.3com.com (seattle.3com.com [129.213.128.97])
by mailer.symantec.com (8.8.8/8.8.8) with ESMTP id KAA14237;
Fri, 7 May 1999 10:52:39 -0700 (PDT)
Received: from new-york.3com.com (new-york.3com.com [129.213.157.12])
by seattle.3com.com (8.8.8/8.8.8) with ESMTP id KAA13792;
Fri, 7 May 1999 10:52:16 -0700 (PDT)
Received: from ls.3com.com ([192.156.136.82])
by new-york.3com.com (8.8.8/8.8.8) with SMTP id KAA15956;
Fri, 7 May 1999 10:51:58 -0700 (PDT)
Date: Fri, 7 May 1999 10:49:02 -0700
Message-Id: <v03130306b358d77b3efe@[139.87.248.197]>
From: David Fedor <[EMAIL PROTECTED]>
Subject: Re: Dang It!!!
To: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Precedence: Bulk
X-LIST-URL: http://ls.palm.com
Reply-To: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]