Changes

Jump to navigation Jump to search
896 bytes added ,  17:42, 27 May 2012
|}
==convert:to-base64base64Binary==
{|
|-
| width='90' | '''Signatures'''
|{{Func|convert:to-base64base64Binary|$input as xs:string|xs:base64Binary}}<br/>{{Func|convert:to-base64base64Binary|$input as xs:string, $encoding as xs:string|xs:base64Binary}}
|-
| '''Summary'''
| '''Examples'''
|
* {{Code|convert:to-base64Binary('HelloWorld')}} returns the Base64 item {{Code|SGVsbG9Xb3JsZA==}}.|} ==convert:to-hexBinary=={||-| width='90' | '''Signatures'''|{{Func|convert:to-hexBinary|$input as xs:string|xs:hexBinary}}<br/>{{Func|convert:to-hexBinary|$input as xs:string, $encoding as xs:string|xs:hexBinary}}|-| '''Summary'''|Converts the specified string(to a {{Code|xs:hexBinary}} item. If the default encoding is chosen, conversion will be very cheap in BaseX, as both {{Code|xs:string}} and {{Code|xs:hexBinary}} items are internally mapped to byte arrays.<br/>The UTF-8 default encoding can be overwritten with the optional {{Code|$encoding}} argument.|-| '''Errors'''|{{Error|BXCO0001|#Errors}} The input cannot be represented in the specified encoding.<br/>{{Error|BXCO0002|#Errors}} The specified encoding is invalid or not supported.|-| '''Examples'''|* {{Code|convert:to-hexBinary('48656c6c6f576f726c64HelloWorld'))}} returns the string Base64 item {{Code|HelloWorld48656C6C6F576F726C64}}.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu