aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/icu/i18n/ufieldpositer.cpp
diff options
context:
space:
mode:
authorneksard <neksard@yandex-team.ru>2022-02-10 16:45:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:23 +0300
commit8f7cf138264e0caa318144bf8a2c950e0b0a8593 (patch)
tree83bf5c8c8047c42d8475e6095df90ccdc3d1b57f /contrib/libs/icu/i18n/ufieldpositer.cpp
parentd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (diff)
downloadydb-8f7cf138264e0caa318144bf8a2c950e0b0a8593.tar.gz
Restoring authorship annotation for <neksard@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/icu/i18n/ufieldpositer.cpp')
-rw-r--r--contrib/libs/icu/i18n/ufieldpositer.cpp120
1 files changed, 60 insertions, 60 deletions
diff --git a/contrib/libs/icu/i18n/ufieldpositer.cpp b/contrib/libs/icu/i18n/ufieldpositer.cpp
index 64de856c30..802470e81b 100644
--- a/contrib/libs/icu/i18n/ufieldpositer.cpp
+++ b/contrib/libs/icu/i18n/ufieldpositer.cpp
@@ -1,61 +1,61 @@
// © 2016 and later: Unicode, Inc. and others.
-// License & terms of use: http://www.unicode.org/copyright.html
-/*
-*****************************************************************************************
-* Copyright (C) 2015, International Business Machines
-* Corporation and others. All Rights Reserved.
-*****************************************************************************************
-*/
-
-#include "unicode/utypes.h"
-
-#if !UCONFIG_NO_FORMATTING
-
-#include "unicode/ufieldpositer.h"
-#include "unicode/fpositer.h"
-#include "unicode/localpointer.h"
-
-U_NAMESPACE_USE
-
-
-U_CAPI UFieldPositionIterator* U_EXPORT2
-ufieldpositer_open(UErrorCode* status)
-{
- if (U_FAILURE(*status)) {
- return NULL;
- }
- FieldPositionIterator* fpositer = new FieldPositionIterator();
- if (fpositer == NULL) {
- *status = U_MEMORY_ALLOCATION_ERROR;
- }
- return (UFieldPositionIterator*)fpositer;
-}
-
-
-U_CAPI void U_EXPORT2
-ufieldpositer_close(UFieldPositionIterator *fpositer)
-{
- delete (FieldPositionIterator*)fpositer;
-}
-
-
-U_CAPI int32_t U_EXPORT2
-ufieldpositer_next(UFieldPositionIterator *fpositer,
- int32_t *beginIndex, int32_t *endIndex)
-{
- FieldPosition fp;
- int32_t field = -1;
- if (((FieldPositionIterator*)fpositer)->next(fp)) {
- field = fp.getField();
- if (beginIndex) {
- *beginIndex = fp.getBeginIndex();
- }
- if (endIndex) {
- *endIndex = fp.getEndIndex();
- }
- }
- return field;
-}
-
-
-#endif /* #if !UCONFIG_NO_FORMATTING */
+// License & terms of use: http://www.unicode.org/copyright.html
+/*
+*****************************************************************************************
+* Copyright (C) 2015, International Business Machines
+* Corporation and others. All Rights Reserved.
+*****************************************************************************************
+*/
+
+#include "unicode/utypes.h"
+
+#if !UCONFIG_NO_FORMATTING
+
+#include "unicode/ufieldpositer.h"
+#include "unicode/fpositer.h"
+#include "unicode/localpointer.h"
+
+U_NAMESPACE_USE
+
+
+U_CAPI UFieldPositionIterator* U_EXPORT2
+ufieldpositer_open(UErrorCode* status)
+{
+ if (U_FAILURE(*status)) {
+ return NULL;
+ }
+ FieldPositionIterator* fpositer = new FieldPositionIterator();
+ if (fpositer == NULL) {
+ *status = U_MEMORY_ALLOCATION_ERROR;
+ }
+ return (UFieldPositionIterator*)fpositer;
+}
+
+
+U_CAPI void U_EXPORT2
+ufieldpositer_close(UFieldPositionIterator *fpositer)
+{
+ delete (FieldPositionIterator*)fpositer;
+}
+
+
+U_CAPI int32_t U_EXPORT2
+ufieldpositer_next(UFieldPositionIterator *fpositer,
+ int32_t *beginIndex, int32_t *endIndex)
+{
+ FieldPosition fp;
+ int32_t field = -1;
+ if (((FieldPositionIterator*)fpositer)->next(fp)) {
+ field = fp.getField();
+ if (beginIndex) {
+ *beginIndex = fp.getBeginIndex();
+ }
+ if (endIndex) {
+ *endIndex = fp.getEndIndex();
+ }
+ }
+ return field;
+}
+
+
+#endif /* #if !UCONFIG_NO_FORMATTING */