| 422 | } |
| 423 | |
| 424 | QString FormatPhone(QString phone) { |
| 425 | if (phone.isEmpty()) { |
| 426 | return QString(); |
| 427 | } |
| 428 | if (phone.at(0) == '0') { |
| 429 | return phone; |
| 430 | } |
| 431 | phone = phone.remove(QChar::Space); |
| 432 | return Countries::Instance().format({ |
| 433 | .phone = (phone.at(0) == '+') ? phone.mid(1) : phone, |
| 434 | }).formatted; |
| 435 | } |
| 436 | |
| 437 | QString FormatTTL(float64 ttl) { |
| 438 | if (ttl < 86400) { |
no test coverage detected