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

Method getRepositoryIndex

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

Source from the content-addressed store, hash-verified

528}
529
530Uint32 SyntaxDefinition::getRepositoryIndex( String::HashType hash ) const {
531 auto it = mRepositoryIndex.find( hash );
532 return it != mRepositoryIndex.end() ? it->second : 0;
533}
534
535Uint32 SyntaxDefinition::getRepositoryIndex( std::string_view name ) const {
536 return getRepositoryIndex( String::hash( name ) );

Callers 3

updatePatternStateFunction · 0.80
updateRepoIndexStateFunction · 0.80
_tokenizeFunction · 0.80

Calls 3

hashFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected