]> git.lyx.org Git - lyx.git/blobdiff - src/support/qstring_helpers.h
de.po
[lyx.git] / src / support / qstring_helpers.h
index d5f2921af7a8ac617be2739664e8de71e8c06bb8..45e0434f9a08aad37e9b31eae762eb0861ea1df1 100644 (file)
@@ -18,6 +18,10 @@ class QString;
 
 namespace lyx {
 
+class LyXErr;
+
+LyXErr & operator<<(LyXErr &, QString const &);
+
 /**
  * toqstr - convert a UTF8 encoded char * into a QString
  *
@@ -76,6 +80,18 @@ docstring qstring_to_ucs4(QString const & qstr);
  */
 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