Inherits Function.
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>.
Public Fields | |
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. | |
Public Types | |
using | ReturnType = object_ptr< foundPosition > |
Typedef for the type returned by the function. | |
Public Instance Methods | |
searchQuote () | |
searchQuote (object_ptr< formattedText > &&text_, object_ptr< formattedText > &"e_, int32 quote_position_) | |
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 = 1751384351 |
Identifier uniquely determining a type of the object. | |
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>.
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 |