71 out = out.
replace(
"\",
"\\");
72 out = out.
replace(
"~",
"~");
73 out = out.
replace(
"&",
"&");
82 if(fileName.size() <= 1lu){
return fileName;}
83 long unsigned int begin(fileName.size() - 1lu);
85 while(begin > 0lu && begin < fileName.size()){
86 char ch = fileName[begin];
93 PString out(fileName.substr(0lu, begin));
110 void appendVecContent(std::vector<PLatexObj> & vecContent,
const std::vector<PLatexObj> & vecObj){
111 for(std::vector<PLatexObj>::const_iterator it(vecObj.begin()); it != vecObj.end(); ++it){
112 vecContent.push_back(*it);
124 vecContent.push_back(obj);
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
const std::vector< PLatexObj > & getComplexTitle() const
Gets the complexTitle of the PLatexObj.
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
Path of a directory or a file.
PString replace(const PString &pattern, const PString &replaceStr) const
Replace a PString into an other PString.
PLatexType
Type of the PLatexObj.
PString platexobj_htmlStr(POutoutMode &outputMode, const PLatexObj &obj, bool isBibliography=false, bool allowText=true)
bool isSectionOrSeparator(const PLatexObj &obj)
Say if the PLatexObj is a part, charpter, section, subsection, subsubsection or a book separator.
void appendVecContent(std::vector< PLatexObj > &vecContent, const std::vector< PLatexObj > &vecObj)
Append a vector of PLatexObj in the given vector of content.
bool isNewLine(const PLatexObj &obj)
Say if the PLatexObj is a newline or not.
PString getSecNumberFromFileName(const PPath &fileName)
Get the section number from its file name.
bool isSection(const PLatexObj &obj)
Say if the PLatexObj is a part, charpter, section, subsection or subsubsection.
bool isSeparator(const PLatexObj &obj)
Say if the PLatexObj is a book separator.
PString getSectionTitle(POutoutMode &outputMode, const PLatexObj &obj)
Get the title of a part/chapter/section etc.
long unsigned int getSectionLevel(const PLatexObj &obj)
Return the section level.
PString convertBackSlahedStr(const PString &str)
Convert all the echaped char.
Output mode of the html backend.