#include <libaddressinput/address_field.h>
#include <ostream>
namespace i18n {
namespace addressinput {
std::ostream& operator<<(std::ostream& o, AddressField field) {
switch (field) {
case COUNTRY:
o << "COUNTRY";
break;
case ADMIN_AREA:
o << "ADMIN_AREA";
break;
case LOCALITY:
o << "LOCALITY";
break;
case DEPENDENT_LOCALITY:
o << "DEPENDENT_LOCALITY";
break;
case SORTING_CODE:
o << "SORTING_CODE";
break;
case POSTAL_CODE:
o << "POSTAL_CODE";
break;
case STREET_ADDRESS:
o << "STREET_ADDRESS";
break;
case ORGANIZATION:
o << "ORGANIZATION";
break;
case RECIPIENT:
o << "RECIPIENT";
break;
default:
o << "[INVALID]";
break;
}
return o;
}
}
}