MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / MoveLeft

Method MoveLeft

src/UTF8StringSlice.hpp:143–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 void MoveLeft() {
144 if (utf8Length > 0) {
145 const size_t charLen = UTF8Util::PrevCharLength(str + byteLength);
146 utf8Length--;
147 byteLength -= charLen;
148 }
149 }
150
151 int ReverseCompare(const UTF8StringSliceBase& that) const {
152 const char* pstr1 = str + byteLength;

Callers 2

TEST_FFunction · 0.80
ExtractPrefixesMethod · 0.80

Calls 1

PrevCharLengthFunction · 0.85

Tested by 1

TEST_FFunction · 0.64