EAddressWestern

EAddressWestern

Synopsis

                    EAddressWestern;
EAddressWestern*    e_address_western_parse             (const char *in_address);
void                e_address_western_free              (EAddressWestern *eaw);

Description

Details

EAddressWestern

typedef struct {
	char *po_box;
	char *extended;
	char *street;
	char *locality;
	char *region;
	char *postal_code;
	char *country;
} EAddressWestern;

A structured representation of the contact's ADR vCard field.

char *po_box; the post office box
char *extended; an extra line for the address (e.g., "Apt. 101", "c/o John Doe"). Locale-specific.
char *street; the street and number
char *locality; usually "city", though this depends upon the locale
char *region; region, province, or state (locale-specific)
char *postal_code; postal/zip code
char *country; country

e_address_western_parse ()

EAddressWestern*    e_address_western_parse             (const char *in_address);

Parses a string representing a mailing address into a structure of type EAddressWestern.

in_address : a string representing a mailing address
Returns : A new EAddressWestern structure, or NULL if the parsing failed.

e_address_western_free ()

void                e_address_western_free              (EAddressWestern *eaw);

Frees eaw and its contents.

eaw : an EAddressWestern