RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideString::WideString Constructor ()

Creates an instance of System::WideString::WideString.

Pascal
constructor Create;
constructor Create(const src: char*);
constructor Create(const src: WideString&);
constructor Create(const src: AnsiString&);
constructor Create(const src: WideChar*; len: Integer);
constructor Create(const src: WideChar*);
constructor Create(const src: WideChar);
constructor Create(const src: wchar_t*; len: Integer);
constructor Create(const src: wchar_t*);
constructor Create(const src: wchar_t);
constructor Create(src: char);
constructor Create(src: short);
constructor Create(: unsigned short);
constructor Create(src: Integer);
constructor Create(: unsigned int);
constructor Create(: long);
constructor Create(: unsigned long);
constructor Create(: __int64);
constructor Create(: unsigned __int64);
constructor Create(src: float);
constructor Create(src: double);
constructor Create(src: long double);
C++
__fastcall WideString();
__fastcall WideString(const char* src);
__fastcall WideString(const WideString& src);
__fastcall WideString(const AnsiString& src);
__fastcall WideString(const WideChar* src, int len);
__fastcall WideString(const WideChar* src);
__fastcall explicit WideString(const WideChar src);
__fastcall WideString(const wchar_t* src, int len);
__fastcall WideString(const wchar_t* src);
__fastcall explicit WideString(const wchar_t src);
__fastcall explicit WideString(char src);
__fastcall explicit WideString(short src);
__fastcall explicit WideString(unsigned short);
__fastcall explicit WideString(int src);
__fastcall explicit WideString(unsigned int);
__fastcall explicit WideString(long);
__fastcall explicit WideString(unsigned long);
__fastcall explicit WideString(__int64);
__fastcall explicit WideString(unsigned __int64);
__fastcall explicit WideString(float src);
__fastcall explicit WideString(double src);
__fastcall explicit WideString(long double src);

Call System::WideString::WideString to create and initialize a wide string. If the constructor is given no arguments, the resulting System::WideString::WideString is an empty string. If the constructor is passed a single wide character, the resulting System::WideString::WideString has length one, and contains that character. All other versions of the constructor copy the string passed as an argument, converting characters to wchar_t if necessary. When constructing a System::WideString::WideString from an array of char or wchar_t, the src string should be null terminated, unless a second argument is given that indicates the number of characters in the array. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!