MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / strLTrimSpace

Function strLTrimSpace

Source/3rdParty/bx/src/string.cpp:481–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479 }
480
481 StringView strLTrimSpace(const StringView& _str)
482 {
483 for (const char* ptr = _str.getPtr(), *term = _str.getTerm(); ptr != term; ++ptr)
484 {
485 if (!isSpace(*ptr) )
486 {
487 return StringView(ptr, term);
488 }
489 }
490
491 return StringView(_str.getTerm(), _str.getTerm() );
492 }
493
494 StringView strLTrimNonSpace(const StringView& _str)
495 {

Callers 6

parseInOutFunction · 0.85
nextWordFunction · 0.85
compileShaderFunction · 0.85
compileFunction · 0.85
fromStringFunction · 0.85
strTrimSpaceFunction · 0.85

Calls 2

isSpaceFunction · 0.70
StringViewClass · 0.50

Tested by

no test coverage detected