PUBLIC TYPE VCAddress RECORD
PostOfficeBox,
ExtendedAddress, -- apartment or suite number
Street,
City,
State,
ZIP,
Country STRING
-- , CountryCode STRING -- X-ABADR:de
END RECORD
|
The VCAddress structured type to hold vCard address data. |
PUBLIC TYPE VCName RECORD
FirstName,
LastName,
MiddleName,
Prefix,
Suffix STRING
--, FormattedName STRING
END RECORD
|
The VCName structured type to hold vCard data related to the person
name. |
PUBLIC TYPE VCPerson RECORD
FirstName STRING, -- N[1]
LastName STRING, -- N[2]
MiddleName STRING, -- N[3]
Prefix STRING, -- N[4]
Suffix STRING, -- N[5]
formattedName STRING, -- FN
nickname STRING, -- NICKNAME
jobTitle STRING, -- TITLE
organization STRING, -- ORG.value[1]
department STRING, -- ORG.value[2]
birthday STRING, -- BDAY
note STRING, -- NOTE
address DYNAMIC ARRAY OF RECORD
type STRING,
PostOfficeBox, -- ADR[1]
ExtendedAddress, -- ADR[2]
Street, -- ADR[3]
City, -- ADR[4]
State, -- ADR[5]
ZIP, -- ADR[6]
Country STRING -- ADR[7]
END RECORD,
phone DYNAMIC ARRAY OF RECORD
type STRING,
number STRING -- TEL
END RECORD,
email DYNAMIC ARRAY OF RECORD
type STRING,
value STRING -- EMAIL
END RECORD
|
The VCPerson structured type to hold vCard data. |
format_person(
person VCPerson )
RETURNING result STRING
|
Converts a VCPerson record to a vCard string representation vCard. |
scan_address(
source STRING,
type STRING )
RETURNING address VCAddress
|
Extracts an address from a string representing a vCard. |
scan_email(
source STRING,
type STRING )
RETURNING email STRING
|
Extracts an email from a string representing a vCard. |
scan_person(
source STRING )
RETURNING person VCPerson
|
Extracts person's data from a string representing a
vCard. |
scan_phone(
source STRING,
type STRING )
RETURNING phone STRING
|
Extracts a phone number from a string representing a
vCard. |