cpp, meta, C++


#undef   BB

#undef   BBStr

#undef   bb

#undef   bbStr

#define BB

#define BBStr( x,y,z )  ;

#define bb

#define bbStr( x,y,z )  ;

#ifndef procNestOn

#undef   LB_

#undef   LE_

#undef   LE_ret

#undef      ret

#undef      ret_

#undef   __

#undef   ___

#define LB_( x )   

    {

    #define LE_        

    }

#define ret_   return ;

#define LE_ret( x )   return( x );   

#define ret( x )   return( x );

#define __

#define ___

#endif

/* Module      ut/ut_repl                         uts.ic

   *****************************************************************************

   Authors     GRT                                                 ALL

*/

#include for_spu.h

C++ . ALL . top . meta    

class Ut_Replace


/* _____________________________________________________________________________ R e u s e . f o r . ALL Services for replacing strings in text files _____________________________________________________________________________ */ { public: protected: private: // exported methods: public: void Ut_Replace :: htm_compressor /* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ ( char * aus , char * nch // darf 0 sein ) ; public: void Ut_Replace :: Replace /* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ ( char * aus , char * nch // darf 0 sein, char * str1 , char * str2 ) ; public: char * Ut_Replace :: Replace /* ----------------------------------------------------------------------------- Der Aufrufer garantiert: - In Datei 'spec stehende Zeilen der Form -/+ str1 str2 -/f from -/f from to -/- str1 sind zu verstehen als Befehle Replace 'str1 by 'str2 in file 'from (or a copy 'to of 'from). Zwischen -/+ str1 str2 und -/- str1 darf man beliebig viele Komman- dos -/f geben. Die Funktion sieht jedoch nur Zeilen, die in Spalte 1 mit -/ beginnen: Alle anderen gelten als Kommentar. Note: If str1 or str2 contains \" or ', enclose it in ' or \" resp. Strings containing non-printable characters have to be given in the form ascii.PP.ZZ.PP.ZZ.ZZ.PP ..., ZZ; the decimal representation of a non-printable ascii character, PP any sequence of printable characters. Example: ascii.10.10.10; is a sequene of 3 line feeds. Die Funktion garantiert: - EN_ok, wenn sie den so spezifizierten Auftrag erledigen konnte bis auf gewisse Ausnahmen, die sie in Datei X beschreibt. Return 0, wenn X leer, andernfalls Pointer auf den absoluten Pfad hin zu dieser Datei %TMP/... - ansonsten aber EN_err. ----------------------------------------------------------------------------- */ ( char * spec ) ; public: void Ut_Replace :: Replace /* ----------------------------------------------------------------------------- Assume: Datei ''from existiert und 'to kann erzeugt werden (selbst dann noch, wenn to == from sein sollte). Do: Kopiere ''from nach ''to unter Vornahme aller in ''replace geforderten Ersetzungen. Choose errno from EN_ok, EN_err, but choose ... ----------------------------------------------------------------------------- */ ( char * to , char * from , str_set & replace , BOOL also_incs // replace also in all includes "...", BOOL not_as_prefix // ) ; public: void Ut_Replace :: expAscii /* ----------------------------------------------------------------------------- Replace substring( ascii.n1.n2.....nn; ) by its value. ----------------------------------------------------------------------------- */ ( char * s ) ; } ; #endif
top . is_inc_for . C++
Include-structure of
todir / ut_repl.h

.   for_spu.h
.   .   for_all.h
.   .   .   exec_ut.h
.   .   .   .   exec_ut.h3
.   .   .   .   macros_1.h
.   .   .   .   traceco.h
.   .   .   precomp.h
.   .   .   .   basis.h
.   .   .   .   .   compiler.h
.   .   .   .   .   dmlerr.h
.   .   .   .   en.h
.   .   .   .   .   en_lec.h
.   .   .   .   limits.h
.   .   .   .   mt.h
.   .   .   .   obsolete.h
.   .   .   .   ot.h
.   .   .   .   st.h
.   .   .   .   trace.h
.   .   .   standard.h
.   .   .   toscreen.h
.   .   spu.h
.   .   .   help_gen.h
.   .   .   .   help_gen.h3
.   .   .   rbuffer.h
.   .   .   .   rbuffer.h3
.   .   .   .   str_set.h
.   .   .   .   .   str_set.h3
.   .   .   safe_uts.h
.   .   .   .   safe_uts.h3
.   .   .   ut_repl.h

30 include files
top . is_inc_for . C++