summaryrefslogtreecommitdiffstats
path: root/src/template.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make templated HTML output more similar to hardcoded output.Dimitri van Heesch2021-05-201-0/+18
|
* Template engine: allow listing list and struct variables as stringsDimitri van Heesch2021-05-151-0/+58
| | | | | For easier debugging one can do e.g. `{% msg %}value={{ variable }}{% endmsg %}` to list the value of a variable also when it is a list or struct.
* Rename template filter '|e' to '|escape' to keep in line with DjangoDimitri van Heesch2021-05-141-2/+2
|
* Some fixes for template.cpp and improve the template outputDimitri van Heesch2021-05-141-56/+179
|
* Fix issues caused by QCString::rawData and QCString::operator[]Dimitri van Heesch2021-04-261-1/+2
| | | | | - methods were marked const but still returned a non-const reference, cause wrongly optimized code for some platforms/compilers
* Merge pull request #8502 from albert-github/feature/bug_coverity_20210414Dimitri van Heesch2021-04-221-0/+1
|\ | | | | Coverity warnings
| * Coverity warningsalbert-github2021-04-141-0/+1
| | | | | | | | | | | | Correcting new coverity warnings. - utf8.cpp is dead code. - template.cpp, made consistent with other render functions
* | Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-139/+139
|/ | | | | | | | | | | | | | | | | This commit changes the following in relation to string use - The implicit convert from 'QCString' to 'const char *' is removed - Strings parameters use 'const QCString &' as much as possible in favor over 'const char *' - 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())' - data() now always returns a valid C-string and not a 0-pointer. - when passing a string 's' to printf and related functions 'qPrint(s)' is used instead of 's.data()' - for empty string arguments 'QCString()' is used instead of '0' - The copy() operation has been removed - Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and 'qstrcmp(a,b)<0' has been replaced by 'a<b' - Parameters of string type that were default initialized with '= 0' are no initialized with '= QCString()'
* Refactoring: Add TextStream buffer to improve output writing performanceDimitri van Heesch2021-03-281-34/+37
| | | | | - direct use of std::stringstream and std::ostream gave a 30% drop in performance.
* Refactoring: replace QGString by std::ostringstreamDimitri van Heesch2021-03-231-3/+3
|
* issue #8375: Lowercase search does not find non-ASCII uppercase pages and ↵Dimitri van Heesch2021-03-221-1/+5
| | | | vice versa
* Refactoring: replace QFile/FTextStream with fstream/stringstreamDimitri van Heesch2021-03-181-49/+46
|
* Refactoring: Replaced QDir with DirDimitri van Heesch2021-03-181-16/+15
| | | | | - Dir is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
* Refactoring: Replaced QFileInfo with FileInfoDimitri van Heesch2021-03-181-1/+2
| | | | | - FileInfo is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
* Refactoring: replaced std::regex with own much faster implementationDimitri van Heesch2021-03-021-5/+5
|
* Some performance tweaks + remove setting of global localeDimitri van Heesch2021-02-221-1/+1
|
* Refactoring: make better use of capture groupsDimitri van Heesch2021-02-201-2/+2
|
* Refactoring: replace QRegExp by std::regex in template.cppDimitri van Heesch2021-02-201-17/+19
|
* Refactoring: template.cpp (part 4)Dimitri van Heesch2021-01-221-77/+47
|
* Refactoring: template.cpp (part 3)Dimitri van Heesch2021-01-221-130/+108
|
* Refactoring: template.cpp (part 2)Dimitri van Heesch2021-01-221-59/+64
|
* Refactoring: template.cpp (part 1)Dimitri van Heesch2021-01-221-154/+115
|
* Refactoring: remove unused sortdict.hDimitri van Heesch2021-01-221-1/+0
|
* Various fixes based on coverity scan resultsDimitri van Heesch2021-01-051-1/+4
|
* Warning about possible loss of dataalbert-github2020-10-011-1/+1
| | | | | | | | | Om 64-bit windows platform we get the warning: ``` src\template.cpp(341): warning C4267: 'return': conversion from 'size_t' to 'uint', possible loss of data ``` Explicit setting conversion..
* Fixed a couple of compiler warnings on LinuxDimitri van Heesch2020-08-081-1/+1
|
* Refactoring: changed QValueList to std::vector for template engineDimitri van Heesch2020-08-061-60/+59
|
* Catch all wrong mkdir calls (coverity)albert-github2020-06-121-1/+5
| | | | | - Always catch the output of `mkdir` - corrected an incorrect message (context.cpp)
* Enabled stricter compiler warnings and fixed all new warningsDimitri van Heesch2020-03-081-25/+25
|
* Coverity uninitializedalbert-github2019-12-021-60/+60
| | | | Fixing a number of uninitialized variables based on the coverity output of November 30, 2019
* Spelling corrections for src directoryalbert-github2019-11-051-1/+1
| | | | | | | | Spelling corrections as found by codespell and in #561. Some reported problems were already fixed, others are fixed here, with some exceptions (a,o.): - "referenceby" in defgen.cpp as this is in the output and I cannot oversee the consequences (looks like none, but ...) - "HANGEUL_CHARSET" left as is as in some MS documentation is written: 'HANGUL_CHARSET: Also spelled "Hangeul". Specifies the Hangul Korean character set.' (https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-wmf/0d0b32ac-a836-4bd2-a112-b6000a1b4fc9).
* Correction warning messagealbert-github2019-06-011-1/+1
| | | | Consistency
* Changed refiltering to forced use of insideTabbingDimitri van Heesch2018-10-291-2/+2
|
* Misc. typosluzpaz2017-12-231-1/+1
| | | | | Super trivial typos Some are in qtools/ which I know is a 3rd party dependency but as we know is now obsolete upstream. I reckon it wouldn't be much of an issue to merge neverthless Tacked on several more commits
* Adding partial htmlhelp support to template systemDimitri van Heesch2016-06-021-19/+80
|
* Added generating template files and reading templates from disk if presentDimitri van Heesch2016-05-281-1/+26
|
* Added support for encoding tag to the template engine used for HTML help indicesDimitri van Heesch2016-05-281-13/+174
|
* Disabled debug printsDimitri van Heesch2016-05-281-2/+2
|
* Fixed a number of memory leaks in the template engineDimitri van Heesch2015-09-131-3/+39
|
* Made several improvements to the performance of template engineDimitri van Heesch2015-09-131-228/+46
|
* Template enhancements and various other small fixesDimitri van Heesch2015-09-081-5/+34
|
* Avoid using Resource::data as string, as it is not null terminated.Dimitri van Heesch2015-08-311-12/+9
|
* Started with generating LaTeX output via the template engineDimitri van Heesch2015-08-271-48/+193
|
* Add mathjax support to template & context.Dimitri van Heesch2015-08-271-0/+20
|
* Added javascript search engine data to the template contextDimitri van Heesch2015-08-271-10/+32
|
* Fixed various issues found by PVS-Studio.Dimitri van Heesch2015-08-181-9/+6
|
* Bump copyright yearDimitri van Heesch2015-02-261-1/+1
|
* Merge pull request #272 from albert-github/feature/bug_unusedDimitri van Heesch2015-01-031-1/+0
|\ | | | | Remove unused local and static global variables
| * Remove unused local and static global variablesalbert-github2014-12-271-1/+0
| | | | | | | | Remove unused local and static global variables. Variables have been identified by Understand (version 758) from Scitools.
* | Fixed a couple of cases where sharing string data could lead to corruptionDimitri van Heesch2015-01-021-2/+2
|/ | | | | Also made dangerous string access more visible by introducing rawData(). This replaces data() which will now return a constant string.