| 789 | } |
| 790 | |
| 791 | String String::padRight(size_t size, String const& filler) const { |
| 792 | if (!filler.length()) |
| 793 | return *this; |
| 794 | String rs = *this; |
| 795 | while (rs.length() < size) { |
| 796 | rs.append(filler); |
| 797 | } |
| 798 | return rs; |
| 799 | } |
| 800 | |
| 801 | String& String::operator=(String const& s) { |
| 802 | m_string = s.m_string; |