T.R | Title | User | Personal Name | Date | Lines |
---|
3554.1 | What are you looking for? | CXXC::REINIG | This too shall change | Fri Apr 25 1997 17:21 | 4 |
| 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::SOMER | Turgan Somer - SEO06 - DTN 548-6439 | Fri May 09 1997 19:19 | 5 |
|
My question was about the "wstring class ." Does the
compiler support this class?
Thanks for any replies.
|
3554.3 | | DECC::OUELLETTE | mudseason into blackfly season | Fri May 09 1997 20:01 | 10 |
| 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.4 | wide string support in C++ | DECC::J_WARD | | Mon May 12 1997 10:11 | 23 |
| 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...
|