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

Method Remove

BeefySysLib/util/String.cpp:544–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void StringImpl::Remove(intptr startIdx, intptr length)
545{
546 BF_ASSERT((startIdx >= 0) && (length >= 0) && (startIdx + length <= mLength));
547 intptr moveCount = mLength - startIdx - length;
548 auto ptr = GetMutablePtr();
549 if (moveCount > 0)
550 memmove(ptr + startIdx, ptr + startIdx + length, mLength - startIdx - length);
551 mLength -= (int_strsize)length;
552 ptr[mLength] = 0;
553}
554
555void StringImpl::Remove(intptr char8Idx)
556{

Callers 9

GetRelativePathMethod · 0.45
DrawLayer_DeleteFunction · 0.45
DisposeMethod · 0.45
DoClearCacheMethod · 0.45
FlsFreeFuncFunction · 0.45
FixFilePathMethod · 0.45
FixFilePathMethod · 0.45
mainFunction · 0.45
OutputThreadFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected