From: Gonzalo A. <ga...@us...> - 2006-09-11 23:17:09
|
Update of /cvsroot/mod-c/ehtml/src In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv8365/src Modified Files: Common.cpp Log Message: Added skip_ws, skip_word functions. Index: Common.cpp =================================================================== RCS file: /cvsroot/mod-c/ehtml/src/Common.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Common.cpp 8 Sep 2006 20:59:02 -0000 1.8 --- Common.cpp 11 Sep 2006 23:17:06 -0000 1.9 *************** *** 473,474 **** --- 473,494 ---- } + const char* skip_ws(const char* s) { + while (isspace(*s)) ++s; + return s; + } + + char* skip_ws(char* s) { + while (isspace(*s)) ++s; + return s; + } + + const char* skip_word(const char* s) { + while (!isspace(*s) && *s) ++s; + return s; + } + + char* skip_word(char* s) { + while (!isspace(*s) && *s) ++s; + return s; + } + |