MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / Slice

Method Slice

LuaParser/src/File/LuaSource.cpp:123–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123std::string_view LuaSource::Slice(std::size_t startOffset, std::size_t endOffset) const {
124 std::string_view source = _source;
125 return source.substr(startOffset, endOffset - startOffset + 1);
126}
127
128std::string_view LuaSource::Slice(TextRange range) const {
129 if (range.Length == 0) {

Callers 5

ParseMethod · 0.80
CompleteMissTokenMethod · 0.80
DoResolveMethod · 0.80
GetTextMethod · 0.80

Calls 1

GetEndOffsetMethod · 0.45

Tested by

no test coverage detected