MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / Substr

Method Substr

Kernel-Bridge/API/StringsAPI.h:488–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486 }
487
488 String Substr(size_t Position, size_t CharactersCount = 0) const {
489 if (!Data.Length || Position > Data.Length) return String();
490 if (CharactersCount) {
491 if (Position + CharactersCount > Data.Length) CharactersCount = Data.Length - Position;
492 return String(&Data.Buffer[Position], CharactersCount);
493 } else {
494 return String(&Data.Buffer[Position]);
495 }
496 }
497
498 String& TrimLeft(bool AutoShrink = false) {
499 if (!Data.Length) return *this;

Callers

nothing calls this directly

Calls 1

StringClass · 0.85

Tested by

no test coverage detected