MCPcopy Create free account
hub / github.com/SmingHub/Sming / substring

Method substring

Sming/Wiring/WString.cpp:775–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775String String::substring(size_t left, size_t right) const
776{
777 auto len = length();
778 if(left > right || left >= len) {
779 return nullptr;
780 }
781
782 if(right > len) {
783 right = len;
784 }
785 return String(cbuffer() + left, right - left);
786}
787
788/*********************************************/
789/* Modification */

Callers 15

executeMethod · 0.45
executeMethod · 0.45
WaveDrom.jsFile · 0.45
getRelativePathMethod · 0.45
getFileNameMethod · 0.45
onHeadersCompleteMethod · 0.45
headersCompleteMethod · 0.45
cmdPortMethod · 0.45
convertFQNFunction · 0.45
deployFunction · 0.45
processSizeFunction · 0.45
processorMethod · 0.45

Calls 1

StringClass · 0.70

Tested by

no test coverage detected