<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>http://d.hatena.ne.jp/fkm/20060506/p1 const char * const hoge[] = { &quot;pop&quot;, &quot;no&quot;, &quot;zip&quot; ... }; ... for( int i = 0; i &lt; sizeof(hoge)/sizeof(hoge[0]); ++i ){ if( strcmp( s, hoge[i] ) == 0 ) break; }とりあえずリスト化すれば、std::findとかいくらでも方法がある。 長いswitch文やそれに相当する if - else if - がある場合は、データとプログラムの分離を考えよう。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20060508%2F1147097820&quot; title=&quot; ベタコーディング禁止っ！ - methaneのブログ&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-05-08 23:17:00</published>
  <title> ベタコーディング禁止っ！</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20060508/1147097820</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
