]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
Check return value of regex_match instead of looking at first match
[lyx.git] / src / support / lstrings.h
index 971951351359e1295ad0719483e464d8e4ec36a5..36ba09fcb973b95fb5f8a4856b6dc75e9dbb957f 100644 (file)
@@ -269,6 +269,10 @@ docstring const rsplit(docstring const & a, char_type delim);
 /// problems in latex labels.
 docstring const escape(docstring const & lab);
 
+/// Group contents of an argument if needed
+docstring const protectArgument(docstring & arg, char const l = '[',
+                         char const r = ']');
+
 /// Truncates a string with an ellipsis at the end.  Leaves str unchanged and
 /// returns false if it is shorter than len. Otherwise resizes str to len, with
 /// U+2026 HORIZONTAL ELLIPSIS at the end, and returns true.