MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getSymbol

Method getSymbol

src/eepp/ui/doc/syntaxdefinition.cpp:274–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274SyntaxStyleType SyntaxDefinition::getSymbol( std::string_view symbol ) const {
275 auto it =
276 mSymbolsHashes.find( mCaseInsensitive ? toLowerAndHash( symbol ) : String::hash( symbol ) );
277 if ( it != mSymbolsHashes.end() )
278 return it->second;
279 return SyntaxStyleEmpty();
280}
281
282SyntaxDefinition& SyntaxDefinition::addFileType( const std::string& fileType ) {
283 mFiles.push_back( fileType );

Callers 1

_tokenizeFunction · 0.80

Calls 5

toLowerAndHashFunction · 0.85
hashFunction · 0.85
SyntaxStyleEmptyFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected