Documentation of 'com.mhuss.Util.CMac' Java class
CMac
com.mhuss.Util

Class CMac



  • public class CMac
    extends java.lang.Object
    This is a set of handy utility functions (from 'C' land).
    Note: For simplicity, these assume the 'C' locale and ASCII charset
    • Constructor Summary

      Constructors 
      Constructor and Description
      CMac() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static boolean isalnum(char c)
      Returns true if the char isalpha() or isdigit().
      static boolean isalpha(char c)
      Returns true if the char isupper() or islower().
      static boolean isascii(char c)
      Returns true if the int value of the char is from 0 to 127 inclusive.
      static boolean isdigit(char c)
      Returns true if the char is from '0' to '9' inclusive.
      static boolean islower(char c)
      Returns true if the char is from 'a' to 'z' inclusive.
      static boolean isspace(char c)
      Returns true if the char is in the set SP, HT, LF, VT, FF, CR.
      static boolean isupper(char c)
      Returns true if the char is from 'A' to 'Z' inclusive.
      static boolean isxdigit(char c)
      Returns true if the char isdigit() or is from 'A' to 'F' or 'a' to 'f' inclusive.
      static char tolower(char c)
      Returns lowercase of input char if input is from 'A' to 'Z', else returns input char unchanged.
      static char toupper(char c)
      Returns uppercase of input char if input is from 'a' to 'z', else returns input char unchanged.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CMac

        public CMac()
    • Method Detail

      • isalpha

        public static boolean isalpha(char c)
        Returns true if the char isupper() or islower().
      • isupper

        public static boolean isupper(char c)
        Returns true if the char is from 'A' to 'Z' inclusive.
      • islower

        public static boolean islower(char c)
        Returns true if the char is from 'a' to 'z' inclusive.
      • isdigit

        public static boolean isdigit(char c)
        Returns true if the char is from '0' to '9' inclusive.
      • isxdigit

        public static boolean isxdigit(char c)
        Returns true if the char isdigit() or is from 'A' to 'F' or 'a' to 'f' inclusive.
      • isalnum

        public static boolean isalnum(char c)
        Returns true if the char isalpha() or isdigit().
      • isspace

        public static boolean isspace(char c)
        Returns true if the char is in the set SP, HT, LF, VT, FF, CR.
      • isascii

        public static boolean isascii(char c)
        Returns true if the int value of the char is from 0 to 127 inclusive.
      • toupper

        public static char toupper(char c)
        Returns uppercase of input char if input is from 'a' to 'z', else returns input char unchanged.
      • tolower

        public static char tolower(char c)
        Returns lowercase of input char if input is from 'A' to 'Z', else returns input char unchanged.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.