<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>onsanai</author_name>
  <author_url>https://blog.hatena.ne.jp/onsanai/</author_url>
  <blog_title>物理の駅 Physics station by 現役研究者</blog_title>
  <blog_url>https://phst.hateblo.jp/</blog_url>
  <categories>
    <anon>C/C++</anon>
  </categories>
  <description>std::getlineは名前の通りstreamから1行ごとにstringを得る関数だが、デリミタ(delimiter)を指定することも可能である。分かれば簡単。 std::string str = &quot;a_ab_abc&quot;; std::stringstream ss(str); std::string item; std::vector&lt;std::string&gt; vitem; while(std::getline(ss, item, '_')) { vitem.emplace_back(item); }</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphst.hateblo.jp%2Fentry%2F2016%2F12%2F25%2F042222&quot; title=&quot;C++で任意の文字でstringを分割する方法 - 物理の駅 Physics station by 現役研究者&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-12-25 04:22:22</published>
  <title>C++で任意の文字でstringを分割する方法</title>
  <type>rich</type>
  <url>https://phst.hateblo.jp/entry/2016/12/25/042222</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
