Changeset 1147


Ignore:
Timestamp:
2000-05-04T17:17:46+12:00 (24 years ago)
Author:
sjboddie
Message:

moved dm_safe from htmlutils to gsdltools

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/htmlutils.cpp

    r919 r1147  
    2828/*
    2929   $Log$
     30   Revision 1.6  2000/05/04 05:17:46  sjboddie
     31   moved dm_safe from htmlutils to gsdltools
     32
    3033   Revision 1.5  2000/02/13 20:38:59  sjboddie
    3134   added dm_safe function
     
    6972  return outstring;
    7073}
    71 
    72 text_t dm_safe (const text_t &instring) {
    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

    r919 r1147  
    3535text_t html_safe (const text_t &instring);
    3636
    37 text_t dm_safe (const text_t &instring);
    38 
    3937#endif
Note: See TracChangeset for help on using the changeset viewer.