Directory: | ./ |
---|---|
File: | tmp_project/PhoenixTex2Html/src/PLatexObj/update_firstCss.cpp |
Date: | 2025-03-24 18:12:43 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 6 | 6 | 100.0% |
Branches: | 3 | 4 | 75.0% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | /*************************************** | ||
2 | Auteur : Pierre Aubert | ||
3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
4 | Licence : CeCILL-C | ||
5 | ****************************************/ | ||
6 | |||
7 | |||
8 | #include "update_firstCss.h" | ||
9 | |||
10 | |||
11 | ///Update the firstCss style to be used | ||
12 | /** @param[out] firstCss : first css style to be used | ||
13 | * @param source : PLatexObj raw source | ||
14 | */ | ||
15 | 127 | void update_firstCss(PString & firstCss, const PLatexObj & source){ | |
16 | 127 | const PVecLatexObj & vecObj = source.getVecContent(); | |
17 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 127 times.
|
127 | if(vecObj.size() == 0lu){return;} |
18 | 127 | const PLatexObj & firstObj = vecObj.front(); | |
19 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 2 taken 105 times.
|
127 | if(firstObj.getType() == PLatexType::UPDATESTYLE){ |
20 | 22 | firstCss = firstObj.getName(); | |
21 | } | ||
22 | } | ||
23 | |||
24 |