MCPcopy Create free account
hub / github.com/beefytech/Beef / TrimStart

Method TrimStart

BeefySysLib/util/String.cpp:776–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776void StringImpl::TrimStart()
777{
778 auto ptr = GetPtr();
779 for (intptr i = 0; i < mLength; i++)
780 {
781 char c = ptr[i];
782 if (!iswspace(c))
783 {
784 if (i > 0)
785 Remove(0, i);
786 return;
787 }
788 }
789 Clear();
790}
791
792void StringImpl::Trim()
793{

Callers

nothing calls this directly

Calls 1

ClearFunction · 0.85

Tested by

no test coverage detected