diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-20 13:37:39 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-21 12:54:18 (GMT) |
commit | 59372719ef31d7a76e2cfb64ab4628a315ccaf3a (patch) | |
tree | b1aea66c40069d150439a08368d57517835e505c /src/util.h | |
parent | 2dcbf7b29510a99168b1ab3f7d67d21a28a70eaf (diff) | |
download | Doxygen-59372719ef31d7a76e2cfb64ab4628a315ccaf3a.zip Doxygen-59372719ef31d7a76e2cfb64ab4628a315ccaf3a.tar.gz Doxygen-59372719ef31d7a76e2cfb64ab4628a315ccaf3a.tar.bz2 |
Refactoring: modernize class index
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -459,6 +459,15 @@ QCString getDotImageExtension(); bool fileVisibleInIndex(const FileDef *fd,bool &genSourceFile); +const int MAX_UTF8_CHAR_LEN = 4; +const int MAX_UTF8_CHAR_SIZE = MAX_UTF8_CHAR_LEN+1; // include 0 terminator +enum class CaseModifier +{ + None, + ToUpper, + ToLower +}; +int getUtf8Char(const char *input,char ids[MAX_UTF8_CHAR_SIZE],CaseModifier modifier=CaseModifier::None); uint getUtf8Code( const QCString& s, int idx ); uint getUtf8CodeToLower( const QCString& s, int idx ); uint getUtf8CodeToUpper( const QCString& s, int idx ); |