| 542 | } |
| 543 | |
| 544 | void 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 | |
| 555 | void StringImpl::Remove(intptr char8Idx) |
| 556 | { |
no outgoing calls
no test coverage detected