basecvt.pod

来自「支持SSL v2/v3, TLS, PKCS #5, PKCS #7, PKCS」· POD 代码 · 共 64 行

POD
64
字号
=head1 NAME basecvt - radix conversion for arbitrary precision integers=head1 SYNOPSIS basecvt <ibase> <obase> [values]=head1 DESCRIPTIONThe B<basecvt> program is a command-line tool for converting integersof arbitrary precision from one radix to another.  The current versionsupports radix values from 2 (binary) to 64, inclusive.  The first twocommand line arguments specify the input and output radix, in base 10.Any further arguments are taken to be integers notated in the inputradix, and these are converted to the output radix.  The output iswritten, one integer per line, to standard output.When reading integers, only digits considered "valid" for the inputradix are considered.  Processing of an integer terminates when aninvalid input digit is encountered.  So, for example, if you set theinput radix to 10 and enter '10ACF', B<basecvt> would assume that youhad entered '10' and ignore the rest of the string.If no values are provided, no output is written, but the programsimply terminates with a zero exit status.  Error diagnostics arewritten to standard error in the event of out-of-range radixspecifications.  Regardless of the actual values of the input andoutput radix, the radix arguments are taken to be in base 10 (decimal)notation.=head1 DIGITSFor radices from 2-10, standard ASCII decimal digits 0-9 are used forboth input and output.  For radices from 11-36, the ASCII letters A-Zare also included, following the convention used in hexadecimal.  Inthis range, input is accepted in either upper or lower case, althoughon output only lower-case letters are used.For radices from 37-62, the output includes both upper- and lower-caseASCII letters, and case matters.  In this range, case is distinguishedboth for input and for output values.For radices 63 and 64, the characters '+' (plus) and '/' (forwardsolidus) are also used.  These are derived from the MIME base64encoding scheme.  The overall encoding is not the same as base64,because the ASCII digits are used for the bottom of the range, and theletters are shifted upward; however, the output will consist of thesame character set.This input and output behaviour is inherited from the MPI library usedby B<basecvt>, and so is not configurable at runtime.=head1 SEE ALSO dec2hex(1), hex2dec(1)=head1 AUTHOR Michael J. Fromberger <sting@linguist.dartmouth.edu> Thayer School of Engineering, Hanover, New Hampshire, USA $Date: 2000/07/14 00:44:31 $

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?