--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> --- In [email protected], "forxtra" <forxtra@> wrote:
> >
> > 2. dblcs=1 ;;removes last char of string if win.isdbcsleadbyte 
for 
> > last char == 1
> > truncatedbcs(string) function at 785 line returns only 
alphanumeric.
> > 
> > Reuslt:
> > http://img5.imageshack.us/img5/8962/testresultyw9.png
> >
> 
> LOL! Truncatedbcs(string) doesn't leave much does it. Wonder where 
I
> went wrong there?!


AFAIK, 
IsDBCSLeadByte() returns a nonzero value if the test character is 
greater than 127.

There are no set rules about what value the second byte of the 
double-byte character can be, except that it can't be 0.

The second byte as wll as the first byte might return 1. (as shown 
in picture above.)

---------------------------
http://msdn.microsoft.com/en-us/library/dd317794(VS.85).aspx

To interpret a DBCS string, an application must start at the 
beginning of the string and scan forward. It keeps track when it 
encounters a lead byte in the string, and treats the next byte as 
the trailing part of the same character.
---------------------------



Reply via email to