t">// If the encoded char fits, write directly, else safe the low surrogate in state</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                <span class="keywordflow">if</span>(BOOST_LIKELY(utf16_traits::width(ch) &lt;= to_end - to))</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                {</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                    to = utf16_traits::encod