MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / FormatPhone

Function FormatPhone

Telegram/SourceFiles/ui/text/format_values.cpp:424–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424QString 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
437QString FormatTTL(float64 ttl) {
438 if (ttl < 86400) {

Callers 15

resetAccountMethod · 0.85
CodeWidgetMethod · 0.85
updateDescTextMethod · 0.85
getLayoutDescriptionMethod · 0.85
resolvePhoneMethod · 0.85
setupCoverMethod · 0.85
FieldsValueFunction · 0.85
processUserMethod · 0.85
findContactPhoneMethod · 0.85
readPeerFunction · 0.85
createRowMethod · 0.85

Calls 5

QStringClass · 0.50
InstanceClass · 0.50
isEmptyMethod · 0.45
removeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected