MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / Substr

Method Substr

Source/Client/NM_Sys/API/StringsAPI.h:495–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493 }
494
495 String Substr(size_t Position, size_t CharactersCount = 0) const {
496 if (!Data.Length || Position > Data.Length) return String();
497 if (CharactersCount) {
498 if (Position + CharactersCount > Data.Length) CharactersCount = Data.Length - Position;
499 return String(&Data.Buffer[Position], CharactersCount);
500 } else {
501 return String(&Data.Buffer[Position]);
502 }
503 }
504
505 String& TrimLeft(bool AutoShrink = false) {
506 if (!Data.Length) return *this;

Callers

nothing calls this directly

Calls 1

StringClass · 0.85

Tested by

no test coverage detected