Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BYVoid/OpenCC
/ MoveRight
Method
MoveRight
src/UTF8StringSlice.hpp:134–141 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
132
}
133
134
void MoveRight() {
135
if (utf8Length > 0) {
136
const size_t charLen = UTF8Util::NextCharLength(str);
137
str += charLen;
138
utf8Length--;
139
byteLength -= charLen;
140
}
141
}
142
143
void MoveLeft() {
144
if (utf8Length > 0) {
Callers
2
TEST_F
Function · 0.80
ExtractSuffixes
Method · 0.80
Calls
1
NextCharLength
Function · 0.85
Tested by
1
TEST_F
Function · 0.64