I thought TxtCompare is for comparing Multi-byte text?
e.g. If I have a "ABC" in single byte and another string "ABC" in
,say shit_JIS encoding, it will return 0 because they represent
the same text even though the bytes representation are actually
different.
This is from the Palm os reference (3.5):
In certain character encodings (such as Shift JIS), one character may
be accurately represented as either a single-byte character or a
multi-byte character. TxtCompare accurately matches a single-byte
character with its multi-byte equivalent.
?
-Ji
<[EMAIL PROTECTED]> wrote in message news:42910@palm-dev-forum...
>
>
>
> > What other functions are available on Palm3.x and Palm4.0 that I can
> > use to compare two byte strings?
>
> You could use TxtCompare.
>
> -- Keith
>
>
>
>
>
> "Ji Lee" <[EMAIL PROTECTED]> on 03/20/2001 07:24:13 PM
>
> Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
>
> Sent by: "Ji Lee" <[EMAIL PROTECTED]>
>
>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> cc: (Keith Rollin/US/PALM)
> Subject: Re: StrNCompare & PalmOS4
>
>
>
> I thought that the whole point of using StrN* was to tell the funciton the
> size of buffer
> you are passing to the function? (thus avoiding bufferoverflow?) But then,
I
> could be wrong
> since I am not much of a C programmer =) *sigh* writing Perl for a while
> caused quite
> a brain damage..
>
> Anyhow, I guess I can't use StrNCompare for comparing byte string anymore
> then..
> What other functions are available on Palm3.x and Palm4.0 that I can use
to
> compare
> two byte strings? Or should I write my own function for such purpose?
> (StrNCompareAscii is available only on os4 I think)
>
> Thanks!
>
> -Ji
>
>
>
> <[EMAIL PROTECTED]> wrote in message news:42905@palm-dev-forum...
> >
> >
> >
> > This is the expected behavior. The function accepts "strings" as
> parameters. A
> > "string" is a sequence of characters terminated by a NULL.
> >
> > -- Keith
> >
> >
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please
> see http://www.palmos.com/dev/tech/support/forums/
>
>
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/