<?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>Luaから文字列スプライトを扱う場合に必要な物。文字列を与えると、それが偶数バイトなら何もせず返し、そうでなければ、半角スペースを一つ追加して返す。 文字列を文字スプライトとして表示する時は、一度これを通してから、NSSpLoad()に与えるべし。そうでないと表示が狂う。 function even_str(str) if type(str) ~= &quot;string&quot; then return &quot;&quot; end -- 文字列型しか受け付けない。 if str:len() % 2 == 0 then return str end -- 偶数ならそのまま返す。 return str..' ' end</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feiji8pou.hatenadiary.com%2Fentry%2F20090901%2F1251813331&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>2009-09-01 22:55:31</published>
  <title>文字列の長さを偶数にする何か</title>
  <type>rich</type>
  <url>https://eiji8pou.hatenadiary.com/entry/20090901/1251813331</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
