langtools/src/share/classes/com/sun/tools/javah/Mangle.java
changeset 22163 3651128c74eb
parent 14263 473b1eaede64
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
    53         public static final int JNI              = 4;
    53         public static final int JNI              = 4;
    54         public static final int SIGNATURE        = 5;
    54         public static final int SIGNATURE        = 5;
    55         public static final int METHOD_JDK_1     = 6;
    55         public static final int METHOD_JDK_1     = 6;
    56         public static final int METHOD_JNI_SHORT = 7;
    56         public static final int METHOD_JNI_SHORT = 7;
    57         public static final int METHOD_JNI_LONG  = 8;
    57         public static final int METHOD_JNI_LONG  = 8;
    58     };
    58     }
    59 
    59 
    60     private Elements elems;
    60     private Elements elems;
    61     private Types types;
    61     private Types types;
    62 
    62 
    63     Mangle(Elements elems, Types types) {
    63     Mangle(Elements elems, Types types) {
   174         sb.append(")");
   174         sb.append(")");
   175         return sb.toString();
   175         return sb.toString();
   176     }
   176     }
   177 
   177 
   178     /* Warning: Intentional ASCII operation. */
   178     /* Warning: Intentional ASCII operation. */
   179     private static final boolean isalnum(char ch) {
   179     private static boolean isalnum(char ch) {
   180         return ch <= 0x7f && /* quick test */
   180         return ch <= 0x7f && /* quick test */
   181             ((ch >= 'A' && ch <= 'Z') ||
   181             ((ch >= 'A' && ch <= 'Z') ||
   182              (ch >= 'a' && ch <= 'z') ||
   182              (ch >= 'a' && ch <= 'z') ||
   183              (ch >= '0' && ch <= '9'));
   183              (ch >= '0' && ch <= '9'));
   184     }
   184     }
   185 
   185 
   186     /* Warning: Intentional ASCII operation. */
   186     /* Warning: Intentional ASCII operation. */
   187     private static final boolean isprint(char ch) {
   187     private static boolean isprint(char ch) {
   188         return ch >= 32 && ch <= 126;
   188         return ch >= 32 && ch <= 126;
   189     }
   189     }
   190 }
   190 }