From 91218299166942548cd0c1776d391f565249b112 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Thu, 2 Apr 2020 14:21:06 +0200 Subject: QRegularExpression: rename AnchoredMatchOption to AnchorAtOffsetMatchOption The name of the option may cause confusion due to the fact that it's not _fully_ anchoring the match, only anchoring it at the offset passed to match() -- in other words, it's a "left" anchoring. Deprecate the old name and introduce a new one that should explain the situation better. [ChangeLog][QtCore][QRegularExpression] The AnchoredMatchOption match option has been deprecated in favor of AnchorAtOffsetMatchOption, which should better describe that the match is only anchored at the offset. Change-Id: Ib751e5e488f2d0309a2da6496378247dfa4648de Reviewed-by: Samuel Gaist Reviewed-by: Lars Knoll Reviewed-by: Oswald Buddenhagen --- src/corelib/text/qregularexpression.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/corelib/text/qregularexpression.h') diff --git a/src/corelib/text/qregularexpression.h b/src/corelib/text/qregularexpression.h index 9e703a4eea..9f618bf7f5 100644 --- a/src/corelib/text/qregularexpression.h +++ b/src/corelib/text/qregularexpression.h @@ -110,7 +110,8 @@ public: enum MatchOption { NoMatchOption = 0x0000, - AnchoredMatchOption = 0x0001, + AnchoredMatchOption Q_DECL_ENUMERATOR_DEPRECATED_X("Use AnchorAtOffsetMatchOption instead") = 0x0001, + AnchorAtOffsetMatchOption = 0x0001, DontCheckSubjectStringMatchOption = 0x0002 }; Q_DECLARE_FLAGS(MatchOptions, MatchOption) -- cgit v1.2.3