<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eiji8pou</author_name>
  <author_url>https://blog.hatena.ne.jp/eiji8pou/</author_url>
  <blog_title>eiji8pou's diary</blog_title>
  <blog_url>https://eiji8pou.hatenadiary.com/</blog_url>
  <categories>
    <anon>NScripter</anon>
    <anon>Lua</anon>
  </categories>
  <description>これをどっかに書くと、4つのメソッドが追加される。 math.is_odd math.is_even string.is_odd string.is_even math.is_odd(num)とすると、numが奇数であればtrueを、そうでなければfalseを返す。 math.is_even(num)はその逆。 string系は、文字列の長さに対して前述の判断をする。 local str = &quot;般若波羅蜜多&quot; if str:is_odd() then -- 半角換算で文字数が偶数文字の時 else end スクリプト do -- 文字列の奇数偶数処理 local main = function…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feiji8pou.hatenadiary.com%2Fentry%2F20110816%2F1313504573&quot; title=&quot;奇数文字とか偶数文字とか - eiji8pou&amp;#39;s diary&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-16 23:22:53</published>
  <title>奇数文字とか偶数文字とか</title>
  <type>rich</type>
  <url>https://eiji8pou.hatenadiary.com/entry/20110816/1313504573</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
