kanaxs C# : ¤Ò¤é¤¬¤Ê¤È¥«¥¿¥«¥Ê¡¢È¾³Ñ¤ÈÁ´³Ñ¤ÎÁê¸ßʸ»úÊÑ´¹¤ò¹Ô¤¦C#¤Î¥¯¥é¥¹

kanaxs C#¤È¤Ï¡©

ʸ»úÎóÆâ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¤Ò¤é¤¬¤Ê¤È¥«¥¿¥«¥Ê¤ÎÁê¸ßÊÑ´¹¤ä¡¢È¾³Ñʸ»ú¤ÈÁ´³Ñʸ»ú¤ÎÁê¸ßÊÑ´¹¤Ê¤É¤ò¹Ô¤¦¥¯¥é¥¹¤Ç¤¹¡£¡Ökanaxs Kana.JS 1.0.5¡×¤òC#¤Ë°Ü¿¢¤·¤¿¤â¤Î¤Ç¤¹¡£

ɬÍ×¾ò·ï

¼ÂºÝ¤Ë³Îǧ¤Ï¤·¤Æ¤¤¤Þ¤»¤ó¤¬¡¢¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î.NET Framework¡ÊC#¡Ë¤ÇÆ°¤¯¤è¤¦¤ËºîÀ®¤·¤¿¤Ä¤â¤ê¤Ç¤¹¡£

µ¡Ç½

kanaxs C#¤Ë¤Ï¡¢°Ê²¼¤Îµ¡Ç½¤¬¤¢¤ê¤Þ¤¹¡£

ToHiragana¥á¥½¥Ã¥É

Á´³Ñ¥«¥¿¥«¥Ê¤òÁ´³Ñ¤Ò¤é¤¬¤Ê¤ËÊÑ´¹¤·¤Þ¤¹¡£¶ñÂÎŪ¤Ë¤Ï¡¢¥¡(0x30A1)¤«¤é¥ö(0x30F6)¤Þ¤Ç¤Îʸ»ú¤ò¤Ò¤é¤¬¤Ê¤ËÊÑ´¹¤·¤Þ¤¹¡£

  1
  2
  3
  4
  5
  6
  7
string inputText = "¥­¥ç¥¦¥â¥¤¥¤¥Æ¥ó¥­¥Ç¥¹¥Í¡£";
 
//¥«¥¿¥«¥Ê¤ò¤Ò¤é¤¬¤Ê¤ËÊÑ´¹¤¹¤ë
string outputText = CSharp.Japanese.Kanaxs.Kana.ToHiragana(inputText);
 
Console.WriteLine(outputText);
//¤­¤ç¤¦¤â¤¤¤¤¤Æ¤ó¤­¤Ç¤¹¤Í¡£

ToKatakana¥á¥½¥Ã¥É

Á´³Ñ¤Ò¤é¤¬¤Ê¤òÁ´³Ñ¥«¥¿¥«¥Ê¤ËÊÑ´¹¤·¤Þ¤¹¡£¶ñÂÎŪ¤Ë¤Ï¡¢¤¡(0x3041)¤«¤éゖ(0x3096)¤Þ¤Ç¤Îʸ»ú¤ò¥«¥¿¥«¥Ê¤ËÊÑ´¹¤·¤Þ¤¹¡£

  1
  2
  3
  4
  5
  6
  7
string inputText = "¤¢¤·¤¿¤â¤¤¤¤¤Æ¤ó¤­¤Ç¤¹¤Í¡£";
 
//¤Ò¤é¤¬¤Ê¤ò¥«¥¿¥«¥Ê¤ËÊÑ´¹¤¹¤ë
string outputText = CSharp.Japanese.Kanaxs.Kana.ToKatakana(inputText);
 
Console.WriteLine(outputText);
//¥¢¥·¥¿¥â¥¤¥¤¥Æ¥ó¥­¥Ç¥¹¥Í¡£

ToHankaku¥á¥½¥Ã¥É

Á´³Ñ±Ñ¿ô»ú¤ª¤è¤Óµ­¹æ¤òȾ³Ñ¤ËÊÑ´¹¤·¤Þ¤¹¡£¶ñÂÎŪ¤Ë¤Ï¡¢¡ª(0xFF01)¤«¤é¡Á(0xFF5E)¤Þ¤Ç¤Îʸ»ú¤ÈÁ´³Ñ¥¹¥Ú¡¼¥¹¤òȾ³Ñʸ»ú¤ËÊÑ´¹¤·¤Þ¤¹¡£

  1
  2
  3
  4
  5
  6
  7
