MCPcopy Create free account
hub / github.com/csound/csound / findToken

Function findToken

interfaces/CsoundFile.cpp:794–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794int findToken(std::string text, std::string token, int position)
795{
796 int foundPosition = 0;
797 while((foundPosition = (int) text.find(token, position)) != -1)
798 {
799 if(isToken(text, foundPosition, token))
800 {
801 return foundPosition;
802 }
803 position = foundPosition + 1;
804 }
805 return foundPosition;
806}
807
808int CsoundFile::getInstrumentCount() const
809{

Callers 5

getInstrumentCountMethod · 0.85
getInstrumentMethod · 0.85
getInstrumentNamesMethod · 0.85
getInstrumentNumberMethod · 0.85
getOrchestraHeaderMethod · 0.85

Calls 1

isTokenFunction · 0.85

Tested by

no test coverage detected