Construct a string from a number
| 41 | |
| 42 | // Construct a string from a number |
| 43 | string NumberString(int n) { |
| 44 | char buf[50]; |
| 45 | snprintf(buf, sizeof(buf), "%d.", n); |
| 46 | return string(buf); |
| 47 | } |
| 48 | |
| 49 | // Return a skewed potentially long string |
| 50 | string RandomSkewedString(int i, random::SimplePhilox* rnd) { |
no outgoing calls
no test coverage detected