<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>programming</anon>
  </categories>
  <description>たとえば &quot;C:/hoge/foo/bar&quot; みたいな文字列の内容を、 &quot;C:/hoge/foo&quot; にしたい、みたいな。下の階層のフォルダを示す場合は末尾に追加するだけでいいので何も考える必要はないのですが、上の階層に移動するとなるととたんに文字列操作が面倒くさくなります。これを文字検索だのなんだのをせずに楽にできないものか。もしかしたらあるのかもしれないけれど、そういうことをしてくれる API とかが見つからなかったので、以下のようなことをやって実現してみました。 #include #include using namespace std; nt main() { char szSrc[_M…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20060324%2F1143169829&quot; title=&quot;フォルダ (ディレクトリ) のパスが入ってる文字列の階層を操作したい時は、一旦相対パスにするといい (かも) - 閑古鳥&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>2006-03-24 12:10:29</published>
  <title>フォルダ (ディレクトリ) のパスが入ってる文字列の階層を操作したい時は、一旦相対パスにするといい (かも)</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20060324/1143169829</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
