Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make templated HTML output more similar to hardcoded output. | Dimitri van Heesch | 2021-05-20 | 1 | -0/+18 |
| | |||||
* | Template engine: allow listing list and struct variables as strings | Dimitri van Heesch | 2021-05-15 | 1 | -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 Django | Dimitri van Heesch | 2021-05-14 | 1 | -2/+2 |
| | |||||
* | Some fixes for template.cpp and improve the template output | Dimitri van Heesch | 2021-05-14 | 1 | -56/+179 |
| | |||||
* | Fix issues caused by QCString::rawData and QCString::operator[] | Dimitri van Heesch | 2021-04-26 | 1 | -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_20210414 | Dimitri van Heesch | 2021-04-22 | 1 | -0/+1 |
|\ | | | | | Coverity warnings | ||||
| * | Coverity warnings | albert-github | 2021-04-14 | 1 | -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 Heesch | 2021-04-22 | 1 | -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 performance | Dimitri van Heesch | 2021-03-28 | 1 | -34/+37 |
| | | | | | - direct use of std::stringstream and std::ostream gave a 30% drop in performance. | ||||
* | Refactoring: replace QGString by std::ostringstream | Dimitri van Heesch | 2021-03-23 | 1 | -3/+3 |
| | |||||
* | issue #8375: Lowercase search does not find non-ASCII uppercase pages and ↵ | Dimitri van Heesch | 2021-03-22 | 1 | -1/+5 |
| | | | | vice versa | ||||
* | Refactoring: replace QFile/FTextStream with fstream/stringstream | Dimitri van Heesch | 2021-03-18 | 1 | -49/+46 |
| | |||||
* | Refactoring: Replaced QDir with Dir | Dimitri van Heesch | 2021-03-18 | 1 | -16/+15 |
| | | | | | - Dir is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17. | ||||
* | Refactoring: Replaced QFileInfo with FileInfo | Dimitri van Heesch | 2021-03-18 | 1 | -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 implementation | Dimitri van Heesch | 2021-03-02 | 1 | -5/+5 |
| | |||||
* | Some performance tweaks + remove setting of global locale | Dimitri van Heesch | 2021-02-22 | 1 | -1/+1 |
| | |||||
* | Refactoring: make better use of capture groups | Dimitri van Heesch | 2021-02-20 | 1 | -2/+2 |
| | |||||
* | Refactoring: replace QRegExp by std::regex in template.cpp | Dimitri van Heesch | 2021-02-20 | 1 | -17/+19 |
| | |||||
* | Refactoring: template.cpp (part 4) | Dimitri van Heesch | 2021-01-22 | 1 | -77/+47 |
| | |||||
* | Refactoring: template.cpp (part 3) | Dimitri van Heesch | 2021-01-22 | 1 | -130/+108 |
| | |||||
* | Refactoring: template.cpp (part 2) | Dimitri van Heesch | 2021-01-22 | 1 | -59/+64 |
| | |||||
* | Refactoring: template.cpp (part 1) | Dimitri van Heesch | 2021-01-22 | 1 | -154/+115 |
| | |||||
* | Refactoring: remove unused sortdict.h | Dimitri van Heesch | 2021-01-22 | 1 | -1/+0 |
| | |||||
* | Various fixes based on coverity scan results | Dimitri van Heesch | 2021-01-05 | 1 | -1/+4 |
| | |||||
* | Warning about possible loss of data | albert-github | 2020-10-01 | 1 | -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 Linux | Dimitri van Heesch | 2020-08-08 | 1 | -1/+1 |
| | |||||
* | Refactoring: changed QValueList to std::vector for template engine | Dimitri van Heesch | 2020-08-06 | 1 | -60/+59 |
| | |||||
* | Catch all wrong mkdir calls (coverity) | albert-github | 2020-06-12 | 1 | -1/+5 |
| | | | | | - Always catch the output of `mkdir` - corrected an incorrect message (context.cpp) | ||||
* | Enabled stricter compiler warnings and fixed all new warnings | Dimitri van Heesch | 2020-03-08 | 1 | -25/+25 |
| | |||||
* | Coverity uninitialized | albert-github | 2019-12-02 | 1 | -60/+60 |
| | | | | Fixing a number of uninitialized variables based on the coverity output of November 30, 2019 | ||||
* | Spelling corrections for src directory | albert-github | 2019-11-05 | 1 | -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 message | albert-github | 2019-06-01 | 1 | -1/+1 |
| | | | | Consistency | ||||
* | Changed refiltering to forced use of insideTabbing | Dimitri van Heesch | 2018-10-29 | 1 | -2/+2 |
| | |||||
* | Misc. typos | luzpaz | 2017-12-23 | 1 | -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 system | Dimitri van Heesch | 2016-06-02 | 1 | -19/+80 |
| | |||||
* | Added generating template files and reading templates from disk if present | Dimitri van Heesch | 2016-05-28 | 1 | -1/+26 |
| | |||||
* | Added support for encoding tag to the template engine used for HTML help indices | Dimitri van Heesch | 2016-05-28 | 1 | -13/+174 |
| | |||||
* | Disabled debug prints | Dimitri van Heesch | 2016-05-28 | 1 | -2/+2 |
| | |||||
* | Fixed a number of memory leaks in the template engine | Dimitri van Heesch | 2015-09-13 | 1 | -3/+39 |
| | |||||
* | Made several improvements to the performance of template engine | Dimitri van Heesch | 2015-09-13 | 1 | -228/+46 |
| | |||||
* | Template enhancements and various other small fixes | Dimitri van Heesch | 2015-09-08 | 1 | -5/+34 |
| | |||||
* | Avoid using Resource::data as string, as it is not null terminated. | Dimitri van Heesch | 2015-08-31 | 1 | -12/+9 |
| | |||||
* | Started with generating LaTeX output via the template engine | Dimitri van Heesch | 2015-08-27 | 1 | -48/+193 |
| | |||||
* | Add mathjax support to template & context. | Dimitri van Heesch | 2015-08-27 | 1 | -0/+20 |
| | |||||
* | Added javascript search engine data to the template context | Dimitri van Heesch | 2015-08-27 | 1 | -10/+32 |
| | |||||
* | Fixed various issues found by PVS-Studio. | Dimitri van Heesch | 2015-08-18 | 1 | -9/+6 |
| | |||||
* | Bump copyright year | Dimitri van Heesch | 2015-02-26 | 1 | -1/+1 |
| | |||||
* | Merge pull request #272 from albert-github/feature/bug_unused | Dimitri van Heesch | 2015-01-03 | 1 | -1/+0 |
|\ | | | | | Remove unused local and static global variables | ||||
| * | Remove unused local and static global variables | albert-github | 2014-12-27 | 1 | -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 corruption | Dimitri van Heesch | 2015-01-02 | 1 | -2/+2 |
|/ | | | | | Also made dangerous string access more visible by introducing rawData(). This replaces data() which will now return a constant string. |