diff options
author | Nat Friedman <nat@src.gnome.org> | 2000-04-06 13:21:29 +0800 |
---|---|---|
committer | Nat Friedman <nat@src.gnome.org> | 2000-04-06 13:21:29 +0800 |
commit | 3d9889baee9c5c11cd960a43c0f51c449ce35b45 (patch) | |
tree | 7ed94e8a89455a0ba446e524e15db2defc4aef28 /e-util/ename/e-name-western.h | |
parent | 2e4a5463075e387151afcdf61b74202a729944db (diff) | |
download | gsoc2013-evolution-3d9889baee9c5c11cd960a43c0f51c449ce35b45.tar.gz gsoc2013-evolution-3d9889baee9c5c11cd960a43c0f51c449ce35b45.tar.zst gsoc2013-evolution-3d9889baee9c5c11cd960a43c0f51c449ce35b45.zip |
Committing this thing I wrote last year to parse names. It's cute.
svn path=/trunk/; revision=2301
Diffstat (limited to 'e-util/ename/e-name-western.h')
-rw-r--r-- | e-util/ename/e-name-western.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/e-util/ename/e-name-western.h b/e-util/ename/e-name-western.h new file mode 100644 index 0000000000..695719b1c0 --- /dev/null +++ b/e-util/ename/e-name-western.h @@ -0,0 +1,23 @@ +#ifndef __E_NAME_WESTERN_H__ +#define __E_NAME_WESTERN_H__ + +#include <ename/e-name.h> + +typedef struct { + + /* Public */ + char *prefix; + char *first; + char *middle; + char *nick; + char *last; + char *suffix; + + /* Private */ + char *full; +} ENameWestern; + +ENameWestern *e_name_western_parse (const char *full_name); +void e_name_western_free (ENameWestern *w); + +#endif /* ! __E_NAME_WESTERN_H__ */ |