StructuredName
Object Hierarchy:
Description:
public class StructuredName : Object
Object for 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
Namespace: Folks
Package: folks
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.