home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / CCARACT.ZIP / ccaracte.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-10  |  833 b   |  41 lines

  1.  
  2. class CCaractere
  3. {
  4.  public :
  5.  
  6.   enum Type { Lettre,
  7.               Chiffre,
  8.               SigneMathematique,
  9.               Ponctuation,
  10.               Mot,
  11.               FinDeLigne,
  12.               Nom,
  13.               Date,
  14.               Englobant };
  15.  
  16.   CCaractere();
  17.   CCaractere( char tcar );
  18.   ~CCaractere();
  19.   operator=( char tcar );
  20.   operator=( CCaractere tccar );
  21.   operator==( char tcar );
  22.   operator==( CCaractere tccar );
  23.   operator!=( char tcar );
  24.   operator!=( CCaractere tccar );
  25.   bool EstLettre();
  26.   bool EstChiffre();
  27.   bool EstSigneMathematique();
  28.   bool EstPonctuation();
  29.   bool EstMot();
  30.   bool EstFinDeLigne();
  31.   bool EstDate();
  32.   bool EstNom();
  33.   bool EstEnglobant();
  34.   bool EstDuType ( Type t );
  35.   char Valeur();
  36.   CString TexteDuType( Type t );
  37.  
  38.  private :
  39.    char car;
  40. };
  41.