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
There are no comments yet. Be the first to comment!