Right. I should have noted that it was English-only. But she did ask about
"char" not "wchar".  I just figured she was following aaron's conventions by
typing "char" instead or "Char".

;-)

Jeff
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of kcorey
Sent: Wednesday, February 05, 2003 8:21 AM
To: Palm Developer Forum
Subject: RE: Two questions in CW8 !

If the Palm is being used exclusively in the US in English, this is
likely to be true.

However, the Text manager deals with a bunch of issues about multi-byte
characters.  Susan's domain is 163.com which is administered out of
China, so there's a chance she's asking about multi-byte characters.

If so, I don't think there's a direct correspondence between individual
WChars and Chars.

Susan, what did you need ASCII for?

-Ken

On Wed, 2003-02-05 at 14:05, Jeff Wheeler wrote:
> Susan wrote:
> >> 2) Is there a function that can return the ASCII value of 
> >> a char?
> 
> Is this a trick question? ;^)
> 
> Int16 GetAscii(Char c)
>   {
>   return (Int16) c;
>   }
> 
> However, since a character IS the ASCII value that represents that
> character, stored as an 8-bit number, you don't need a function to get it.
> 
> Char c = 'a';         // 'a' == 97 decimal, so c is an 8-bit number
>                               // that stores the value 97.
> 
> (c == 'a')                    // evaluates to true
> 
> (c == 97)                     // evaluates to true





-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/




--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to