summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8333 from albert-github/feature/bug_305773Dimitri van Heesch2021-05-021-0/+24
|\ | | | | bug_305773 Volatile declaration is missing for variables in XML output
| * Merge branch 'master' into feature/bug_305773Dimitri van Heesch2021-04-291-1126/+1176
| |\
| * | bug_305773 Volatile declaration is missing for variables in XML outputalbert-github2021-01-131-0/+24
| | | | | | | | | | | | Handle "const" and "volatile" in the same way, they are bit cv-qualifiers
* | | Fixed missing comma and improved constnessDimitri van Heesch2021-05-021-2/+2
| | |
* | | Merge branch 'master' into feature/bug_code_langDimitri van Heesch2021-05-021-1309/+1125
|\ \ \
| * | | Cleanup util.h by moving some functions to other filesDimitri van Heesch2021-05-011-237/+3
| | |/ | |/|
| * | Fixed typo, use QCString, and some minor reformatingDimitri van Heesch2021-04-291-9/+10
| | |
| * | issue #8522 Javadoc: type attribute of ordered lists not preserved (in xml)albert-github2021-04-291-0/+36
| | | | | | | | | | | | | | | The problem was a bit deeper, it was also valid for other output formats. Implemented the `type` and `start` attribute for all relevant output types.
| * | Fix issues caused by QCString::rawData and QCString::operator[]Dimitri van Heesch2021-04-261-5/+5
| | | | | | | | | | | | | | | - methods were marked const but still returned a non-const reference, cause wrongly optimized code for some platforms/compilers
| * | Fixed issue causing trailing text after expansion of aliases.Dimitri van Heesch2021-04-241-22/+20
| | |
| * | Fix for crash due to wrong function prototype for portable_iconv_openDimitri van Heesch2021-04-231-2/+2
| | |
| * | Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-409/+413
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()'
| * | issue #8498: Concepts do not respect groups in tree viewDimitri van Heesch2021-04-131-0/+2
| | |
| * | issue #2732: Adding support for C++ concepts (Origin: bugzilla #499352)Dimitri van Heesch2021-04-081-18/+66
| | |
| * | Fixed compilation problem when enableing sqlite3Dimitri van Heesch2021-03-281-4/+4
| | |
| * | Refactoring: Add TextStream buffer to improve output writing performanceDimitri van Heesch2021-03-281-11/+10
| | | | | | | | | | | | | | | - direct use of std::stringstream and std::ostream gave a 30% drop in performance.
| * | Refactoring: replace QMIN/QMAX by std::min/std::maxDimitri van Heesch2021-03-261-2/+2
| | |
| * | Refactoring: move qcstring and remove qtoolsDimitri van Heesch2021-03-251-0/+14
| | |
| * | Refactoring: replace QGString by std::ostringstreamDimitri van Heesch2021-03-231-17/+15
| | |
| * | issue #8375: Lowercase search does not find non-ASCII uppercase pages and ↵Dimitri van Heesch2021-03-221-64/+17
| | | | | | | | | | | | vice versa
| * | Refactoring: replace QFile/FTextStream with fstream/stringstreamDimitri van Heesch2021-03-181-136/+54
| | |
| * | Refactoring: Replaced QDir with DirDimitri van Heesch2021-03-181-9/+8
| | | | | | | | | | | | | | | - 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-17/+61
| | | | | | | | | | | | | | | - FileInfo is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
| * | Refactoring: some cleanup and removed text direction logicDimitri van Heesch2021-03-041-4/+1
| | |
| * | Merge branch 'master' into feature/bug_lexDimitri van Heesch2021-03-031-357/+467
| |\ \
| | * | Refactoring: replaced std::regex with own much faster implementationDimitri van Heesch2021-03-021-113/+100
| | | |
| | * | Some performance tweaks + remove setting of global localeDimitri van Heesch2021-02-221-17/+14
| | | |
| | * | Remove double call to wildcard2regex()Dimitri van Heesch2021-02-211-1/+1
| | | |
| | * | Regression: specifying character ranges for FILE_PATTERNS didn't workDimitri van Heesch2021-02-211-54/+19
| | | |
| | * | Disable qregex.h and fix some warnings and issuesDimitri van Heesch2021-02-201-19/+19
| | | |
| | * | Refactoring: replace QRegExp by std::regex in vhdldocgen.cppDimitri van Heesch2021-02-201-1/+9
| | | |
| | * | Refactoring: replace QRegExp by std::regex in vhdlcode.lDimitri van Heesch2021-02-201-0/+39
| | | |
| | * | Refactoring: make better use of capture groupsDimitri van Heesch2021-02-201-11/+11
| | | |
| | * | Refactoring: reduce code duplication by using writeMarkerList functionDimitri van Heesch2021-02-201-26/+34
| | | |
| | * | Refactoring: replace QRegExp by std::regex in util.cppDimitri van Heesch2021-02-201-336/+442
| | | |
| * | | Adding support for lex filesalbert-github2021-02-121-0/+6
| |/ / | | | | | | | | | | | | | | | Adding support for lex. The lex files consist of a mixture of lex specific structures, that are handled in the the lexcode.l and lexscanner.l, abd C code that is handled by the C parsers (hence the rules used are partly copied from scanner.l). Special attention has been paid to memberdef.cpp as the initial values should not be handled by the lex parsers but by the C parsers.
| * | Fixed missing include for util.cpp when building for WindowsDimitri van Heesch2021-02-061-0/+1
| | |
| * | Refactoring: replace/remove the use of QDateTimeDimitri van Heesch2021-02-061-28/+23
| | |
| * | issue #8370: Doxygen 1.9.1 confused by C++ using/typedef declarationDimitri van Heesch2021-02-051-4/+2
| | |
| * | Extension during mapping not correctly replaced.albert-github2021-01-281-1/+1
| | | | | | | | | | | | | | | When searching whether the extension is already in the list of mapped extensions the input extension is used but when inserting the eventually corrected extension (extName) is used. In all cases the inserted extension contains a dot (`.`) , but for the input extension this is not necessarily the case. This can cause problems when searching for an extension as the search will always search wit a dot and thus find the first (is old) value.
| * | Regression: fix incorrect warning regarding 'unable to resolve link'Dimitri van Heesch2021-01-251-1/+1
| | |
| * | Refactoring: replace QList<MemberDef> by std::vector in util.cppDimitri van Heesch2021-01-221-12/+12
| | |
| * | Refactoring: replace StringDict by StringMapDimitri van Heesch2021-01-221-14/+15
| | |
| * | Refactoring: modernize MemberListDimitri van Heesch2021-01-221-62/+70
| | |
| * | Refactoring: modernize g_extLookupDimitri van Heesch2021-01-221-11/+11
| | |
| * | Refactoring: modernize rtfFormatBmkStrDimitri van Heesch2021-01-221-16/+12
| | |
| * | Refactoring: modernized usedNames variable used for SHORT_NAMES optionDimitri van Heesch2021-01-221-10/+11
| | |
| * | Refactoring: remove some dead/commented out codeDimitri van Heesch2021-01-221-77/+0
| |/
* | Use language name to get code coloringalbert-github2021-01-171-21/+52
|/ | | | | | | | | | | In a `\code` or `~~~` or ` ``` ` environment we can define the language of a code block by specifying an extension. In markdown we see quite often the language name as code block name (especially for `python`) One can specify it by means of an `EXTENSION_MAPPING` but this is quite unnatural as it it not an extension. - see to it that the extension (and thus `EXTENSION_MAPPING`) still has precedence - in case not a known extension, try the language names. Note: with docbook the explicit name usage was missing.
* Merge pull request #8309 from albert-github/feature/bug_668003Dimitri van Heesch2021-01-111-0/+114
|\ | | | | bug 668003 Default LaTeX header misses $-placeholders