@ 260915.5

250301.1 · 89b979c56b9da56e91db560a650fad378abf4a51

make option -i Unicode case-insensitive

fix #467

reading declarations

Changes to lib/unicode.cpp. All files

lib/unicode.cpp

@@ -30,7 +30,7 @@ @file      unicode.cpp @brief     Get Unicode character class ranges and UTF-8 regex translations @author    Robert van Engelen - engelen@genivia.com-@copyright (c) 2016-2020, Robert van Engelen, Genivia Inc. All rights reserved.+@copyright (c) 2016-2025, Robert van Engelen, Genivia Inc. All rights reserved. @copyright (c) BSD-3 License - see LICENSE.txt */ @@ -116,6 +116,24 @@ int compose(int prev, int next)   return -1; } +int toupper(int c)+{+  return Tables::toupper(c);+}++int tolower(int c)+{+  return Tables::tolower(c);+}++int invcase(int c)+{+  int a = toupper(c);+  if (a == c)+    a = tolower(c);+  return a;+}+ } // namespace Unicode  } // namespace reflex