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

Method FindBytePosition

src/UTF8StringSlice.hpp:180–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 LengthType FindBytePosition(const UTF8StringSliceBase& pattern) const {
181 return static_cast<LengthType>(
182 ToString().find(pattern.str, 0, pattern.byteLength));
183 }
184
185 bool operator<(const UTF8StringSliceBase& that) const {
186 return Compare(that) < 0;

Callers 2

TEST_FFunction · 0.80
ContainsPunctuationFunction · 0.80

Calls 2

findMethod · 0.80
ToStringFunction · 0.70

Tested by 1

TEST_FFunction · 0.64