High Performance string processing library.
Allows for linear scaling with thread count and includes AVX2, AVX512 optimized kernels. The speed-up on single threaded code ranges from 3-100x, while multi-threading on 16 cores would add another factor of ~13x. A total speed-up of 100x is not considered a rarity and 1000x is relatively easily possible.
| Name | Description |
|---|
| AnsiQuotedStr | S in Quote, every Quote inside doubled. |
| BoolToStr | '-1' for True, '0' for False. |
| CheckMemoryAllocCount | The calling thread's heap calls - GetMem, AllocMem, ReallocMem and FreeMem - since its last MarkMemoryAllocCount, or since the thread started if it never set one. |
| FloatToStr | The text of Value with up to 15 significant digits, correctly rounded. |
| FloatToStrF (4) | Value as text in Format, its digits correctly rounded. |
| FmtStr (2) | Writes Args into Result by the format text Format, with the format settings given or FormatSettings. |
| Format (2) | The format text with Args written into it, as Substring.Format. |
| GetSubstring | A view of SrcLen characters of Src from SrcIdx (1-based), copying none: Subrange as a function. |
| InstallMemoryAllocCount | Puts the counting manager in front of the memory manager in use: from then on the counts see every heap call. |
| IntToStr (2) | The decimal text of Value. |
| IsDelimiter | Whether the character at Index (1-based) is one of Delimiters. |
| LastDelimiter | The 1-based position of the last character that is one of Delimiters, 0 when there is none. |
| LeftStr | The first ACount characters of AText. |
| LiveMemoryBlocks | Process-wide: the blocks allocated (GetMem, AllocMem) minus the blocks freed (FreeMem) while the counting manager was installed. |
| MarkMemoryAllocCount | Sets the calling thread's mark: its counts start from zero. |
| MemoryAllocCount | The calling thread's heap calls since its last MarkMemoryAllocCount, by kind. |
| MidStr | ACount characters of AText from AStart (1-based). |
| Pos | The 1-based position of SubStr in Str at or after Offset, 0 if none. |
| PosEx | The 1-based position of SubStr in S at or after Offset, 0 if none. |
| ProcessMemoryAllocCount | Process-wide: the heap calls of every thread - GetMem, AllocMem, ReallocMem and FreeMem - while the counting manager was installed. |
| QuotedStr | S in apostrophes, every apostrophe inside doubled. |
| RemoveMemoryAllocCount | Takes the counting manager out: the memory manager it stood in front of serves every call, uncounted. |
| RightStr | The last ACount characters of AText. |
| SplitString | Splits S into List at every character of Delimiters, the empty parts included. |
| StringOfChar | Count times Ch. |
| StrToBool | Converts S to a Boolean by ToBoolean's rules. |
| StrToFloat | Converts S to a Double by ToDouble's rules, correctly rounded. |
| StrToInt | Converts S to an Integer by ToInteger's rules. |
| StrToInt64 | Converts S to an Int64 by ToInt64's rules. |
| Trim | Src without the characters <= ' ' at both ends. |
| TrimLeft | Src without the characters <= ' ' at its start. |
| TrimRight | Src without the characters <= ' ' at its end. |
| UniqueString | Gives Str its own copy of its characters, shared with no other string. |