MCPcopy Create free account
hub / github.com/digego/extempore / getOSCStringSection

Method getOSCStringSection

src/OSC.cpp:1011–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009
1010
1011 void OSC::getOSCStringSection(std::string* input, std::string* output, int num) {
1012 int start = 0;
1013 int end = 0;
1014 for(int i=0;i<=num;++i) {
1015 end = input->find('/',start+1);
1016 if(i < num) start = end;
1017 }
1018 start++; //skip over the "/"
1019 output->append(input->substr(start,end-start));
1020 }
1021
1022 int OSC::clearMessageBuffer()
1023 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected