Construct a string of the specified length made out of the supplied partial string.
| 31 | // Construct a string of the specified length made out of the supplied |
| 32 | // partial string. |
| 33 | string BigString(const string& partial_string, size_t n) { |
| 34 | string result; |
| 35 | while (result.size() < n) { |
| 36 | result.append(partial_string); |
| 37 | } |
| 38 | result.resize(n); |
| 39 | return result; |
| 40 | } |
| 41 | |
| 42 | // Construct a string from a number |
| 43 | string NumberString(int n) { |
no test coverage detected