/// 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);
/**
* 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