+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
-* Copyright (C) 2001-2008, International Business Machines
+* Copyright (C) 2001-2012, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* and return the pointer.
*/
UnicodeMatcher* Quantifier::toMatcher() const {
- return (UnicodeMatcher*) this;
+ Quantifier *nonconst_this = const_cast<Quantifier *>(this);
+ UnicodeMatcher *nonconst_base = static_cast<UnicodeMatcher *>(nonconst_this);
+
+ return nonconst_base;
}
UMatchDegree Quantifier::matches(const Replaceable& text,