class TextRange
Defined at line 3104 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h
A range of characters in a string of text. Although strings in FIDL's wire
format are UTF-8 encoded, these indices are measured in UTF-16 code units
for legacy reasons. These text input APIs will eventually be replaced by
fuchsia.ui.text, which uses code points instead.
Public Methods
void TextRange (Storage_ storage)
void TextRange (int64_t start, int64_t end)
void TextRange ()
Default constructs a |TextRange| only if all of its members are default constructible.
Defined at line 3114 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h
void TextRange (TextRange && )
Defined at line 3117 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h
void TextRange (const TextRange & other)
TextRange & operator= (TextRange && )
Defined at line 3118 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h
TextRange & operator= (const TextRange & other)
bool operator== (const TextRange & other)
bool operator!= (const TextRange & other)
int64_t start ()
The index of the first UTF-16 code unit in the range.
If `start` and `end` are both -1, the text range is empty.
int64_t & start ()
The index of the first UTF-16 code unit in the range.
If `start` and `end` are both -1, the text range is empty.
TextRange & start (int64_t value)
The index of the first UTF-16 code unit in the range.
If `start` and `end` are both -1, the text range is empty.
int64_t end ()
The next index after the last UTF-16 code unit in this range.
If `start` and `end` are both -1, the text range is empty.
int64_t & end ()
The next index after the last UTF-16 code unit in this range.
If `start` and `end` are both -1, the text range is empty.
TextRange & end (int64_t value)
The next index after the last UTF-16 code unit in this range.
If `start` and `end` are both -1, the text range is empty.
void TextRange (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits