![]() |
PhoenixLecture
2.0.0
Set of tools to make lectures
|
Go to the source code of this file.
Functions | |
PString | convertCharToHtml (char ch) |
fonction qui converti une chaîne de caractères en html (elle remplace les caractères spéciaux) More... | |
PString | convertStrToHtml (const PString &str) |
fonction qui converti une chaîne de caractères en html (elle remplace les caractères spéciaux) More... | |
PLatexObj * | getLastPLatexObj (PLatexObj &obj) |
Get the last PLatexObj of the given one. More... | |
PParserEnv | getParserEnv (const PVecParserEnv &vecParser, const PString &nameParser) |
Get the parser env. More... | |
void | incrementCurrentChar (PFileParser &fileParser, PString &textObj) |
Increment current char position. More... | |
PString | parser_makeHighlighting (const PString &strContent, const PParserEnv &parser) |
Do the highlighting of the input text. More... | |
bool | parser_parseKeyword (PString &out, PString &textObj, PFileParser &fileParser, const PContext &context) |
Parse the keyword of the given parser. More... | |
bool | parser_parseKeyword (PString &out, PString &textObj, PFileParser &fileParser, const PParserEnv &parser) |
Parse the keyword of the given parser. More... | |
void | playTextLatexObj (PString &parent, PString &textObj) |
Play the text latex obj. More... | |
PString convertCharToHtml | ( | char | ch | ) |
fonction qui converti une chaîne de caractères en html (elle remplace les caractères spéciaux)
ch | : char que l'on veut convertir en Html |
Definition at line 36 of file parser_utils.cpp.
Referenced by incrementCurrentChar().
fonction qui converti une chaîne de caractères en html (elle remplace les caractères spéciaux)
str | : string que l'on veut convertir en Html |
Definition at line 14 of file parser_utils.cpp.
References PString::replace().
Referenced by parser_parseKeyword(), pbiblio_attributeHtml(), and platexobj_htmlStrText().
Get the last PLatexObj of the given one.
obj | : main object to use |
Definition at line 212 of file parser_utils.cpp.
References PLatexType::CAPTION, PLatexObj::getType(), PLatexObj::getVecContent(), and PLatexType::TEXT.
Referenced by PGenericParser::parseLabel().
PParserEnv getParserEnv | ( | const PVecParserEnv & | vecParser, |
const PString & | nameParser | ||
) |
Get the parser env.
vecParser | : list of all parser |
nameParser | : name of the parser to get |
Definition at line 61 of file parser_utils.cpp.
References PVecParserEnv::getVecEnv().
Referenced by PMarkdownParser::parseExtraParser(), PConfigParser::parseParserLanguage(), and PConfigParser::parseParserLanguageFunction().
void incrementCurrentChar | ( | PFileParser & | fileParser, |
PString & | textObj | ||
) |
Increment current char position.
[out] | fileParser | : file parser |
[out] | textObj | : string to be used to store text |
Definition at line 76 of file parser_utils.cpp.
References convertCharToHtml(), PFileParser::getCurrentCh(), and PFileParser::getNextChar().
Referenced by parser_makeHighlighting().
PString parser_makeHighlighting | ( | const PString & | strContent, |
const PParserEnv & | parser | ||
) |
Do the highlighting of the input text.
strContent | : string content |
parser | : parser to be used |
Definition at line 186 of file parser_utils.cpp.
References PParserEnv::getPlainText(), PFileParser::getStrComposedOf(), incrementCurrentChar(), PFileParser::isEndOfFile(), parser_parseKeyword(), playTextLatexObj(), PFileParser::setEscapeChar(), PFileParser::setFileContent(), and PFileParser::setWhiteSpace().
Referenced by PMarkdownParser::parseExtraParser(), PConfigParser::parseParserLanguage(), and PConfigParser::parseParserLanguageFunction().
bool parser_parseKeyword | ( | PString & | out, |
PString & | textObj, | ||
PFileParser & | fileParser, | ||
const PContext & | context | ||
) |
Parse the keyword of the given parser.
[out] | out | : output string |
[out] | textObj | : string of text |
[out] | fileParser | : file parser |
context | : highlighting parser |
Definition at line 102 of file parser_utils.cpp.
References convertStrToHtml(), PContext::getBegin(), PContext::getEnd(), PContext::getName(), PContext::getNotAfterBegin(), PContext::getNotBeforeBegin(), PContext::getNotBeforeEnd(), PContext::getSeq(), PFileParser::getUntilKeyWithoutPatern(), PFileParser::getUntilKeyWithoutPaternExclude(), PContext::getVecKeyword(), PParseSeq::getVecStep(), PFileParser::isMatch(), PFileParser::isMatchToken(), playTextLatexObj(), PFileParser::popPosition(), and PFileParser::pushPosition().
Referenced by parser_makeHighlighting(), and parser_parseKeyword().
bool parser_parseKeyword | ( | PString & | out, |
PString & | textObj, | ||
PFileParser & | fileParser, | ||
const PParserEnv & | parser | ||
) |
Parse the keyword of the given parser.
[out] | out | : output string |
[out] | textObj | : string of text |
[out] | fileParser | : file parser |
parser | : highlighting parser |
Definition at line 170 of file parser_utils.cpp.
References PParserEnv::getVecContext(), and parser_parseKeyword().
Play the text latex obj.
[out] | parent | : parent string |
[out] | textObj | : string to deal with text |
Definition at line 87 of file parser_utils.cpp.
Referenced by parser_makeHighlighting(), and parser_parseKeyword().