aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Util/src/RegExpValidator.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/poco/Util/src/RegExpValidator.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/Util/src/RegExpValidator.cpp')
-rw-r--r--contrib/libs/poco/Util/src/RegExpValidator.cpp94
1 files changed, 47 insertions, 47 deletions
diff --git a/contrib/libs/poco/Util/src/RegExpValidator.cpp b/contrib/libs/poco/Util/src/RegExpValidator.cpp
index 0adb588efb..1553340650 100644
--- a/contrib/libs/poco/Util/src/RegExpValidator.cpp
+++ b/contrib/libs/poco/Util/src/RegExpValidator.cpp
@@ -1,47 +1,47 @@
-//
-// RegExpValidator.cpp
-//
-// Library: Util
-// Package: Options
-// Module: RegExpValidator
-//
-// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
-// and Contributors.
-//
-// SPDX-License-Identifier: BSL-1.0
-//
-
-
-#include "Poco/Util/RegExpValidator.h"
-#include "Poco/Util/Option.h"
-#include "Poco/Util/OptionException.h"
-#include "Poco/RegularExpression.h"
-#include "Poco/Format.h"
-
-
-using Poco::format;
-
-
-namespace Poco {
-namespace Util {
-
-
-RegExpValidator::RegExpValidator(const std::string& regexp):
- _regexp(regexp)
-{
-}
-
-
-RegExpValidator::~RegExpValidator()
-{
-}
-
-
-void RegExpValidator::validate(const Option& option, const std::string& value)
-{
- if (!RegularExpression::match(value, _regexp, RegularExpression::RE_ANCHORED | RegularExpression::RE_UTF8))
- throw InvalidArgumentException(format("argument for %s does not match regular expression %s", option.fullName(), _regexp));
-}
-
-
-} } // namespace Poco::Util
+//
+// RegExpValidator.cpp
+//
+// Library: Util
+// Package: Options
+// Module: RegExpValidator
+//
+// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// SPDX-License-Identifier: BSL-1.0
+//
+
+
+#include "Poco/Util/RegExpValidator.h"
+#include "Poco/Util/Option.h"
+#include "Poco/Util/OptionException.h"
+#include "Poco/RegularExpression.h"
+#include "Poco/Format.h"
+
+
+using Poco::format;
+
+
+namespace Poco {
+namespace Util {
+
+
+RegExpValidator::RegExpValidator(const std::string& regexp):
+ _regexp(regexp)
+{
+}
+
+
+RegExpValidator::~RegExpValidator()
+{
+}
+
+
+void RegExpValidator::validate(const Option& option, const std::string& value)
+{
+ if (!RegularExpression::match(value, _regexp, RegularExpression::RE_ANCHORED | RegularExpression::RE_UTF8))
+ throw InvalidArgumentException(format("argument for %s does not match regular expression %s", option.fullName(), _regexp));
+}
+
+
+} } // namespace Poco::Util