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

Method Left

src/UTF8StringSlice.hpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 LengthType ByteLength() const { return byteLength; }
76
77 UTF8StringSliceBase Left(const LengthType numberOfCharacters) const {
78 if (numberOfCharacters == UTF8Length()) {
79 return *this;
80 } else {
81 return UTF8StringSliceBase(str, numberOfCharacters);
82 }
83 }
84
85 UTF8StringSliceBase Right(const LengthType numberOfCharacters) const {
86 if (numberOfCharacters == UTF8Length()) {

Callers 5

TEST_FFunction · 0.80
ExtractSuffixesMethod · 0.80
CalculateFrequencyMethod · 0.80
CalculateCohesionMethod · 0.80

Calls 1

UTF8StringSliceBaseClass · 0.85

Tested by 1

TEST_FFunction · 0.64