- public AddressWestern? address_western_parse (string? in_address)
Parses a string representing a mailing address into a structure of
type AddressWestern.
- public bool book_indices_get_ascending_sort (BookIndicesUpdater self)
Returns whether the self considers contacts stored in the
ascending order.
- public void book_indices_set_ascending_sort (BookIndicesUpdater self, bool ascending_sort)
Sets whether the contacts are sorted in an ascending order; if not,
then they are sorted in the descending order.
- public BookQuery book_query_and (int nqs, BookQuery qs, bool unref)
Create a new BookQuery
which is the logical AND of the queries in qss.
- public BookQuery book_query_any_field_contains (string value)
Creates a new BookQuery
which tests if any field contains value.
- public BookQuery book_query_field_exists (ContactField field)
Creates a new BookQuery
which tests if the field field exists.
- public BookQuery book_query_field_test (ContactField field, BookQueryTest test, string value)
Creates a new BookQuery
which tests field for value using the test test.
- public BookQuery book_query_from_string (string query_string)
Parse query_string and return a new
BookQuery representing it.
- public BookQuery book_query_or (int nqs, BookQuery qs, bool unref)
Creates a new BookQuery
which is the logical OR of the queries in qss.
- public BookQuery book_query_vcard_field_exists (string field)
Creates a new BookQuery
which tests if the field field exists.
- public BookQuery book_query_vcard_field_test (string field, BookQueryTest test, string value)
Creates a new BookQuery
which tests field for value using the test test.
- public uint32 book_util_conflict_resolution_to_operation_flags (ConflictResolution conflict_resolution)
- public void book_util_diff_categories (Contact? old_contact, Contact? new_contact, out HashTable<unowned string,int> out_added, out HashTable<unowned string,int> out_removed)
Compares list of categories on the old_contact with the
list of categories on the new_contact and fills out_added categories and out_removed categories
accordingly, as if the old_contact is replaced with the new_contact.
- public void book_util_foreach_address (string email_address, HRFunc func)
Parses the email_address and calls func for
each found address.
- public ConflictResolution book_util_operation_flags_to_conflict_resolution (uint32 flags)
- public List<string> contact_attr_list_copy (List<string> list)
Copies a list of allocated strings, specifically for the
ContactAttrList boxed type used for multi valued contact fields.
- public void contact_attr_list_free (List<string> list)
Frees a list of allocated strings, specifically for the
ContactAttrList boxed type used for multi valued contact fields.
- public ContactCert? contact_cert_from_attr (VCardAttribute source)
Creates a new ContactCert
structure with the information from the source attribute.
- public ContactDate contact_date_from_string (string str)
- public ContactDateTime contact_date_time_from_string (string str, ContactDateTimeFlags flags)
- public ContactGeo? contact_geo_from_string (string latitude, string longitude)
Creates a new ContactGeo
, which has set latitude and longitude from the provided strings.
- public ContactName contact_name_from_string (string name_str)
Creates a new ContactName
based on the parsed name_str.
- public NameWestern name_western_parse (string full_name)
Parses full_name and returns an
NameWestern struct filled with the component parts of the name.
- public PhoneNumberMatch phone_number_compare_strings (string first_number, string second_number) throws Error
Compares two phone numbers.
- public PhoneNumberMatch phone_number_compare_strings_with_region (string first_number, string second_number, string? region_code) throws Error
Compares two phone numbers within the context of region_code
.
- public PhoneNumber phone_number_from_string (string phone_number, string? region_code) throws Error
Parses the string passed in phone_number.
- public int phone_number_get_country_code_for_region (string? region_code) throws Error
Retrieves the preferred country calling code for region_code
, e.
- public string phone_number_get_default_region () throws Error
Retrieves the current two-letter country code that's used by default
for parsing phone numbers in phone_number_from_string.
- public bool phone_number_is_supported ()
Checks if phone number support is available.
- public VCardVersion vcard_version_from_string (string str)
- public unowned string vcard_version_to_string (VCardVersion version)