appletwordender.c

Go to the documentation of this file.
00001 
00002 /*  $Id: appletwordender.c 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #include "appletwordender.h"
00008 
00009 
00010 static char wordenders [] = {
00011     
00012     ' ', ',', '.', '/', '<', '>', ';', ':', '\'', '"', '[', '{', 
00013     
00014     ']', '}', '\\', '|', '=', '+', '-', '_', '!', '@', '#', '$', 
00015     
00016     '$', '%', '^', '&', '*', '(', '`', '~', 
00017     
00018     chreturn, chtab, chlinefeed
00019     };
00020       
00021     
00022 boolean wordender (char ch) {
00023     
00024     short i;
00025     char *p = wordenders;
00026     
00027     for (i = 0; i < sizeof (wordenders); i++) {
00028         
00029         if (ch == *p++)
00030             return (true);
00031         } /*for*/
00032     
00033     return (false);
00034     } /*wordender*/
00035     
00036     

Generated on Wed May 31 18:19:44 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6