1TCUCODEC(1)                      Tokyo Cabinet                     TCUCODEC(1)
2
3
4

NAME

6       tcucodec - popular encoders and decoders
7
8

DESCRIPTION

10       The command `tcucodec' is a tool to use encoding and decoding features.
11       This command is used in the following format.  `file' specifies a input
12       file.  If it is omitted, the standard input is read.
13
14              tcucodec url [-d] [-br] [-rs base] [file]
15                     Perform URL encoding and its decoding.
16              tcucodec base [-d] [file]
17                     Perform Base64 encoding and its decoding.
18              tcucodec quote [-d] [file]
19                     Perform quoted-printable encoding and its decoding.
20              tcucodec mime [-d] [-en name] [-q] [-on] [-hd] [-bd] [-part num]
21              [file]
22                     Perform MIME encoding and its decoding.
23              tcucodec hex [-d] [file]
24                     Perform hexadecimal encoding and its decoding.
25              tcucodec pack [-d] [-bwt] [file]
26                     Perform Packbits encoding and its decoding.
27              tcucodec tcbs [-d] [file]
28                     Perform TCBS encoding and its decoding.
29              tcucodec zlib [-d] [-gz] [file]
30                     Perform ZLIB encoding and its decoding.
31              tcucodec bzip [-d] [file]
32                     Perform BZIP2 encoding and its decoding.
33              tcucodec xml [-d] [-br] [file]
34                     Process XML.  By default, escape meta characters.
35              tcucodec cstr [-d] [-js] [file]
36                     Perform C-string escaping and its unescaping.
37              tcucodec ucs [-d] [-un] [-kw str] [file]
38                     Convert UTF-8 string into UCS-2 array.
39              tcucodec hash [-crc] [-ch num] [file]
40                     Calculate the hash value.  By default, use MD5 function.
41              tcucodec cipher [-key str] [file]
42                     Perform stream cipher and its decipher.
43              tcucodec date [-ds str] [-jl num] [-wf] [-rf]
44                     Process date string.  By default, print the current  UNIX
45                     time.
46              tcucodec tmpl [-var name value] [file]
47                     Perform template serialization.
48              tcucodec conf [-v|-i|-l|-p]
49                     Print some configurations.
50
51       Options feature the following.
52
53              -d : perform decoding (unescaping), not encoding (escaping).
54              -br : break up URL or XML into elements.
55              -rs base : specify the base URL and resolve the relative URL.
56              -en  name  :  specify  the  input  encoding,  which  is UTF-8 by
57              default.
58              -q : use quoted-printable encoding, which is Base64 by default.
59              -on : output the charset name when decoding.
60              -bd : perform MIME parsing and output the body.
61              -hd : perform MIME parsing and output the headers.
62              -part num : perform MIME parsing and output the specified part.
63              -bwt : convert by BWT as preprocessing.
64              -gz : use GZIP format.
65              -crc : use CRC32 function.
66              -js : use JSON compatible format.
67              -un : perform UCS normalization.
68              -kw str : generate KWIC string.
69              -ch num : use consistent hashing function.
70              -key str : specify the cipher key.
71              -ds str : specify the time.
72              -jl num : specify the jet lag.
73              -wf : format the output in W3CDTF.
74              -rf : format the output in RFC 1123 format.
75              -var name value : specify a template variable.
76              -v : show the version number of Tokyo Cabinet.
77              -i : show options to include the headers of Tokyo Cabinet.
78              -l : show options to link the library of Tokyo Cabinet.
79              -p : show the directory path of the commands of Tokyo Cabinet.
80
81       This command returns 0 on success, another on failure.
82
83

SEE ALSO

85       tcutest(1), tcumttest(1), tcutil(3), tokyocabinet(3)
86
87
88
89Man Page                          2009-09-04                       TCUCODEC(1)
Impressum