#include <stringslice.h>
Definition at line 13 of file stringslice.h.
◆ StringSlice() [1/4]
SkPlainTextEditor::StringSlice::StringSlice |
( |
| ) |
|
|
default |
◆ StringSlice() [2/4]
SkPlainTextEditor::StringSlice::StringSlice |
( |
const char * |
s, |
|
|
std::size_t |
l |
|
) |
| |
|
inline |
Definition at line 16 of file stringslice.h.
void insert(std::size_t offset, const char *text, std::size_t length)
◆ StringSlice() [3/4]
Definition at line 15 of file stringslice.cpp.
16 : fPtr(std::move(that.fPtr))
17 , fLength(that.fLength)
18 , fCapacity(that.fCapacity)
19{
20 that.fLength = 0;
21 that.fCapacity = 0;
22}
◆ StringSlice() [4/4]
SkPlainTextEditor::StringSlice::StringSlice |
( |
const StringSlice & |
that | ) |
|
|
inline |
◆ ~StringSlice()
SkPlainTextEditor::StringSlice::~StringSlice |
( |
| ) |
|
|
default |
◆ begin()
const char * SkPlainTextEditor::StringSlice::begin |
( |
| ) |
const |
|
inline |
◆ end()
const char * SkPlainTextEditor::StringSlice::end |
( |
| ) |
const |
|
inline |
Definition at line 26 of file stringslice.h.
26{ return fPtr ? fPtr.get() + fLength : nullptr; }
◆ insert()
void StringSlice::insert |
( |
std::size_t |
offset, |
|
|
const char * |
text, |
|
|
std::size_t |
length |
|
) |
| |
Definition at line 42 of file stringslice.cpp.
42 {
50 }
53 } else {
55 }
57 }
58}
void reserve(std::size_t size)
◆ operator=() [1/2]
Definition at line 32 of file stringslice.cpp.
32 {
33 if (this != &that) {
34 fLength = 0;
35 if (that.
size() > 0) {
37 }
38 }
39 return *this;
40}
const char * begin() const
◆ operator=() [2/2]
Definition at line 24 of file stringslice.cpp.
24 {
25 if (this != &that) {
28 }
29 return *this;
30}
◆ remove()
void StringSlice::remove |
( |
std::size_t |
offset, |
|
|
std::size_t |
length |
|
) |
| |
◆ reserve()
void SkPlainTextEditor::StringSlice::reserve |
( |
std::size_t |
size | ) |
|
|
inline |
◆ shrink()
void SkPlainTextEditor::StringSlice::shrink |
( |
| ) |
|
|
inline |
◆ size()
std::size_t SkPlainTextEditor::StringSlice::size |
( |
| ) |
const |
|
inline |
◆ view()
Definition at line 28 of file stringslice.h.
28{ return {fPtr.get(), fLength}; }
The documentation for this class was generated from the following files: