aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Foundation/src/Unicode.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/Foundation/src/Unicode.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/Foundation/src/Unicode.cpp')
-rw-r--r--contrib/libs/poco/Foundation/src/Unicode.cpp112
1 files changed, 56 insertions, 56 deletions
diff --git a/contrib/libs/poco/Foundation/src/Unicode.cpp b/contrib/libs/poco/Foundation/src/Unicode.cpp
index ec602694ab..172158d379 100644
--- a/contrib/libs/poco/Foundation/src/Unicode.cpp
+++ b/contrib/libs/poco/Foundation/src/Unicode.cpp
@@ -1,56 +1,56 @@
-//
-// Unicode.cpp
-//
-// Library: Foundation
-// Package: Text
-// Module: Unicode
-//
-// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
-// and Contributors.
-//
-// SPDX-License-Identifier: BSL-1.0
-//
-
-
-#include "Poco/Unicode.h"
-
-
-extern "C"
-{
-#include "pcre_config.h"
-#include "pcre_internal.h"
-}
-
-
-namespace Poco {
-
-
-void Unicode::properties(int ch, CharacterProperties& props)
-{
- if (ch > UCP_MAX_CODEPOINT) ch = 0;
- const ucd_record* ucd = GET_UCD(ch);
- props.category = static_cast<CharacterCategory>(_pcre_ucp_gentype[ucd->chartype]);
- props.type = static_cast<CharacterType>(ucd->chartype);
- props.script = static_cast<Script>(ucd->script);
-}
-
-
-int Unicode::toLower(int ch)
-{
- if (isUpper(ch))
- return static_cast<int>(UCD_OTHERCASE(static_cast<unsigned>(ch)));
- else
- return ch;
-}
-
-
-int Unicode::toUpper(int ch)
-{
- if (isLower(ch))
- return static_cast<int>(UCD_OTHERCASE(static_cast<unsigned>(ch)));
- else
- return ch;
-}
-
-
-} // namespace Poco
+//
+// Unicode.cpp
+//
+// Library: Foundation
+// Package: Text
+// Module: Unicode
+//
+// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// SPDX-License-Identifier: BSL-1.0
+//
+
+
+#include "Poco/Unicode.h"
+
+
+extern "C"
+{
+#include "pcre_config.h"
+#include "pcre_internal.h"
+}
+
+
+namespace Poco {
+
+
+void Unicode::properties(int ch, CharacterProperties& props)
+{
+ if (ch > UCP_MAX_CODEPOINT) ch = 0;
+ const ucd_record* ucd = GET_UCD(ch);
+ props.category = static_cast<CharacterCategory>(_pcre_ucp_gentype[ucd->chartype]);
+ props.type = static_cast<CharacterType>(ucd->chartype);
+ props.script = static_cast<Script>(ucd->script);
+}
+
+
+int Unicode::toLower(int ch)
+{
+ if (isUpper(ch))
+ return static_cast<int>(UCD_OTHERCASE(static_cast<unsigned>(ch)));
+ else
+ return ch;
+}
+
+
+int Unicode::toUpper(int ch)
+{
+ if (isLower(ch))
+ return static_cast<int>(UCD_OTHERCASE(static_cast<unsigned>(ch)));
+ else
+ return ch;
+}
+
+
+} // namespace Poco