Manuals/calci/LZWCOMPRESS

From ZCubes Wiki
Jump to navigation Jump to search
LZWCOMPRESS (uncompressed)


  • is any uncompressed string.

Description

  • This function gives the compressed value in its simplest form.
  • A quick examination of the algorithm shows that LZW is always trying to output codes for strings.
  • And each time a new code is output, a new string is added to the string table.

Examples

  1. LZWCOMPRESS("Ttestst a s") = 84 116 101 115 116 259 32 97 32 115
  2. LZWCOMPRESS("Holiday") = 72 111 108 105 100 97 121
  3. LZWCOMPRESS("a^ h*&webvcddeee") = 97 94 32 104 42 38 119 101 98 118 99 100 100 101 269

See Also

References