Changeset 927


Ignore:
Timestamp:
Jul 1, 2003, 11:51:44 AM (18 years ago)
Author:
luba
Message:
  • is_digit(), is_letter() methods are used
Location:
to-imperative/trunk/library/Class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/library/Class/digit_q_.cc

    r918 r927  
    2222      retfail;
    2323    else {
    24       //
    25       // FIXME: here method Char::is_digit() should be used.
    26       wchar_t c = b->to_wchar_t();
    27       if (c < 48 || c > 57)
     24      if (!(b->is_digit()))
    2825        retfail;
    2926    }
  • to-imperative/trunk/library/Class/letter_q_.cc

    r918 r927  
    2222      retfail;
    2323    else {
    24       //
    25       // FIXME: here method Char::is_letter() should be used.
    26       wchar_t c = b->to_wchar_t();
    27       if (c < 65 || c > 128)
     24      if (!(b->is_letter()))
    2825        retfail;
    2926    }
Note: See TracChangeset for help on using the changeset viewer.