Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkUnicode_client::Data Struct Reference

Public Member Functions

 Data (SkSpan< char > text, std::vector< SkUnicode::Position > words, std::vector< SkUnicode::Position > graphemeBreaks, std::vector< SkUnicode::LineBreakBefore > lineBreaks)
 
void reset ()
 

Public Attributes

SkSpan< const char > fText8
 
SkSpan< const char16_t > fText16
 
std::vector< PositionfWords
 
std::vector< SkUnicode::PositionfGraphemeBreaks
 
std::vector< SkUnicode::LineBreakBeforefLineBreaks
 

Detailed Description

Definition at line 41 of file SkUnicode_client.cpp.

Constructor & Destructor Documentation

◆ Data()

SkUnicode_client::Data::Data ( SkSpan< char >  text,
std::vector< SkUnicode::Position words,
std::vector< SkUnicode::Position graphemeBreaks,
std::vector< SkUnicode::LineBreakBefore lineBreaks 
)
inline

Definition at line 47 of file SkUnicode_client.cpp.

51 : fText8(text)
52 , fText16(SkSpan<const char16_t>(nullptr, 0))
53 , fWords(std::move(words))
54 , fGraphemeBreaks(std::move(graphemeBreaks))
55 , fLineBreaks(std::move(lineBreaks)) {
56 }
std::u16string text
SkSpan< const char16_t > fText16
std::vector< Position > fWords
std::vector< SkUnicode::Position > fGraphemeBreaks
SkSpan< const char > fText8
std::vector< SkUnicode::LineBreakBefore > fLineBreaks

Member Function Documentation

◆ reset()

void SkUnicode_client::Data::reset ( )
inline

Definition at line 58 of file SkUnicode_client.cpp.

58 {
59 fText8 = SkSpan<const char>(nullptr, 0);
60 fText16 = SkSpan<const char16_t>(nullptr, 0);
61 fGraphemeBreaks.clear();
62 fLineBreaks.clear();
63 }

Member Data Documentation

◆ fGraphemeBreaks

std::vector<SkUnicode::Position> SkUnicode_client::Data::fGraphemeBreaks

Definition at line 45 of file SkUnicode_client.cpp.

◆ fLineBreaks

std::vector<SkUnicode::LineBreakBefore> SkUnicode_client::Data::fLineBreaks

Definition at line 46 of file SkUnicode_client.cpp.

◆ fText16

SkSpan<const char16_t> SkUnicode_client::Data::fText16

Definition at line 43 of file SkUnicode_client.cpp.

◆ fText8

SkSpan<const char> SkUnicode_client::Data::fText8

Definition at line 42 of file SkUnicode_client.cpp.

◆ fWords

std::vector<Position> SkUnicode_client::Data::fWords

Definition at line 44 of file SkUnicode_client.cpp.


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