[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

3554.0. "support for w_string class" by GUIDUK::SOMER (Turgan Somer - SEO06 - DTN 548-6439) Thu Apr 24 1997 17:24

    
    Does our VMS C++ Compiler have support for
    
    w_string  (wide strings)
    
    ?
T.RTitleUserPersonal
Name
DateLines
3554.1What are you looking for?CXXC::REINIGThis too shall changeFri Apr 25 1997 20:214
    Depends upon what you mean.  The compiler supports wchar_t and the RTL
    functions that work with wchar_t's and arrays of wchar_t's.
    
                                    August
3554.2"wstring" class??GUIDUK::SOMERTurgan Somer - SEO06 - DTN 548-6439Fri May 09 1997 22:195
My question was about the "wstring class ."  Does the
compiler support this class?

    Thanks for any replies.
3554.3DECC::OUELLETTEmudseason into blackfly seasonFri May 09 1997 23:0110
Depends upon what you mean by "support" and what you mean by
the "wstring class".  If you mean, can you write a string class
using wchar_t and have the compiler compile it, then I suppose yes.
If you are inquiring if the DEC C++ compiler comes bundled with
code for such a class, then I don't immediately see one in
/usr/include/cxx, but perhaps there's something.

Library people?

R.
3554.4wide string support in C++DECC::J_WARDMon May 12 1997 13:1123
DEC C++ Version 5.6 (currently in field test) has support for
a wide string class based on the emerging ANSI standard.
The basic_string class is templatized, and the standard
provides for a typedef called wstring for basic_string<wchar_t>.

Since wchar_t is not a "real" type yet in the compiler (it
is only simulated via a typedef in wchar.h) full functionality 
cannot be guaranteed.

So, for example, you can say:

#include <string>

wstring wstr; // equivalent to basic_string<wchar_t>
string str; // equivalent to basic_string<char>

main() {
        return 0;
}

If you could elaborate more on what you are expecting
we could give a more specific answer...