Extracting a Chinese Character from a CString
-
Dear all CString aStr="Learning 中文"; //a mixed English and Chinese string Without using Unicode, How can i extract the Chinese Character word by word from a Mixed English and Chinese string? Thanks
To find the double-byte characters, step through one char at a time and call
IsDBCSLeadByte()
on each one. When that function returns true, that char and the following one make up one double-byte character. -
To find the double-byte characters, step through one char at a time and call
IsDBCSLeadByte()
on each one. When that function returns true, that char and the following one make up one double-byte character. -
I'm not sure I know what you're asking. You just put the two bytes one after the other. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released