Coverage report

| %line | %branch
--- | --- | ---
com.ozacc.mail.fetch.impl.sk_jp.io.FromCP932Corrector |
0% |
0% |

1 |  |
     /*
2 |  |
      * @(#) $Id: FromCP932Corrector.java,v 1.1.2.1 2005/01/18 07:20:36 otsuka Exp $
3 |  |
      * $Revision: 1.1.2.1 $
4 |  |
      * Copyright (c) 2000 Shin Kinoshita All Rights Reserved.
5 |  |
      */
6 |  |
     package com.ozacc.mail.fetch.impl.sk_jp.io;
7 |  |
8 |  |
     /**
9 |  |
      * FromCP932Corrector.
10 |  |
      * <p>
11 |  |
      * CorrectOutputStreamWriter¤ÇÍÑ¤¤¤é¤?¤?Ê¸»úÎó¥Ð¥Ã¥Õ¥¡ÊäÀµ¥¯¥é¥¹¤Ç¤¹¡£<br>
12 |  |
      * É÷´Ö°?ÍÎ¤µ¤ó¤ÎJavaHouse-BrewersÅ?¹Æµ»ö[14452]¤ÎCp932¥¯¥é¥¹¤«¤?
13 |  |
      * ÊÑ´¹É½¤ò»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤¤¤Þ¤¹¡£<br>
14 |  |
      * </p>
15 |  |
      * @version $Revision: 1.1.2.1 $ $Date: 2005/01/18 07:20:36 $
16 |  |
      * @author Shin
17 |  |
      */
18 | 0 |
     public class FromCP932Corrector extends UnicodeCorrector {
19 |  |
         /**
20 |  |
          * UnicodeÊ¸»úÇÛÎó¤ÎÊäÀµ¤ò¹Ô¤¤¤Þ¤¹¡£
21 |  |
          * <p>
22 |  |
          * "MS932""Shift_JIS"¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°°Ê³°¤Ç½ÐÎÏ¤·¤è¤¦¤È¤·¤¿ºÝ¤Î
23 |  |
          * sun.io¤äcom.ms¥³¥ó¥Ð¡¼¥¿¤Ç¤ÏÀµ¾?¤ËÊÑ´¹¤Ç¤¤Ê¤¤ÉôÊ¬¤òÊäÀµ¤·¤Þ¤¹¡£
24 |  |
          * </p>
25 |  |
          * @param  c     source character
26 |  |
          * @return Result character that corrected.
27 |  |
          */
28 |  |
         public char correct(class="keyword">char c) {
29 | 0 |
             switch (c) {
30 |  |
                 // ISO-2022-JP¥³¥ó¥Ð¡¼¥¿¤¬Àµ¤·¤¯²ò¼á¤·¤Æ¤¤¤?¤è¤¦¤À
31 |  |
     //          case 0xff3c:        // FULLWIDTH REVERSE SOLIDUS ->
32 |  |
     //              return 0x005c;  // REVERSE SOLIDUS
33 |  |
                 case 0xff5e:        // FULLWIDTH TILDE ->
34 | 0 |
                     return 0x301c;  // WAVE DASH
35 |  |
                 case 0x2225:        // PARALLEL TO ->
36 | 0 |
                     return 0x2016;  // DOUBLE VERTICAL LINE
37 |  |
                 case 0xff0d:        // FULLWIDTH HYPHEN-MINUS ->
38 | 0 |
                     return 0x2212;  // MINUS SIGN
39 |  |
                 case 0xffe0:        // FULLWIDTH CENT SIGN ->
40 | 0 |
                     return 0x00a2;  // CENT SIGN
41 |  |
                 case 0xffe1:        // FULLWIDTH POUND SIGN ->
42 | 0 |
                     return 0x00a3;  // POUND SIGN
43 |  |
                 case 0xffe2:        // FULLWIDTH NOT SIGN ->
44 | 0 |
                     return 0x00ac;  // NOT SIGN
45 |  |
             }
46 | 0 |
             return c;
47 |  |
         }
48 |  |
     }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.