<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nurse</author_name>
  <author_url>https://blog.hatena.ne.jp/nurse/</author_url>
  <blog_title>なるせにっき</blog_title>
  <blog_url>https://naruse.hateblo.jp/</blog_url>
  <categories>
    <anon>Char</anon>
  </categories>
  <description>こちらも search non ascii 同様にワード単位で見れば早くなります。具体的には、そもそも UTF-8 は trail byte が [\x80-\xBF] に限定され、またこの範囲は lead byte には出現しません。つまり、バイト列の中から、0b10xxxxxx 以外のバイトの数を数えれば、それがそのまま文字列長になります。これをワード単位で並列して実行する場合は、バイトの最上位ビットの否定と、2番目のビットの論理和をとり、それが真なものを数えれば大丈夫です。 範囲 2進 最上位ビット 最上位ビットの否定 2番目 論理和 \x00-\x7F 0b0x0000 0 1 x 1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaruse.hateblo.jp%2Fentry%2F20080326%2F1206527852&quot; title=&quot;Counting UTF-8 characters with word - なるせにっき&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-03-26 19:37:32</published>
  <title>Counting UTF-8 characters with word</title>
  <type>rich</type>
  <url>https://naruse.hateblo.jp/entry/20080326/1206527852</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
