Class to manipulate UNICODE string on Window 95/98
Posted
by Kim, Sang-Yup
on April 22nd, 2000
Examples: | |
CString sCString; | // CString variable |
CUniString sUniString; | // CUniString variable |
sUniString("Test String"); | // Initialize with string |
sUniString(sCString); | // Initialize with CString |
sUniString = sCString; | // CString to CUnistring |
sCString = sUniString; | // CUniString to CString |
sUniString.Mid(5); | // Mid, Left, Right methods |
sUniString.Mid(5,2); | |
sUniString.Left(5); | |
sUniString.Right(5); | |
Comparison functions: | |
[ ] | Indexing with bounds check |
==, !=, <, <=, >, >= | Usual relational and equality |
Other functions: | |
<<, >> | Serialization |
unsigned int GetLength( ) | Return strlen equivalent |
GetBuffer() | Get buffer pointer |
Empty() | Empty the buffer |
Downloads
Download demo project - 23 KbDownload source - 6 Kb
Comments
Could not understand
Posted by Legacy on 09/13/2002 12:00amOriginally posted by: nguyen
Hi,
I try to do Unicode for Vietnamese, but I could not understand how to do it. and where it begins.
would you help me step-by-step? I have Win '98 with VC++ version 6.0
ReplyIs it useful?
Posted by Legacy on 10/05/2000 12:00amOriginally posted by: Jerome Bonnet
I believe that CString is already Unicode, if you use the right #define.
ReplyCould not compile
Posted by Legacy on 09/15/2000 12:00amOriginally posted by: Keng Chiang
WinNT ??
Posted by Legacy on 04/19/2000 12:00amOriginally posted by: Corneliu I. Tusnea
Why doesn't it works on WinNT ?
How can it be changed to work in NT?
Thanks.
Reply