<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>asakawajunya</author_name>
  <author_url>https://blog.hatena.ne.jp/asakawajunya/</author_url>
  <blog_title>asakawajunyaのブログ</blog_title>
  <blog_url>https://asakawajunya.hatenablog.com/</blog_url>
  <categories>
    <anon>twitter</anon>
  </categories>
  <description>21:36 Javaの同じようなメソッドでは-1が返るから、同じ感覚でいたけど違った。 21:35 文字列が見つかったらという時に、if (str.find(&quot;HOGE&quot;) &gt;=0)なんて書くと正しく動かない。当然、見つからなかったらということで、if (str.find(&quot;HOGE&quot;) == -1) と書いてもダメ。判定する場合にはstd::string::nposを使う。 21:31 C++において、std::stringのfindを使って文字列が見つからなかった場合、-1が返るかと思っていたけど、実際は違った。intで受ければ確かに-1が返るけど、std::string::size_ty…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fasakawajunya.hatenablog.com%2Fentry%2F20110823%2F1314066740&quot; title=&quot; 2011-08-22 - asakawajunyaのブログ&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>2011-08-23 11:32:20</published>
  <title> 2011-08-22</title>
  <type>rich</type>
  <url>https://asakawajunya.hatenablog.com/entry/20110823/1314066740</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
