Download Now
Forums

    Reference Codebot.Text.pas

    Part of the Codebot package

    The Codebot.Text unit helps you work with text and its encodings. UnicodeParse steps through the UTF-8 characters of a string, UnicodeLength counts them, and UnicodeToStr and UnicodeToChar convert a character code to text. TBuffer is a managed block of memory, and TBufferStream lets you read a buffer as a stream. HexEncode, HexDecode, Base64Encode, and Base64Decode convert memory, buffers, and strings to and from hexadecimal and base64.

    Items 31 items

    NameKindLine
    Base64Decodefunction149
    Base64Encodefunction143, 145, 147
    HexDecodefunction140
    HexEncodefunction134, 136, 138
    TBufferrecord66
    Createfunction77
    Encodefunction81
    Implicitoperator79
    LoadFromFileprocedure83
    LoadFromStreamprocedure85
    SaveToFileprocedure87
    SaveToStreamprocedure89
    AsBase64property101
    AsHexproperty99
    AsStringproperty97
    Dataproperty93
    Sizeproperty95
    TBufferStreamclass108
    Createconstructor120
    Readfunction122
    SaveToFileprocedure130
    SaveToStreamprocedure128
    Seekfunction126
    Writefunction124
    TEncodeMethodenum48
    encodeHexenum value48
    encodeBase64enum value48
    UnicodeLengthfunction39
    UnicodeParsefunction35
    UnicodeToCharfunction37
    UnicodeToStrfunction41