Return TypeFunction nameArguments
voidhdsApp::ConvertText(hzChain&,hzHttpEvent*,)

Declared in file: hzDissemino.h
Defined in file : hdsSystem.cpp

Function Logic:

0:START 1:hzChain::Size 2:!Z.Size() 3: No text 4:!zi.eof(); 5:*zi==(char)64 6:zi==@resarg; 7:pE->m_Resarg 8:items 9:zi 10:*zi==(char)37 11:zi[1]==(char)37 12:items zi 13:IsAlpha(zi[1])&&zi[2]==(char)58&&IsAlpha(zi[3]) 14:AtPcEnt(pcntEnt,zi) 15:hdsApp::PcEntConv rc 16:atom.Type()!=BASETYPE_UNDEF 17:atom.IsSet() 18:hzAtom::Str 19:hzLogger::Log items 20:hzString::Length zi 21:hzChain::AddByte items 22:hzChain::Clear Z 23: No text

Function body:

void hdsApp::ConvertText (hzChain& Z, hzHttpEvent* pE)
{
   _hzfunc("hdsApp::ConvertText(1)") ;
   hzChain     W ;
   hzChain     C ;
   chIter      zi ;
   hzAtom      atom ;
   hzString    pcntEnt ;
   hzEcode     rc ;
   if (!Z.Size())
       return ;
   for (zi = Z ; !zi.eof() ;)
   {
       if (*zi == CHAR_AT)
       {
           if (zi == "@resarg;")
           {
               if (pE->m_Resarg)
                   C << pE->m_Resarg ;
               zi += 8;
               continue ;
           }
       }
       if (*zi == CHAR_PERCENT)
       {
           if (zi[1]== CHAR_PERCENT)
               { C << "%%" ; zi += 2; continue ; }
           if (IsAlpha(zi[1])&& zi[2]== CHAR_COLON && IsAlpha(zi[3]))
           {
               if (AtPcEnt(pcntEnt, zi))
               {
                   rc = PcEntConv(atom, pcntEnt, pE) ;
                   if (atom.Type() != BASETYPE_UNDEF)
                   {
                       if (atom.IsSet())
                           C << atom.Str() ;
                   }
                   else
                   {
                       m_pLog->Log("Atom type unknown %s\n", *pcntEnt) ;
                       C << pcntEnt ;
                   }
                   zi += pcntEnt.Length() ;
                   continue ;
               }
           }
       }
       C.AddByte(*zi) ;
       zi++ ;
   }
   Z.Clear() ;
   Z = C ;
}