tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::searchQuote Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::searchQuote:
td::td_api::Function td::TlObject

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 td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

object_ptr< formattedTexttext_
 Text in which to search for the quote.
 
object_ptr< formattedTextquote_
 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.
 

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

Definition at line 124700 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 124739 of file td_api.h.

Constructor & Destructor Documentation

◆ searchQuote() [1/2]

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

◆ searchQuote() [2/2]

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

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 td::td_api::searchQuote::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 td::TlObject.

Member Data Documentation

◆ ID

const std::int32_t td::td_api::searchQuote::ID = 1751384351
static

Identifier uniquely determining a type of the object.

Definition at line 124736 of file td_api.h.

◆ quote_

object_ptr<formattedText> td::td_api::searchQuote::quote_

Quote to search for.

Definition at line 124713 of file td_api.h.

◆ quote_position_

int32 td::td_api::searchQuote::quote_position_

Approximate quote position in UTF-16 code units.

Definition at line 124715 of file td_api.h.

◆ text_

object_ptr<formattedText> td::td_api::searchQuote::text_

Text in which to search for the quote.

Definition at line 124711 of file td_api.h.


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