Ignore:
Timestamp:
Jul 17, 2003, 10:08:22 AM (18 years ago)
Author:
luba
Message:
  • String::fill(String&, size_t, size_t, wchar_t) method is corrected
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/runtime/rf_string.cc

    r1010 r1019  
    88using namespace rfrt ;
    99
    10 Expr String::create_expr(String*  _string) {
    11   Expr e = Expr(dynamic_cast<Object*>(_string));
    12   WString str = WString(e);
    13   size_t i = str.get_length();
    14   printf("i = %u\n", i);
    15   for (size_t i = 0; i < str.get_length(); i++) {
    16     printf ("str[i] = %c\n", str[i]);
    17     printf("create_expr\n");
    18   }
    19   return e;
    20 }
    21 
    2210Expr String::fill(String& _str, size_t _pos, size_t _len, wchar_t const _fill)
    2311 {
     
    2513    _str[i] = _fill;
    2614  }
    27   return String::create_expr(&_str);
     15  return Expr(new rftype::String(_str));
    2816}
    2917
Note: See TracChangeset for help on using the changeset viewer.