StructuredName
Object Hierarchy:
Description:
public class StructuredName : Object
Structured name representation for human names.
Represents a full name split in its constituent parts (given name, family name, etc.). This structure corresponds to the "N" field in
vCards. The parts of the name are never null
: an empty string indicates that a property is not set.
Since:
0.3.5
Content:
Properties:
- public string family_name { construct set; get; }
The family name.
- public string given_name { construct set; get; }
The given name.
- public string additional_names { construct set; get; }
Additional names.
- public string prefixes { construct set; get; }
The prefixes of a name.
- public string suffixes { construct set; get; }
The suffixes of a name.
Creation methods:
- public StructuredName (string? family_name, string? given_name, string? additional_names, string? prefixes, string? suffixes)
Create a StructuredName.
- public StructuredName.simple (string? family_name, string? given_name)
Create a StructuredName.
Methods:
- public bool is_empty ()
Whether none of the components is set.
- public bool equal (StructuredName other)
Whether two StructuredNames are the same.
- public string to_string ()
Formatted version of the structured name.
- public string to_string_with_format (string name_fmt)
Formatted version of the structured name.
Inherited Members:
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count