forked from qt-creator/qt-creator
CppEditor: Add escape/unescape string literal QuickFix
Change-Id: I32c22dfa32ee0345b76e8c35381bce988d20ed49 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
ed3cdb9c92
commit
66feceacb0
@@ -524,6 +524,19 @@ public:
|
||||
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
|
||||
};
|
||||
|
||||
/*!
|
||||
Escapes or unescapes a string literal as UTF-8.
|
||||
|
||||
Escapes non-ASCII characters in a string literal to hexadecimal escape sequences.
|
||||
Unescapes octal or hexadecimal escape sequences in a string literal.
|
||||
String literals are handled as UTF-8 even if file's encoding is not UTF-8.
|
||||
*/
|
||||
class EscapeStringLiteral : public CppQuickFixFactory
|
||||
{
|
||||
public:
|
||||
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace CppEditor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user