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: September 17, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Another day, another end-of-support deadline. You've heard enough about the hazards of not migrating to Windows Server 2008 or 2012. What you may not know is that there's plenty in it for you and your business, like increased automation and performance, time-saving technical features, and a lower total cost of ownership. Check out this upcoming eSeminar and join Rich Holmes, Pomeroy's practice director of virtualization, as he discusses the …

  • Live Event Date: September 10, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild". This loop of continuous delivery and continuous feedback is …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds