<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirocco</author_name>
  <author_url>https://blog.hatena.ne.jp/sirocco/</author_url>
  <blog_title>sirocco の書いてもすぐに忘れるメモ</blog_title>
  <blog_url>https://sirocco.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>入力された文字列の英数字を全角から半角に変換したい場合があります。 Haskell の内部コードは UCS4 が使用されています。UCS4 では ASCII の文字は1バイト文字列と同じ順序で領域が割り当てられています。それに対応する全角文字は 0xff01 から割り当てられています。 (SPACE は ASCII:0x20 JIS X 0208:0x3000) -- ASCII hanSpaceChar = chr 0x20 han = map chr [0x21..0x7e] -- !&quot;#$%・・略・xyz{|}~ -- ASCIIの全角に該当する文字 zenSpaceChar = chr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20110619%2F1308445601&quot; title=&quot;Haskell の文字列に含まれる全角英数字を半角に、半角英数字を全角に変換する。 - sirocco の書いてもすぐに忘れるメモ&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-06-19 10:06:41</published>
  <title>Haskell の文字列に含まれる全角英数字を半角に、半角英数字を全角に変換する。</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20110619/1308445601</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
