System.AnsiStringBase.Create

From RAD Studio API Documentation
Jump to: navigation, search

C++

AnsiStringBase(): Data(0) {}
AnsiStringBase(const AnsiStringBase& src);
AnsiStringBase(const char* src, int codePage);
AnsiStringBase(const char* src, int byteLen, int codePage);
AnsiStringBase(const wchar_t* src, int numwchar, int codePage);
AnsiStringBase(const char16_t* src, int numChar16, int codePage);
AnsiStringBase(const char32_t* src, int numChar32, int codePage);
AnsiStringBase(double src, int codePage);
AnsiStringBase(System::WideChar src, int codePage);
AnsiStringBase(char32_t src, int codePage);
AnsiStringBase(const WideString &src, int codePage);
AnsiStringBase(const UnicodeString &src, int codePage);
AnsiStringBase::AnsiStringBase(AnsiStringT<CP>&& src) {

Properties

Type Visibility Source Unit Parent
constructor protected dstring.h System AnsiStringBase

Description

Creates an instance of AnsiStringBase.

System.AnsiStringBase.AnsiStringBase is the constructor for AnsiStringBase.

If the constructor is given no arguments, the resulting AnsiStringBase instance is an empty string. If the constructor is passed a single character, the resulting AnsiStringBase instance has character length 1, and contains that character. Other versions of the constructor copy the string passed as an argument, converting characters to char, if necessary. When constructing a AnsiStringBase instance from an array of char or wchar_t, the source string should be null-terminated, unless an argument is given that indicates the number of characters in the array. For some overloads of the constructor, you can pass the code page you want for the string. In another overload, you can pass a floating-point number to be converted to a string.