Strip '%40' and `@` chars from string start if they exist.
| 254 | |
| 255 | // Strip '%40' and `@` chars from string start if they exist. |
| 256 | string stripAtSymbol(string const & inputString) |
| 257 | { |
| 258 | if (inputString.empty()) |
| 259 | return inputString; |
| 260 | if (inputString.front() == '@') |
| 261 | return inputString.substr(1); |
| 262 | if (inputString.starts_with("%40")) |
| 263 | return inputString.substr(3); |
| 264 | return inputString; |
| 265 | } |
| 266 | |
| 267 | string ValidateAndFormat_contactLine(string const & linePage) |
| 268 | { |
no test coverage detected