12 void SetUcCh(const
TStr& Str);
20 void Save(
TSOut& SOut){ChTyV.Save(SOut); UcChV.Save(SOut);}
23 ChTyV=ChDef.
ChTyV; UcChV=ChDef.
UcChV;
return *
this;}
34 bool IsNmStr(
const TStr& Str)
const;
35 TStr GetUcStr(
const TStr& Str)
const;
52 syMnRw,
syRw1,
syRw2,
syRw3,
syRw4,
syRw5,
syRw6,
syRw7,
syRw8,
syRw9,
142 PrevCh=
Ch; LnChN++; ChN++;
144 if (IsList){putchar(Ch);}
161 void SetOpt(
const int& Opt,
const bool& Val);
167 bool IsBof()
const {
return ChN==-1;}
196 while (Sym!=SkipToSym){
GetSym();}}
205 static TStr GetQStr(
const TStr& Str,
const bool& QuoteP,
const char& QuoteCh);
210 const bool& LBracket=
false,
const bool& NewLn=
false){
213 void GetVarEnd(
const bool& RBracket=
false,
const bool& NewLn=
false){
216 bool PeekVarEnd(
const bool& RBracket=
false,
const bool& NewLn=
false){
233 if (NewLn){
GetEoln();}
return SecTm;}
269 void SetOpt(
const int& Opt,
const bool& Val);
278 if (!IsSigNum){
Assert(
int(Int)>=0);}
280 void PutFlt(
const TFlt& Flt,
const int& Width=-1,
const int& Prec=-1){
281 if (!IsSigNum){
Assert(Flt>=0);}
300 RSOut.
PutCh(
' ', IndentLev*2);}
310 const bool& NewLn=
false,
const bool& CheckIdStr=
true){
311 if (IsVarIndent){
PutIndent(VarIndentLev);}
314 if (NewLn){
PutLn(); VarIndentLev++;}}
315 void PutVarEnd(
const bool& RBracket=
false,
const bool& NewLn=
false){
316 if (IsVarIndent){
PutIndent(VarIndentLev-1);}
318 if (NewLn){
PutLn(); VarIndentLev--;}}
320 const bool& NewLn=
true,
const bool& CheckIdStr=
true){
321 if (IsVarIndent){
PutIndent(VarIndentLev);}
323 if (NewLn){
PutLn();}}
325 const bool& NewLn=
true,
const bool& CheckIdStr=
true){
326 if (IsVarIndent){
PutIndent(VarIndentLev);}
328 if (NewLn){
PutLn();}}
330 const bool& NewLn=
true,
const bool& CheckIdStr=
true){
331 if (IsVarIndent){
PutIndent(VarIndentLev);}
333 if (NewLn){
PutLn();}}
335 const bool& NewLn=
true,
const bool& CheckIdStr=
true){
336 if (IsVarIndent){
PutIndent(VarIndentLev);}
338 if (NewLn){
PutLn();}}
340 const bool& NewLn=
true,
const bool& CheckIdStr=
true){
341 if (IsVarIndent){
PutIndent(VarIndentLev);}
343 if (NewLn){
PutLn();}}
345 const bool& NewLn=
true,
const bool& CheckIdStr=
true);
347 const bool& NewLn=
true,
const bool& CheckIdStr=
true);
349 const bool& NewLn=
true,
const bool& CheckIdStr=
true);
351 const bool& NewLn=
true,
const bool& CheckIdStr=
true);
353 const bool& NewLn=
true,
const bool& CheckIdStr=
true);
355 const bool& NewLn=
true,
const bool& CheckIdStr=
true);
371 const TStr& SubstFNm,
const TStrV& _SubstKeyIdV);
374 const TStr& InSubstFNm,
const TStrV& SubstKeyIdV){
375 TPreproc Preproc(InFNm, OutFNm, InSubstFNm, SubstKeyIdV);}
void PutLn(const int &IndentLev=0)
double GetVarFlt(const TStr &VarNm, const bool &NewLn=true)
void GetVarEnd(const bool &RBracket=false, const bool &NewLn=false)
static const TStr QuestionStr
TILx(const PSIn &_SIn, const TFSet &OptSet=TFSet(), const TLxChDefTy &ChDefTy=lcdtUsAscii)
void PutParCmt(const TStr &Str)
bool IsAlNum(const char &Ch) const
bool PeekVarEnd(const bool &RBracket=false, const bool &NewLn=false)
bool IsSubstId(const TStr &SubstId, TStr &SubstValStr) const
void GetVarIntV(const TStr &VarNm, TIntV &IntV, const bool &NewLn=true)
void PutVarStrPrV(const TStr &VarNm, const TStrPrV &StrPrV, const bool &NewLn=true, const bool &CheckIdStr=true)
void PutDosLn(const int &IndentLev=0)
TStr GetStrToEoln(const bool &DoTrunc=false)
virtual int PutCh(const char &Ch)=0
static const TStr CommaStr
void PutVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
void PutBool(const TBool &Bool)
static const TStr DPeriodStr
bool IsSpace(const char &Ch) const
static const TStr ColonStr
TLxSym GetSym(const TLxSym &Sym)
TStr GetVarStr(const TStr &VarNm, const bool &NewLn=true)
bool IsAlpha(const char &Ch) const
TLxSym GetSym(const TLxSym &Sym1, const TLxSym &Sym2, const TLxSym &Sym3)
TStr GetStrToEolnOrCh(const char &ToCh)
int GetChTy(const char &Ch) const
void PutInt(const TInt &Int)
void GetVarStrV(const TStr &VarNm, TStrV &StrV, const bool &NewLn=true)
void PutVarBoolV(const TStr &VarNm, const TBoolV &BoolV, const bool &NewLn=true, const bool &CheckIdStr=true)
TStr GetStr(const TStr &_Str=TStr())
void GetVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false)
void SaveTxt(TOLx &Lx) const
static const TStr BoolStr
void PutSep(const TLxSym &Sym)
void PutVarFlt(const TStr &VarNm, const double &Flt, const bool &NewLn=true, const bool &CheckIdStr=true)
void GetVarFltV(const TStr &VarNm, TFltV &FltV, const bool &NewLn=true)
const TDat & GetDat(const TKey &Key) const
void PutSym(const TLxSym &Sym)
TLxSym AddRw(const TStr &Str)
void PutQStr(const TStr &Str)
void SkipToSym(const TLxSym &SkipToSym)
void SetOpt(const int &Opt, const bool &Val)
int PutLn(const int &Lns=1)
TILx & operator=(const TILx &)
TLxSym AddRw(const TStr &Str)
static const TStr PercentStr
int GetVarInt(const TStr &VarNm, const bool &NewLn=true)
static const TStr PlusStr
bool IsVar(const TStr &VarNm)
char GetUc(const char &Ch) const
void PutIndent(const int &IndentLev)
TLxSym GetRw(const TStr &Str)
TOLx(const PSOut &_SOut, const TFSet &OptSet, const TLxChDefTy &ChDefTy=lcdtUsAscii)
static bool IsSep(const TLxSym &PrevSym, const TLxSym &Sym)
void PutVarSecTm(const TStr &VarNm, const TSecTm &SecTm, const bool &NewLn=true, const bool &CheckIdStr=true)
TLxChDef & operator=(const TLxChDef &ChDef)
#define ClassTP(TNm, PNm)
bool GetVarBool(const TStr &VarNm, const bool &NewLn=true)
void SetOpt(const int &Opt, const bool &Val)
void PutVarStrVV(const TStr &VarNm, const TVec< TStrV > &StrVV, const bool &NewLn=true, const bool &CheckIdStr=true)
static void GetLnV(const TStr &FNm, TStrV &LnV)
PSIn GetSIn(const char &SepCh)
static const TStr HashStr
static const TStr QStrStr
static const TStr VBarStr
TStr GetStrToCh(const char &ToCh)
void PutVarBool(const TStr &VarNm, const bool &Bool, const bool &NewLn=true, const bool &CheckIdStr=true)
void PutSym(const TILxSymSt &SymSt)
TPreproc(const TStr &InFNm, const TStr &OutFNm, const TStr &SubstFNm, const TStrV &_SubstKeyIdV)
static const TStr SlashStr
static const TStr ExclamationStr
void GetVarStrPrV(const TStr &VarNm, TStrPrV &StrPrV, const bool &NewLn=true)
void PutLnCmt(const TStr &Str, const int &IndentLev=0)
TSecTm GetVarSecTm(const TStr &VarNm, const bool &NewLn=true)
static const TStr RBraceStr
TLxSym GetSym(const TLxSym &Sym1, const TLxSym &Sym2, const TLxSym &Sym3, const TLxSym &Sym4)
TStr GetQStr(const TStr &QStr=TStr())
TOLx & operator=(const TOLx &)
static const TStr LBracketStr
static const TStr AsteriskStr
bool IsNum(const char &Ch) const
void PutFlt(const TFlt &Flt, const int &Width=-1, const int &Prec=-1)
static const TStr LBraceStr
TSStack< TILxSymSt > PrevSymStStack
TStr GetIdStr(const TStr &IdStr=TStr())
void GetVarStrVV(const TStr &VarNm, TVec< TStrV > &StrVV, const bool &NewLn=true)
int PutDosLn(const int &Lns=1)
void PutUQStr(const TStr &Str)
static const TStr EolnStr
TLxSym GetSym(const TLxSym &Sym1, const TLxSym &Sym2)
static TLxSym GetSSym(const TStr &Str)
PSOut GetSOut(const char &SepCh)
static TSecTm LoadTxt(TILx &Lx)
static const TStr SemicolonStr
static const TStr UndefStr
static void Execute(const TStr &InFNm, const TStr &OutFNm, const TStr &InSubstFNm, const TStrV &SubstKeyIdV)
UndefDefaultCopyAssign(TPreproc)
static const TStr DColonStr
int PutStr(const char *CStr)
bool IsTerm(const char &Ch) const
static TStr GetSymStr(const TLxSym &Sym)
void GetVarBoolV(const TStr &VarNm, TBoolV &BoolV, const bool &NewLn=true)
static TStr GetStr(const bool &Val)
static const TStr IdStrStr
void PutStr(const TStr &Str)
void PutVarEnd(const bool &RBracket=false, const bool &NewLn=false)
static PLxChDef Load(TSIn &SIn)
TStr GetStrToEolnAndCh(const char &ToCh)
static const TStr PeriodStr
THash< TStr, TStrPrV > SubstIdToKeyIdValPrVH
void PutVarInt(const TStr &VarNm, const int &Int, const bool &NewLn=true, const bool &CheckIdStr=true)
static const TStr MinusStr
void PutVarStr(const TStr &VarNm, const TStr &Str, const bool &NewLn=true, const bool &CheckIdStr=true)
static const TStr RBracketStr
void PutQStr(const TChA &ChA)
bool IsNmStr(const TStr &Str) const
void PutVarIntV(const TStr &VarNm, const TIntV &IntV, const bool &NewLn=true, const bool &CheckIdStr=true)
void PutVarStrV(const TStr &VarNm, const TStrV &StrV, const bool &NewLn=true, const bool &CheckIdStr=true)
static const TStr LParenStr
static const TStr RParenStr
void PutVarFltV(const TStr &VarNm, const TFltV &FltV, const bool &NewLn=true, const bool &CheckIdStr=true)
static const TStr AmpersandStr
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)