source: to-imperative/trunk/runtime/rf_string.ih @ 887

Last change on this file since 887 was 887, checked in by luba, 18 years ago
  • String class
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 613 bytes
Line 
1#ifndef __rf_string_ih__
2#define __rf_string_ih__
3
4#include "rf_string.hh"
5#include "rf_common.ih"
6
7namespace rftype
8{
9
10using namespace rfrt ;
11
12inline String::String(size_t _len) :
13  Object(),
14  WString(_len)
15{}
16
17inline unsigned String::get_type () const
18{
19  return reg.get_type();
20}
21
22
23//
24//
25inline uint32_t String::hash () const {
26  return 0;
27}
28
29inline bool String::operator == (Object const& _obj) const {
30  try {
31    String const& str = dynamic_cast<String const&>(_obj);
32    return (this->get_data()) == str.get_data();
33  } catch (std::bad_cast&) {
34    return false;
35  }
36 
37}
38
39
40}
41
42#endif // __rf_string_ih__
Note: See TracBrowser for help on using the repository browser.