Changeset 930


Ignore:
Timestamp:
Jul 1, 2003, 11:56:04 AM (18 years ago)
Author:
luba
Message:
  • is_letter() method is added
Location:
to-imperative/trunk/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/runtime/rf_char.hh

    r835 r930  
    5656  inline bool is_digit() const;
    5757
     58  inline bool is_letter() const;
     59
    5860  inline bool is_space() const;
    5961 
  • to-imperative/trunk/runtime/rf_char.ih

    r835 r930  
    2929  return iswdigit(this->uint_data2);
    3030};
     31
     32
     33inline bool Char::is_letter() const {
     34  return ( ( (this->uint_data2)>64 && (this->uint_data2)<91 )
     35           || ((this->uint_data2)>96 && (this->uint_data2) < 123));
     36}
    3137
    3238inline wchar_t Char::to_wchar_t() const {
Note: See TracChangeset for help on using the changeset viewer.