string inputText = "£±£ô£á£ó£õ£²£è£á¡¡£´£Ä£Á¡ª";
 
//Á´³Ñ¤òȾ³Ñ¤ËÊÑ´¹¤¹¤ë
string outputText = CSharp.Japanese.Kanaxs.Kana.ToHankaku(inputText);
 
Console.WriteLine(outputText);
//1tasu2ha 4DA!

ToZenkaku¥á¥½¥Ã¥É

Ⱦ³Ñ±Ñ¿ô»ú¤ª¤è¤Óµ­¹æ¤òÁ´³Ñ¤ËÊÑ´¹¤·¤Þ¤¹¡£¶ñÂÎŪ¤Ë¤Ï¡¢!(0x0021)¤«¤é~(0x007E)¤Þ¤Ç¤Îʸ»ú¤ÈȾ³Ñ¥¹¥Ú¡¼¥¹¤òÁ´³Ñʸ»ú¤ËÊÑ´¹¤·¤Þ¤¹¡£

  1
  2
  3
  4
  5
  6
  7
string inputText = "1tasu2ha 3DA!";
 
//Ⱦ³Ñ¤òÁ´³Ñ¤ËÊÑ´¹¤¹¤ë
string outputText = CSharp.Japanese.Kanaxs.Kana.ToZenkaku(inputText);
 
Console.WriteLine(outputText);
//£±£ô£á£ó£õ£²£è£á¡¡£³£Ä£Á¡ª

ToHankakuKana¥á¥½¥Ã¥É

Á´³Ñ¥«¥¿¥«¥Ê¤òȾ³Ñ¥«¥¿¥«¥Ê¤ËÊÑ´¹¤·¤Þ¤¹¡£¶ñÂÎŪ¤Ë¤Ï¡¢¥¡(0x30A1)¤«¤é¥ó(0x30F3)¤Þ¤Ç¤Îʸ»ú¤È¡¢¡¼(0x30FC)¤ò¡¢È¾³Ñ¤ËÊÑ´¹¤·¤Þ¤¹¡£

  1
  2
  3
  4
  5
  6
  7
string inputText = "¥­¥ç¡¼¥ï¡¢¥¤¥¤¥Æ¥ó¥­¥Ç¥¹¥ÍŽ¡";
 
//Á´³Ñ¥«¥Ê¤òȾ³Ñ¥«¥Ê¤ËÊÑ´¹¤¹¤ë
string outputText = CSharp.Japanese.Kanaxs.Kana.ToHankakuKana(inputText);
 
Console.WriteLine(outputText);
//Ž·Ž®Ž°ŽÜ¡¢Ž²Ž²ŽÃŽÝŽ·ŽÃŽÞŽ½ŽÈŽ¡

ToZenkakuKana¥á¥½¥Ã¥É

Ⱦ³Ñ¥«¥¿¥«¥Ê¤òÁ´³Ñ¥«¥¿¥«¥Ê¤ËÊÑ´¹¤·¤Þ¤¹¡£¶ñÂÎŪ¤Ë¤Ï¡¢Ž¦(0xFF66)¤«¤éŽß(0xFF9F)¤Þ¤Ç¤Îʸ»ú¤òÊÑ´¹¤·¤Þ¤¹¡£

  1
  2
  3
  4
  5
  6
  7
string inputText = "Ž·Ž®Ž°ŽÓŽ¤Ž²Ž²ŽÃŽÝŽ·ŽÃŽÞŽ½ŽÖŽ¡";
 
//Ⱦ³Ñ¥«¥Ê¤òÁ´³Ñ¥«¥Ê¤ËÊÑ´¹¤¹¤ë
string outputText = CSharp.Japanese.Kanaxs.Kana.ToZenkakuKana(inputText);
 
Console.WriteLine(outputText);
//¥­¥ç¡¼¥âŽ¤¥¤¥¤¥Æ¥ó¥­¥Æ¡«¥¹¥èŽ¡

ToPadding¥á¥½¥Ã¥É

