Created
July 11, 2014 11:56
-
-
Save nemo-kaz/a035a651ce03c83f18f2 to your computer and use it in GitHub Desktop.
kana2ei converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** メインフレームのIBM EBCDIC半角カタカナを英小文字に変換するmetaClass操作*/ | |
// before:アイウエオカキクケタチツテトナニヌネヘホマミムメモヤ | |
// after: abcdefghijklmnopqrstuvwxyz | |
String.metaClass.kana2ei = { -> | |
return delegate.tr('アイウエオカキクケタチツテトナニヌネヘホマミムメモヤ','abcdefghijklmnopqrstuvwxyz') | |
} | |
assert "ネオカオネオトウオ クイ0020 オトエ-ウアツツ".kana2ei()=="reference hb0020 end-call" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment