Changeset 919
- Timestamp:
- 2000-02-14T09:38:59+13:00 (24 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/htmlutils.cpp
r533 r919 28 28 /* 29 29 $Log$ 30 Revision 1.5 2000/02/13 20:38:59 sjboddie 31 added dm_safe function 32 30 33 Revision 1.4 1999/09/07 04:56:56 sjboddie 31 34 added GPL notice … … 67 70 } 68 71 72 text_t dm_safe (const text_t &instring) { 69 73 74 text_t outstring; 75 text_t::const_iterator here = instring.begin(); 76 text_t::const_iterator end = instring.end(); 77 while (here != end) { 78 if (*here == '_') outstring += "\\_"; 79 else outstring.push_back(*here); 80 here ++; 81 } 82 return outstring; 83 } -
trunk/gsdl/src/recpt/htmlutils.h
r533 r919 35 35 text_t html_safe (const text_t &instring); 36 36 37 text_t dm_safe (const text_t &instring); 38 37 39 #endif
Note:
See TracChangeset
for help on using the changeset viewer.