¡Ö¤Ï¡«¡×¤ò¡Ö¤Ð¡×¤Î¤è¤¦¤Ë¡¢ÂùÅÀ¤äȾÂùÅÀ¤òÁ°¤Îʸ»ú¤È¹ç¤ï¤»¤Æ1¤Ä¤Îʸ»ú¤ËÊÑ´¹¤·¤Þ¤¹¡£ToZenkakuKana¥á¥½¥Ã¥É¤ÏȾ³Ñ¥«¥Ê¤ÎÂùÅÀ¤ÈȾÂùÅÀ¤ò¤½¤Î¤Þ¤ÞÁ´³Ñ¤ÎÂùÅÀ¤ÈȾÂùÅÀ¤ËÊÑ´¹¤·¤Þ¤¹¤Î¤Ç¡¢¤³¤ì¤òÁ°¤Îʸ»ú¤È¹çÂΤµ¤»¤Æ1¤Ä¤Îʸ»ú¤Ë¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ToPadding¥á¥½¥Ã¥É¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£

  1
  2
  3
  4
  5
  6
  7
string inputText = "¥Õ¡¬¥Æ¡«¥£¥ó¥¯¡«";
 
//ÂùÅÀ¤ÈȾÂùÅÀ¤òÁ°¤Îʸ»ú¤È·ë¹ç¤µ¤»¤ë
string outputText = CSharp.Japanese.Kanaxs.Kana.ToPadding(inputText);
 
Console.WriteLine(outputText);
//¥×¥Ç¥£¥ó¥°

¥é¥¤¥»¥ó¥¹

kanaxs¤ÈƱ¤¸¡¢½¤ÀµBSD¥é¥¤¥»¥ó¥¹¤Ç¤¹¡£

¥À¥¦¥ó¥í¡¼¥É

  • ¥Õ¥¡¥¤¥ë¤Îʸ»ú¥³¡¼¥É¤ÏUTF-8¤Ç¤¹¡£Ê¸»ú¥³¡¼¥É¤òÊѹ¹¤¹¤ë¤ÈÉÔ¶ñ¹ç¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢Ê¸»ú¥³¡¼¥É¤òÊѹ¹¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£°ìÉô¤Î³«È¯´Ä¶­¤Ç¤Ïʸ»ú¥³¡¼¥É¤¬¶¯À©Åª¤ËÊѹ¹¤µ¤ì¤Æ¤·¤Þ¤¦¤³¤È¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤´Ãí°Õ¤¯¤À¤µ¤¤¡£
  • ³ÈÄ¥»Ò¤¬".txt"¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤«¤é".txt"¤ò¼è¤ê½ü¤¤¤Æ¤´»ÈÍѤ¯¤À¤µ¤¤¡£
¥Ð¡¼¥¸¥ç¥ó¥ê¥ó¥¯Êѹ¹ÅÀ
1.0.0filekanaxs-1.0.0.cs.txt

³ÈÄ¥ÈÇ

kanaxs¤È¤Û¤ÜƱ¤¸µ¡Ç½¤ò»ý¤ÄKana¥¯¥é¥¹¤ò¼ã´³³ÈÄ¥¤·¤¿¡¢KanaEx¥¯¥é¥¹¤âºîÀ®¤·¤Æ¤ß¤Þ¤·¤¿¡£¤Û¤È¤ó¤É»È¤ï¤ì¤ë¤³¤È¤Î¤Ê¤¤Ê¸»ú¤ËÂбþ¤µ¤»¤Æ¤¤¤ë¤¿¤á¡¢²þ°­¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¤â¤·¤Þ¤»¤ó¡£

Kana¥¯¥é¥¹¤È¤Î°ã¤¤¤Ï¡¢°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£

ToHiragana¥á¥½¥Ã¥É

Kana.ToHiragana¥á¥½¥Ã¥É¤È°ã¤¤¡¢¡Ö¡³¡´ヷヸヹヺ¡×¤âÊÑ´¹¤·¤Þ¤¹¡£

ToKatakana¥á¥½¥Ã¥É

Kana.ToKatakana¥á¥½¥Ã¥É¤È°ã¤¤¡¢¡Ö¡µ¡¶¡×¤âÊÑ´¹¤·¤Þ¤¹¡£

ToHankaku¥á¥½¥Ã¥É

Kana.ToHankaku¥á¥½¥Ã¥É¤È°ã¤¤¡¢¡Ö¡ï¡É¡Ç¡×¤âÊÑ´¹¤·¤Þ¤¹¡£

ToZenkaku¥á¥½¥Ã¥É

Kana.ToZenkaku¥á¥½¥Ã¥É¤È°ã¤¤¡¢¡Ö\"'¡×¤ò¡Ö¡ï¡É¡Ç¡×¤ËÊÑ´¹¤·¤Þ¤¹¡£¡ÊKana.ToZenkaku¥á¥½¥Ã¥É¤Ï¡Ö\"'¡×¤ò¡Ö¡Àüþüý¡×¤ËÊÑ´¹¤·¤Þ¤¹¡£¡Ë

