| 430 | #endif |
| 431 | |
| 432 | inline size_t Pos(const TChar* Substring, size_t Offset = 0, bool GetRelativePos = false) const { |
| 433 | const TChar* SubstrAddr = Find(Substring, Offset); |
| 434 | if (!SubstrAddr) return NoPos; |
| 435 | size_t AbsPos = (reinterpret_cast<size_t>(SubstrAddr) - reinterpret_cast<size_t>(Data.Buffer)) / sizeof(TChar); |
| 436 | return GetRelativePos ? AbsPos - Offset : AbsPos; |
| 437 | } |
| 438 | |
| 439 | String& Delete(size_t Position, size_t Count, bool AutoShrink = false) { |
| 440 | if (Position >= Data.Length) return *this; |
nothing calls this directly
no outgoing calls
no test coverage detected