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

  • The explosion in mobile devices and applications has generated a great deal of interest in APIs. Today's businesses are under increased pressure to make it easy to build apps, supply tools to help developers work more quickly, and deploy operational analytics so they can track users, developers, application performance, and more. Apigee Edge provides comprehensive API delivery tools and both operational and business-level analytics in an integrated platform. It is available as on-premise software or through …

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

Most Popular Programming Stories

More for Developers

RSS Feeds