ToHankakuKana¥á¥½¥Ã¥É

Kana.ToHankakuKana¥á¥½¥Ã¥É¤È°ã¤¤¡¢¡Ø¡¢¡£¡Ö¡×¡¦¡«¡¬U+3099¡ÊÂùÅÀ¡ËU+309A¡ÊȾÂùÅÀ¡Ë¥ôヷヺ¡Ù¤âÊÑ´¹¤·¤Þ¤¹¡£

ToZenkakuKana¥á¥½¥Ã¥É

Kana.ToZenkakuKana¤È°ã¤¤¡¢¡ØŽ¡Ž¢Ž£Ž¤Ž¥¡Ù¤âÊÑ´¹¤·¤Þ¤¹¡£¤Þ¤¿¡¢ÂùÅÀ¡¢È¾ÂùÅÀ¤¬¤½¤ÎÁ°¤Îʸ»ú¤È¹çÂΤǤ­¤ë»þ¤Ï¹çÂΤµ¤»¤Æ1ʸ»ú¤Ë¤·¤Þ¤¹¡£

ToPadding¥á¥½¥Ã¥É

Kana.ToPadding¤È°ã¤¤¡¢¡Öゔ¡¶¥ôヷヸヹヺ¡´¡×¤Ø¤ÎÊÑ´¹¤â¹Ô¤¤¤Þ¤¹¡£¤Þ¤¿¡¢U+3099¡ÊÂùÅÀ¡Ë¤ÈU+309A¡ÊȾÂùÅÀ¡Ë¤âÁ°¤Îʸ»ú¤È¹çÂΤµ¤»¤Æ1ʸ»ú¤Ë¤·¤Þ¤¹¡£

¥À¥¦¥ó¥í¡¼¥É

¥Ð¡¼¥¸¥ç¥ó¥ê¥ó¥¯Êѹ¹ÅÀ
1.0.2filekanaxs_ex-1.0.2.cs.txt
  • ToZenkakuKana¥á¥½¥Ã¥É¤Ç¡ÖŽÂŽÞŽÃŽÞŽÄŽÞ¡×¤òÊÑ´¹¤¹¤ë¤ÈÂùÅÀ¤¬¤Ê¤¯¤Ê¤ëÉÔ¶ñ¹ç¤ò½¤Àµ¡£
1.0.1filekanaxs_ex-1.0.1.cs.txt
  • ToHankaku¥á¥½¥Ã¥É¤Ç¡Ö¡È¡×¤¬¡Ö"¡×¤Ë¡¢¡Ö¡Æ¡×¤¬¡Ö'¡×¤ËÊÑ´¹¤µ¤ì¤ë¤è¤¦¤Ë¤·¤¿¡£
1.0.0filekanaxs_ex-1.0.0.cs.txt

¤½¤Î¾

  • VB.NETÈǤ⤢¤ê¤Þ¤¹¡£
  • ³ÈÄ¥¥á¥½¥Ã¥É¤Ë¤·¤¿Êý¤¬ÊØÍø¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¢¤½¤¦¤·¤Þ¤»¤ó¤Ç¤·¤¿¡£

¥³¥á¥ó¥È

  • ToZenkakuKana¤Ç¡¢¡Ö¥Å¥Ç¥É¡×¤ÎÉôʬ¤Ç¤¦¤Þ¤¯ÊÑ´¹¤µ¤ì¤Ê¤¤¡© -- tritonal 2014-06-19 (ÌÚ) 17:09:55
    • KanaEx¤ÎToZenkakuKana¥á¥½¥Ã¥É¤Ç¤¹¤Í¡£½¤Àµ¤·¤Æ¤ª¤­¤Þ¤·¤¿¡£¤´Êó¹ð¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ -- ´ÉÍý¿Í 2014-06-20 (¶â) 01:56:17


¥Ú¡¼¥¸¾ðÊó
[ ¥È¥Ã¥× ]   [ ÊÔ½¸ | Åà·ë | º¹Ê¬ | ¥Ð¥Ã¥¯¥¢¥Ã¥× | źÉÕ | Ê£À½ | ̾Á°Êѹ¹ | ¥ê¥í¡¼¥É ]   [ ¿·µ¬ | »Ò¥Ú¡¼¥¸ºîÀ® | °ìÍ÷ | ñ¸ì¸¡º÷ | ºÇ½ª¹¹¿· | ¥Ø¥ë¥× ]