<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>Twitter で見かけたんですが、次のように途中に null 文字が含まれている場合でも最後まで出力されます。 #include &lt;string&gt; #include &lt;vector&gt; #include &lt;iostream&gt; int main(){ std::vector&lt;char&gt; chars { 'h', 'o', '\0', 'm', 'e' }; std::string str(chars.begin(), chars.end()); std::cout &lt;&lt; str.c_str() &lt;&lt; std::endl; std::cout &lt;&lt; str.length() &lt;&lt; std::end…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F04%2F14%2F004729&quot; title=&quot;std::string の途中に null 文字が含まれている場合の処理 - Secret Garden(Instrumental)&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>2016-04-14 00:47:29</published>
  <title>std::string の途中に null 文字が含まれている場合の処理</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2016/04/14/004729</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
