TDLib
Loading...
Searching...
No Matches
searchQuote Class Referencefinal

Inherits Function.

Description

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 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 > &&quote_, int32 quote_position_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

object_ptr< formattedText > quote_
 Quote to search for.
int32 quote_position_
 Approximate quote position in UTF-16 code units.
object_ptr< formattedText > text_
 Text in which to search for the quote.

Static Public Attributes

static const std::int32_t ID = 1751384351
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ searchQuote() [1/2]

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() [2/2]

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>.

Parameters
[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.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: