oopapidocs  2.0
address.cpp
00001 #include "address.h"
00002 
00003 /* All static methods to initialize the type-wide constraints
00004    of our address-derived classes. */
00005    QString UsAddress::getPhoneFormat() {
00006        return
00007   "(\\+?1[- ]?)?\\(?(\\d{3,3})\\)?[\\s-]?(\\d{3,3})[\\s-]?(\\d{4,4})";
00008    }
00009    
00010 
00011 QString CanadaAddress::getPhoneFormat() {
00012     return
00013    "(\\+?1[- ]?)?\\(?(\\d{3,3})\\)?[\\s-]?(\\d{3,3})[\\s-]?(\\d{4,4})";
00014 }
00015 
 All Classes Namespaces Functions Enumerations