List of all members | Public Fields | Public Types | Public Instance Methods | Static Public Attributes
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 Fields

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.
 

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 > &&quote_, 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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ searchQuote() [1/2]

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.

Method 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: