Inherits Function.
Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.
Returns object_ptr<FormattedText>.
Public Fields | |
string | text_ |
The text to parse. | |
object_ptr< TextParseMode > | parse_mode_ |
Text parse mode. | |
Public Types | |
using | ReturnType = object_ptr< formattedText > |
Typedef for the type returned by the function. | |
Public Instance Methods | |
parseTextEntities () | |
parseTextEntities (string const &text_, object_ptr< TextParseMode > &&parse_mode_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -1709194593 |
Identifier uniquely determining a type of the object. | |
Default constructor for a function, which parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.
Returns object_ptr<FormattedText>.
parseTextEntities | ( | string const & | text_, |
object_ptr< TextParseMode > && | parse_mode_ | ||
) |
Creates a function, which parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.
Returns object_ptr<FormattedText>.
[in] | text_ | The text to parse. |
[in] | parse_mode_ | Text parse mode. |
|
finalvirtual |