Reference Codebot.Text.pas
Part of the Codebot package
The Codebot.Text unit provides routines for working with text and its encodings. The Unicode routines step through the UTF-8 characters of a string, count them, and convert a character code to a string. TBuffer is a managed block of memory, and TBufferStream reads a buffer as a stream. The encoding routines convert memory, buffers, and strings to and from hexadecimal and base64.
Items 31 items
| Name | Kind | Line |
|---|---|---|
| Base64Decode | function | 149 |
| Base64Encode | function | 143, 145, 147 |
| HexDecode | function | 140 |
| HexEncode | function | 134, 136, 138 |
| TBuffer | record | 66 |
| Create | function | 77 |
| Encode | function | 81 |
| Implicit | operator | 79 |
| LoadFromFile | procedure | 83 |
| LoadFromStream | procedure | 85 |
| SaveToFile | procedure | 87 |
| SaveToStream | procedure | 89 |
| AsBase64 | property | 101 |
| AsHex | property | 99 |
| AsString | property | 97 |
| Data | property | 93 |
| Size | property | 95 |
| TBufferStream | class | 108 |
| Create | constructor | 120 |
| Read | function | 122 |
| SaveToFile | procedure | 130 |
| SaveToStream | procedure | 128 |
| Seek | function | 126 |
| Write | function | 124 |
| TEncodeMethod | enum | 48 |
| encodeHex | enum value | 48 |
| encodeBase64 | enum value | 48 |
| UnicodeLength | function | 39 |
| UnicodeParse | function | 35 |
| UnicodeToChar | function | 37 |
| UnicodeToStr | function | 41 |