Changes

Jump to navigation Jump to search
333 bytes added ,  17:32, 30 October 2015
no edit summary
==convert:binary-to-string==
 
{| width='100%'
|-
==convert:string-to-base64==
 
{| width='100%'
|-
==convert:string-to-hex==
 
{| width='100%'
|-
==convert:bytes-to-base64==
 
{| width='100%'
|-
==convert:bytes-to-hex==
 
{| width='100%'
|-
==convert:binary-to-bytes==
 
{| width='100%'
|-
==convert:integer-to-base==
 
{| width='100%'
|-
| '''Summary'''
|Converts {{Code|$num}} to base {{Code|$base}}, interpreting it as a 64-bit unsigned integer.<br />The first {{Code|$base}} elements of the sequence {{Code|'0',..,'9','a',..,'z'}} are used as digits.<br />Valid bases are {{Code|2, .., 36}}.<br />
|-
| '''Errors'''
|{{Error|BXCO0003|#Errors}} The specified base is not in the range 2-36.
|-
| '''Examples'''
==convert:integer-from-base==
 
{| width='100%'
|-
| '''Summary'''
|Decodes an {{Code|xs:integer}} from {{Code|$str}}, assuming that it's encoded in base {{Code|$base}}.<br /> The first {{Code|$base}} elements of the sequence {{Code|'0',..,'9','a',..,'z'}} are allowed as digits, case doesn't matter. <br />Valid bases are 2 - 36.<br /> If {{Code|$str}} contains more than 64 bits of information, the result is truncated arbitarily.
|-
| '''Errors'''
|{{Error|BXCO0003|#Errors}} The specified base is not in the range 2-36.
|-
| '''Examples'''
|-
|{{Code|BXCO0002}}
|The specified encoding is invalid or not supported.
|-
|{{Code|BXCO0003}}
|The specified base is not in the range 2-36.
|-
|{{Code|BXCO0003}}
|The specified encoding is invalid or not supported.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu