|
From: Ioannis V. <no...@ho...> - 2003-02-18 11:13:36
|
a-------Original Message-------=0D =0D From: Torsten Curdt=0D Date: =D4=F1=DF=F4=E7, 18 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 1:02:29 = =EC=EC=0D To: dev...@li...=0D Subject: Re: [Dev-C++] unicode=0D =0D Jaap de Wolff wrote:=0D > at this moment there is no std::string<wchar_t> support in the Mingw=0D > compiler.=0D > This is a known problem, it has to do with missing functions in MSVCRT.= DLL =0D =0D Ah... thanks for the feedback!=0D =0D But I did some changes in the include files and now have=0D unicode working :)=0D =0D Do you know what functions are supposed to be missing?=0D At least the basic string template works fine for me now.=0D =0D =0D =3D=3D> At first i must say that there is no such thing as string<wchar_t= > since string is=0D =0D typedef basic_string<char> string;=0D =0D In some implementation char can be the same as wchar_t (switch or not it doesn't matter). But since you can use wchar_t explicitly why use switche= s? Keep in mind that the type wstring exists!=0D =0D And as the standard nicely says:=0D =0D "[lib.string.classes] 21.2 String classes=0D 1 The header <string> defines a basic string class template and its trait= s that can handle all char-like (clause 21) template arguments with several function signatures for manipulating varying length sequences of char-lik= e objects.=0D 2 The header <string> also defines two specific template classes string a= nd wstring and their special traits."=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |