Changeset 34443 in project


Ignore:
Timestamp:
08/28/17 22:30:23 (4 weeks ago)
Author:
kon
Message:

rel 1.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/string-utils

    r34124 r34443  
    4242{{STRING}} is treated as a string of bytes, a byte-vector.
    4343
     44==== hex->string
     45
     46<procedure>(hex->string STRING [START [END]]) => string</procedure>
     47
     48Returns the binary representation of a hexadecimal{{STRING}}. {{START}} and
     49{{END}} are substring limits.
     50
    4451=== Unicode Utilities
    4552
     
    137144{{LEN}} is the length of the bytes at {{OFF}}.
    138145
    139 {{OUT}} is a {{string}} of length {{(+ LEN 2)}}.
     146{{OUT}} is a {{string}} of length >= {{(+ LEN 2)}}.
    140147
    141148==== blob_to_hex
     
    163170Like {{str_to_hex}} except {{IN}} is a {{nonnull-c-pointer}}.
    164171
     172==== hex_to_str
     173
     174<procedure>(hex_to_str OUT IN OFF LEN)</procedure>
     175
     176Reads the ASCII hexadecimal representation of {{IN}} to {{OUT}}.
     177
     178{{IN}} is a {{nonnull-string}}.
     179
     180{{OFF}} is the byte offset.
     181
     182{{LEN}} is the length of the bytes at {{OFF}}.
     183
     184{{OUT}} is a {{string}} of length >= {{(/ LEN 2)}}.
     185
     186==== hex_to_str
     187
     188<procedure>(hex_to_blob OUT IN OFF LEN)</procedure>
     189
     190Like {{hex_to_str}} except {{OUT}} is a {{blob}} of size >= {{(/ LEN 2)}}.
     191
    165192
    166193== Requirements
     
    176203== Version history
    177204
     205; 1.3.0 : Add {{hex->string}}, {{hex_to_str}}, {{hex_to_blob}}.
    178206; 1.2.5 : Remove [[lookup-table]].
    179207; 1.2.2 : Unicode string construction a little faster. Removed {{blob->hex}}.
Note: See TracChangeset for help on using the changeset viewer.