diff options
author | romankoshelev <romankoshelev@yandex-team.com> | 2023-08-14 19:51:50 +0300 |
---|---|---|
committer | romankoshelev <romankoshelev@yandex-team.com> | 2023-08-15 01:24:11 +0300 |
commit | cfcd865e05c0d0525ea27d1e153a043b32a85138 (patch) | |
tree | 68d3b3b25271e8a4998505897a269ff7ce119b76 /contrib/libs/icu/include/unicode/stsearch.h | |
parent | ccb790c507bd5e8ffe2ef9886ce5ee0a7ce22a15 (diff) | |
download | ydb-cfcd865e05c0d0525ea27d1e153a043b32a85138.tar.gz |
Update ICU to 73.2
Diffstat (limited to 'contrib/libs/icu/include/unicode/stsearch.h')
-rw-r--r-- | contrib/libs/icu/include/unicode/stsearch.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/libs/icu/include/unicode/stsearch.h b/contrib/libs/icu/include/unicode/stsearch.h index c23e651d89..b916aebf24 100644 --- a/contrib/libs/icu/include/unicode/stsearch.h +++ b/contrib/libs/icu/include/unicode/stsearch.h @@ -116,7 +116,7 @@ U_NAMESPACE_BEGIN * UnicodeString pattern("fox"); * * UErrorCode error = U_ZERO_ERROR; - * StringSearch iter(pattern, target, Locale::getUS(), NULL, status); + * StringSearch iter(pattern, target, Locale::getUS(), nullptr, status); * for (int pos = iter.first(error); * pos != USEARCH_DONE; * pos = iter.next(error)) @@ -132,7 +132,7 @@ U_NAMESPACE_BEGIN * @since ICU 2.0 */ -class U_I18N_API StringSearch U_FINAL : public SearchIterator +class U_I18N_API StringSearch final : public SearchIterator { public: @@ -153,8 +153,8 @@ public: * indices in the target text are not boundaries as * determined by the <tt>BreakIterator</tt> are * ignored. If this behavior is not desired, - * <tt>NULL</tt> can be passed in instead. - * @param status for errors if any. If pattern or text is NULL, or if + * <tt>nullptr</tt> can be passed in instead. + * @param status for errors if any. If pattern or text is nullptr, or if * either the length of pattern or text is 0 then an * U_ILLEGAL_ARGUMENT_ERROR is returned. * @stable ICU 2.0 @@ -180,7 +180,7 @@ public: * indices in the target text are not boundaries as * determined by the <tt>BreakIterator</tt> are * ignored. If this behavior is not desired, - * <tt>NULL</tt> can be passed in instead. + * <tt>nullptr</tt> can be passed in instead. * @param status for errors if any. If either the length of pattern or * text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. * @stable ICU 2.0 @@ -211,7 +211,7 @@ public: * indices in the target text are not boundaries as * determined by the <tt>BreakIterator</tt> are * ignored. If this behavior is not desired, - * <tt>NULL</tt> can be passed in instead. + * <tt>nullptr</tt> can be passed in instead. * @param status for errors if any. If either the length of pattern or * text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. * @stable ICU 2.0 @@ -241,7 +241,7 @@ public: * indices in the target text are not boundaries as * determined by the <tt>BreakIterator</tt> are * ignored. If this behavior is not desired, - * <tt>NULL</tt> can be passed in instead. + * <tt>nullptr</tt> can be passed in instead. * @param status for errors if any. If either the length of pattern or * text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned. * @stable ICU 2.0 @@ -269,7 +269,7 @@ public: /** * Clone this object. * Clones can be used concurrently in multiple threads. - * If an error occurs, then NULL is returned. + * If an error occurs, then nullptr is returned. * The caller must delete the clone. * * @return a clone of this object @@ -482,7 +482,7 @@ protected: virtual int32_t handlePrev(int32_t position, UErrorCode &status) override; private : - StringSearch(); // default constructor not implemented + StringSearch() = delete; // default constructor not implemented // private data members ---------------------------------------------- |