Changes

Jump to navigation Jump to search
240 bytes removed ,  13:18, 16 September 2016
=Conventions=
All functions and errors in this module are assigned to the {{Code|<code><nowiki>http://expath.org/ns/binary}} </nowiki></code> namespace, which is statically bound to the {{Code|bin}} prefix.<br/>
=Constants and Conversions=
|-
| '''Examples'''
|<code>string(bin:hex('11223F4E'))</code> yields <code>ESI/Tg==</code>.<br/><code>string(xs:hexBinary(bin:hex('FF')))</code> yields <code>FF</code>.
|}
|-
| '''Examples'''
|<code>string(bin:bin('1101000111010101'))</code> yields <code>0dU=</code>.<br/><code>string(xs:hexBinary(bin:bin('1000111010101')))</code> yields <code>11D5</code>.
|}
|-
| '''Examples'''
|<code>string(xs:hexBinary(bin:octal('11223047')))</code> yields <code>252627</code>.
|}
=Basic Operations=
==bin:hexlength==
{| width='100%'
|-
=Text Decoding and Encoding=
The following encodings are supported by any Java 7 Implementation
([http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html Java Charset Documentation]), hence may be used as values for {{Code|$encoding}}:
"US-ASCII", "ISO-8859-1", "UTF-8". "UTF-16BE", UTF-16LE", "UTF-16".
==bin:decode-string==
|-
| width='120' | '''Signatures'''
|{{Func|bin:pack-float|$in as xs:doublefloat|xs:base64Binary}}<br/>{{Func|bin:pack-float|$in as xs:doublefloat, $octet-order as xs:string|xs:base64Binary}}
|-
| '''Summary'''
|-
| width='120' | '''Signatures'''
|{{Func|bin:pack-integer|$in as xs:doubleinteger, $size as xs:integer|xs:base64Binary}}<br/>{{Func|bin:pack-floatinteger|$in as xs:doubleinteger, $size as xs:integer, $octet-order as xs:string|xs:base64Binary}}
|-
| '''Summary'''
|-
| width='120' | '''Signatures'''
|{{Func|bin:unpack-float|$in as xs:base64Binary, $offset as xs:integer|xs:doublefloat}}<br/>{{Func|bin:unpack-float|$in as xs:base64Binary, $offset as xs:integer, $octet-order as xs:string|xs:float}}
|-
| '''Summary'''
|-
| width='120' | '''Signatures'''
|{{Func|bin:unpack-integer|$in as xs:base64Binary, $offset as xs:integer, $size as xs:integer|xs:doubleinteger}}<br/>{{Func|bin:unpack-integer|$in as xs:base64Binary, $offset as xs:integer, $size as xs:integer, $octet-order as xs:string|xs:floatinteger}}
|-
| '''Summary'''
|-
| width='120' | '''Signatures'''
|{{Func|bin:unpack-unsigned-integer|$in as xs:base64Binary, $offset as xs:integer, $size as xs:integer|xs:doubleinteger}}<br/>{{Func|bin:unpack-unsigned-integer|$in as xs:base64Binary, $offset as xs:integer, $size as xs:integer, $octet-order as xs:string|xs:floatinteger}}
|-
| '''Summary'''
Introduced with Version 7.8.
 
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu