source: to-imperative/trunk/runtime/rf_char.ih @ 667

Last change on this file since 667 was 667, checked in by luba, 18 years ago
  • to_wchar_t() method is added
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 774 bytes
Line 
1// $Source$
2// $Revision: 667 $
3// $Date: 2003-04-25 17:43:28 +0000 (Fri, 25 Apr 2003) $
4// $Author: luba $
5
6#include "rf_char.hh"
7//#include "rf_int.hh"
8#include "rf_term.ih"
9
10#include <wctype.h>
11#include <wchar.h>
12#include <locale.h>
13
14namespace rftype
15{
16
17using namespace rfrt ;
18
19inline Char::Char(wchar_t _wch) :
20  Term (term_sym, type_char)
21{
22  uint_data2 = _wch;
23}
24
25inline bool Char::is_digit() const {
26  return iswdigit(this->uint_data2);
27};
28
29inline wchar_t Char::to_wchar_t() const {
30  return uint_data2;
31};
32#if 0
33inline Char::Char(const Char& _ch) :
34  Term (term_sym, type_char)
35{
36  uint_data2 = _ch.uint_data2;
37}
38#endif
39#if 0
40
41inline Int Char::to_byte() const {
42  Int(ch);
43};
44
45inline bool Char::operator==(const Char& c) const {
46  return (ch == c.ch);
47};
48
49
50
51inline wchar_t Char::to_wchar_t() const {
52  return ch;
53}
54
55#endif
56
57}
Note: See TracBrowser for help on using the repository browser.