--- In [email protected], "brucexs" <bswit...@...> wrote: > OK, ignore d2 and use d3 which I just uploaded and which only checks for a > single lead byte. > I'm asking for curiousity. How you handle it? MSDN strongly recommends using CharPrev API in the documentation of IsDBCSLeadByte: "To make sense of a DBCS string, an application normally starts at the beginning of a string and scans forward, keeping track when it encounters a lead byte, and treating the next byte as the trailing part of the same character. If the application must back up, it should use CharPrev instead of attempting to develop its own algorithm."
http://msdn.microsoft.com/en-us/library/dd318664.aspx http://msdn.microsoft.com/en-us/library/ms647471.aspx
