A change in the state of an input field.
More...
#include <text_editing_delta.h>
A change in the state of an input field.
Definition at line 16 of file text_editing_delta.h.
◆ TextEditingDelta() [1/5]
flutter::TextEditingDelta::TextEditingDelta |
( |
const std::u16string & |
text_before_change, |
|
|
const TextRange & |
range, |
|
|
const std::u16string & |
text |
|
) |
| |
Definition at line 11 of file text_editing_delta.cc.
14 : old_text_(text_before_change),
16 delta_start_(range.start()),
17 delta_end_(range.start() + range.length()) {}
◆ TextEditingDelta() [2/5]
flutter::TextEditingDelta::TextEditingDelta |
( |
const std::string & |
text_before_change, |
|
|
const TextRange & |
range, |
|
|
const std::string & |
text |
|
) |
| |
Definition at line 19 of file text_editing_delta.cc.
24 delta_start_(range.start()),
25 delta_end_(range.start() + range.length()) {}
std::u16string Utf8ToUtf16(const std::string_view string)
◆ TextEditingDelta() [3/5]
flutter::TextEditingDelta::TextEditingDelta |
( |
const std::u16string & |
text | ) |
|
|
explicit |
◆ TextEditingDelta() [4/5]
flutter::TextEditingDelta::TextEditingDelta |
( |
const std::string & |
text | ) |
|
|
explicit |
Definition at line 30 of file text_editing_delta.cc.
32 delta_text_(u""),
33 delta_start_(-1),
34 delta_end_(-1) {}
◆ ~TextEditingDelta()
virtual flutter::TextEditingDelta::~TextEditingDelta |
( |
| ) |
|
|
virtualdefault |
◆ TextEditingDelta() [5/5]
◆ delta_end()
int flutter::TextEditingDelta::delta_end |
( |
| ) |
const |
|
inline |
◆ delta_start()
int flutter::TextEditingDelta::delta_start |
( |
| ) |
const |
|
inline |
◆ delta_text()
std::string flutter::TextEditingDelta::delta_text |
( |
| ) |
const |
|
inline |
Get the delta_text value.
All strings are stored as UTF16 but converted to UTF8 when accessed.
Definition at line 39 of file text_editing_delta.h.
std::string Utf16ToUtf8(const std::u16string_view string)
◆ old_text()
std::string flutter::TextEditingDelta::old_text |
( |
| ) |
const |
|
inline |
Get the old_text_ value.
All strings are stored as UTF16 but converted to UTF8 when accessed.
Definition at line 34 of file text_editing_delta.h.
◆ operator!=()
bool flutter::TextEditingDelta::operator!= |
( |
const TextEditingDelta & |
rhs | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
bool flutter::TextEditingDelta::operator== |
( |
const TextEditingDelta & |
rhs | ) |
const |
|
inline |
Definition at line 47 of file text_editing_delta.h.
47 {
48 return old_text_ == rhs.old_text_ && delta_text_ == rhs.delta_text_ &&
49 delta_start_ == rhs.delta_start_ && delta_end_ == rhs.delta_end_;
50 }
The documentation for this struct was generated from the following files: