div class="p">
    <p>Creates an index in the given Unicode scalars view that corresponds
exactly to the specified <code>UTF16View</code> position.</p>

<p>The following example finds the position of a space in a string&#39;s <code>utf16</code>
view and then converts that position to an index in the the string&#39;s
<code>unicodeScalars</code> view:</p>

<pre><code class="language-swift">let cafe = &quot;Caf√© üçµ&quot;

let utf16Index = cafe.utf16.index(of: 32)!
let scalarIndex = String.UnicodeSca