Class to manipulate UNICODE string on Window 95/98

This CUniString is modeled on CString to manipulate UNICODE string. It is very convenient to manipulate UNICODE string. If you want to do something with UNICODE string on Window 95/98(not Window NT), it can help you. Just add "UniString.h" and "UniString.cpp" to your project.

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 Kb
Download source - 6 Kb


Comments

  • Could not understand

    Posted by Legacy on 09/13/2002 12:00am

    Originally 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

    Reply
  • Is it useful?

    Posted by Legacy on 10/05/2000 12:00am

    Originally posted by: Jerome Bonnet

    I believe that CString is already Unicode, if you use the right #define.

    Reply
  • Could not compile

    Posted by Legacy on 09/15/2000 12:00am

    Originally posted by: Keng Chiang

    Hi Mr. Kim 
    
    

    I downloaded your demo files, but could not compile.
    the errors show up on resource file (*.rc, complain about
    LANGUAGE), can you let me know as soon as possible why it failed?

    Thank you
    Keng-Ho Chiang

    Reply
  • WinNT ??

    Posted by Legacy on 04/19/2000 12:00am

    Originally posted by: Corneliu I. Tusnea

    Why doesn't it works on WinNT ?
    How can it be changed to work in NT?

    Thanks.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • Live Event Date: November 20, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Are you wanting to target two or more platforms such as iOS, Android, and/or Windows? You are not alone. 90% of enterprises today are targeting two or more platforms. Attend this eSeminar to discover how mobile app developers can rely on one IDE to create applications across platforms and approaches (web, native, and/or hybrid), saving time, money, and effort and introducing apps to market faster. You'll learn the trade-offs for gaining long …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds