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

Function strLTrimNonSpace

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

Source from the content-addressed store, hash-verified

492 }
493
494 StringView strLTrimNonSpace(const StringView& _str)
495 {
496 for (const char* ptr = _str.getPtr(), *term = _str.getTerm(); ptr != term; ++ptr)
497 {
498 if (isSpace(*ptr) )
499 {
500 return StringView(ptr, term);
501 }
502 }
503
504 return StringView(_str.getTerm(), _str.getTerm() );
505 }
506
507 StringView strRTrim(const StringView& _str, const StringView& _chars)
508 {

Callers

nothing calls this directly

Calls 2

isSpaceFunction · 0.70
StringViewClass · 0.50

Tested by

no test coverage detected