<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.stringToCodepoints.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.stringToCodepoints</api:function-name><api:suggest>fn.stringtocodepoints</api:suggest><api:suggest>fn</api:suggest><api:suggest>stringtocodepoints</api:suggest><api:function-link mode="xquery" fullname="fn:string-to-codepoints">/apidoc/8.0/fn:string-to-codepoints.xml</api:function-link><api:function mode="javascript" name="stringToCodepoints" type="builtin" lib="fn" category="StringBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.stringToCodepoints"><api:summary>
<p xmlns="http://www.w3.org/1999/xhtml">
Returns the sequence of Unicode code points that constitute an xs:string.
If $arg is a zero-length string or the empty sequence, the empty sequence is
returned.
</p>
</api:summary><api:params><api:param name="arg" type="xs:string"><api:param-description>
A string.
  </api:param-description><api:param-name>arg</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.stringToCodepoints("Thérèse")

returns the sequence (84, 104, 233, 114, 232, 115, 101)</pre>
</api:example></api:function></api:function-page>