Constructors
Synopses
Declared in <llvm/ADT/Twine.h>
Construct from an empty string.
Twine();
Copy‐construct a Twine (shallow; does not own string data).
Construct from a StringRef.
Construct from a char.
explicit
Twine(char Val);
Construct a twine to print Val as a signed decimal integer.
explicit
Twine(int Val);
Construct a twine to print Val as a signed decimal integer.
explicit
Twine(long Val);
Construct a twine to print Val as a signed decimal integer.
explicit
Twine(long long Val);
Delete the implicit conversion from nullptr as Twine(const char *) cannot take nullptr.
Twine(std::nullptr_t Null) = delete;
Construct from a signed char.
explicit
Twine(signed char Val);
Construct from an unsigned char.
explicit
Twine(unsigned char Val);
Construct a twine to print Val as an unsigned decimal integer.
explicit
Twine(unsigned int Val);
Construct a twine to print Val as an unsigned decimal integer.
explicit
Twine(unsigned long Val);
Construct a twine to print Val as an unsigned decimal integer.
explicit
Twine(unsigned long long Val);
Construct from a StringLiteral.
Twine(StringLiteral const& Str);
Construct from a formatv_object_base.
Twine(formatv_object_base const& Fmt);
Construct from an std::string.
Twine(std::string const& Str);
Construct from an std::string_view.
Twine(std::string_view const& Str);
Construct from a SmallString.
Twine(SmallVectorImpl<char> const& Str);
Construct from a C string.
Twine(char const* Str);
Construct as the concatenation of a StringRef and a C string.
Construct as the concatenation of a C string and a StringRef.
Parameters
Name |
Description |
Other |
Twine whose child pointers and kinds are copied. |
Str |
String reference whose data and size are referenced. |
Val |
Character value to render. |
Null |
Unused; this overload is deleted. |
Fmt |
formatv object whose formatted text is referenced. |
LHS |
StringRef prefix. |
RHS |
C string suffix. |
Created with MrDocs