]> git.lyx.org Git - lyx.git/blobdiff - src/support/qstring_helpers.h
Provide option to prevent unnecessary font loading.
[lyx.git] / src / support / qstring_helpers.h
index a3fafb43439a5742bfa0bb6daede9117b391a5e0..e33131caa594053b5ba4b06ff32c6fcbbbca5613 100644 (file)
@@ -41,7 +41,7 @@ QString toqstr(std::string const & str);
 
 
 /// Is \p c a valid utf16 char?
-inline bool is_utf16(unsigned int c)
+inline bool is_utf16(char_type c)
 {
        // 0xd800 ... 0xdfff is the range of surrogate pairs.
        return c < 0xd800 || (c > 0xdfff && c < 0x10000);
@@ -82,9 +82,16 @@ std::string fromqstr(QString const & str);
 
 /**
  * constructs a regex to filter on consecutive characters
+ * matches lower- and uppercase on lowercase characters,
+ * and just uppercase for uppercase
  */
 QString charFilterRegExp(QString const & filter);
 
+/**
+ * as above, but constructs a capturing regex for a sequence of characters
+ */
+QString charFilterRegExpC(QString const & filter);
+
 } // namespace lyx
 
 #endif // QSTRING_HELPERS_H