Return Type | Function name | Arguments |
---|---|---|
void | hdsApp::ConvertText | (hzChain&,hzHttpEvent*,) |
Declared in file: hzDissemino.h
Defined in file : hdsSystem.cpp
Function Logic:
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 ; }