|
tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
|
#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
Public Types | |
| using | ReturnType = object_ptr< foundPosition > |
| Typedef for the type returned by the function. | |
Public Member Functions | |
| searchQuote () | |
| searchQuote (object_ptr< formattedText > &&text_, object_ptr< formattedText > &"e_, int32 quote_position_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Member Functions inherited from td::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 |
Public Attributes | |
| object_ptr< formattedText > | text_ |
| Text in which to search for the quote. | |
| object_ptr< formattedText > | quote_ |
| Quote to search for. | |
| int32 | quote_position_ |
| Approximate quote position in UTF-16 code units. | |
Static Public Attributes | |
| static const std::int32_t | ID = 1751384351 |
| Identifier uniquely determining a type of the object. | |
Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously.
Returns object_ptr<FoundPosition>.
| td::td_api::searchQuote::searchQuote | ( | ) |
Default constructor for a function, which searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously.
Returns object_ptr<FoundPosition>.
| td::td_api::searchQuote::searchQuote | ( | object_ptr< formattedText > && | text_, |
| object_ptr< formattedText > && | quote_, | ||
| int32 | quote_position_ | ||
| ) |
Creates a function, which searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously.
Returns object_ptr<FoundPosition>.
| [in] | text_ | Text in which to search for the quote. |
| [in] | quote_ | Quote to search for. |
| [in] | quote_position_ | Approximate quote position in UTF-16 code units. |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
|
static |
| object_ptr<formattedText> td::td_api::searchQuote::quote_ |
| int32 td::td_api::searchQuote::quote_position_ |
| object_ptr<formattedText> td::td_api::searchQuote::text_ |