diff options
author | nobody <nobody@localhost> | 2000-04-24 03:19:31 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-04-24 03:19:31 +0800 |
commit | 1d2905c71fce6565f5cda0a34c63fa67634dc01a (patch) | |
tree | 99a4d80d9f1acb9f56cf26e221bf13a312e97890 /e-util/ename/test-ename-western.c | |
parent | 49c2cb5af1a58b24fc08d2ce351307a4cfad96f5 (diff) | |
download | gsoc2013-evolution-GNOME_UTILS_1_1_0.tar gsoc2013-evolution-GNOME_UTILS_1_1_0.tar.gz gsoc2013-evolution-GNOME_UTILS_1_1_0.tar.bz2 gsoc2013-evolution-GNOME_UTILS_1_1_0.tar.lz gsoc2013-evolution-GNOME_UTILS_1_1_0.tar.xz gsoc2013-evolution-GNOME_UTILS_1_1_0.tar.zst gsoc2013-evolution-GNOME_UTILS_1_1_0.zip |
This commit was manufactured by cvs2svn to create tagGNOME_UTILS_1_1_0
'GNOME_UTILS_1_1_0'.
svn path=/tags/GNOME_UTILS_1_1_0/; revision=2567
Diffstat (limited to 'e-util/ename/test-ename-western.c')
-rw-r--r-- | e-util/ename/test-ename-western.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/e-util/ename/test-ename-western.c b/e-util/ename/test-ename-western.c deleted file mode 100644 index 17ff91dbf2..0000000000 --- a/e-util/ename/test-ename-western.c +++ /dev/null @@ -1,70 +0,0 @@ -#include <gnome.h> -#include <ctype.h> - -#include <ename/e-name.h> - -static void -do_name (char *n) -{ - ENameWestern *wname; - - wname = e_name_western_parse (n); - - printf ("Full Name: [%s]\n", n); - - printf ("Prefix: [%s]\n", wname->prefix); - printf ("First: [%s]\n", wname->first); - printf ("Middle: [%s]\n", wname->middle); - printf ("Nick: [%s]\n", wname->nick); - printf ("Last: [%s]\n", wname->last); - printf ("Suffix: [%s]\n", wname->suffix); - - printf ("\n"); - - e_name_western_free (wname); -} - -int -main (int argc, char **argv) -{ - if (argc == 2) { - while (! feof (stdin)) { - char s[256]; - - if (fgets (s, sizeof (s), stdin) == NULL) - return 0; - - g_strstrip (s); - - do_name (s); - } - - return 0; - } - - do_name ("Nat"); - do_name ("Karl Anders Carlsson"); - do_name ("Miguel de Icaza Amozorrutia"); - do_name ("The Honorable Doctor de Icaza, Miguel \"Sparky\" Junior, PhD, MD"); - do_name ("Nat Friedman MD, Phd"); - do_name ("Nat Friedman PhD"); - do_name ("Friedman, Nat"); - do_name ("Miguel de Icaza Esquire"); - do_name ("Dr Miguel \"Sparky\" de Icaza"); - do_name ("Robert H.B. Netzer"); - do_name ("W. Richard Stevens"); - do_name ("Nat Friedman"); - do_name ("N. Friedman"); - do_name ("Miguel de Icaza"); - do_name ("Drew Johnson"); - do_name ("President Bill \"Slick Willy\" Clinton"); - do_name ("The Honorable Mark J. Einstein Jr"); - do_name ("Friedman, Nat"); - do_name ("de Icaza, Miguel"); - do_name ("Mr de Icaza, Miguel"); - do_name ("Smith, John Jr"); - do_name ("Nick Glennie-Smith"); - do_name ("Dr von Johnson, Albert Roderick Jr"); - - return 0; -} |