Home
last modified time | relevance | path

Searched refs:StringSlice (Results 1 – 4 of 4) sorted by relevance

/external/skia/modules/skplaintexteditor/include/
Dstringslice.h13 class StringSlice {
15 StringSlice() = default;
16 StringSlice(const char* s, std::size_t l) { this->insert(0, s, l); } in StringSlice() function
17 StringSlice(StringSlice&&);
18 StringSlice(const StringSlice& that) : StringSlice(that.begin(), that.size()) {} in StringSlice() function
19 ~StringSlice() = default;
20 StringSlice& operator=(StringSlice&&);
21 StringSlice& operator=(const StringSlice&);
Deditor.h104 StringSlice fText;
113 TextLine(StringSlice t) : fText(std::move(t)) {} in TextLine()
/external/skia/modules/skplaintexteditor/src/
Dstringslice.cpp13 void StringSlice::FreeWrapper::operator()(void* t) { std::free(t); } in operator ()()
15 StringSlice::StringSlice(StringSlice&& that) in StringSlice() function in StringSlice
24 StringSlice& StringSlice::operator=(StringSlice&& that) { in operator =()
26 this->~StringSlice(); in operator =()
27 new (this)StringSlice(std::move(that)); in operator =()
32 StringSlice& StringSlice::operator=(const StringSlice& that) { in operator =()
42 void StringSlice::insert(std::size_t offset, const char* text, std::size_t length) { in insert()
60 void StringSlice::remove(std::size_t offset, std::size_t length) { in remove()
74 void StringSlice::realloc(std::size_t size) { in realloc()
Deditor.cpp42 static StringSlice remove_newline(const char* str, size_t len) { in remove_newline()
44 StringSlice(str, (len > 0 && str[len - 1] == '\n') ? len - 1 : len); in remove_newline()
140 static size_t count_char(const StringSlice& string, char value) { in count_char()
158 fLines.push_back(Editor::TextLine(StringSlice(utf8Text, byteLen))); in insert()
163 StringSlice src = std::move(fLines[pos.fParagraphIndex].fText); in insert()
245 static inline const char* begin(const StringSlice& s) { return s.begin(); } in begin()
247 static inline const char* end(const StringSlice& s) { return s.end(); } in end()
249 static size_t align_column(const StringSlice& str, size_t p) { in align_column()
411 const StringSlice& text = fLines[pos.fParagraphIndex].fText; in move()