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 …

  • A modern mobile IT strategy is no longer an option, it is an absolute business necessity. Today's most productive employees are not tied to a desk, an office, or a location. They are mobile. And your company's IT strategy has to be ready to support them with easy, reliable, 24/7 access to the business information they need, from anywhere in the world, across a broad range of communication devices. Here's how some of the nation's most progressive corporations are meeting the many needs of their mobile workers …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds