diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-05 12:07:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-06 12:09:48 +0200 |
commit | 325c571c22231978e5409902b514d2584186e0a0 (patch) | |
tree | c6d84fedf6dee52bff77b07b5d46d4800f109f5f /include | |
parent | 6276e7c28ed53670fb911ec2bd97a6696583d36b (diff) |
update loplugin:stringview* for o3tl::iterateCodePoints
And change o3tl::iterateCodePoints to use sal_Int32 for its
second param, to integrate better with places where the parameter
comes from an UNO API, which cannot use std::size_t
Change-Id: I7b9dd2c9bc7f48e6c4a912f039f1b5dae7beae69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151421
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/string.hxx | 2 | ||||
-rw-r--r-- | include/o3tl/string_view.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx index 8144a7e95e28..2763ded2e9fd 100644 --- a/include/comphelper/string.hxx +++ b/include/comphelper/string.hxx @@ -300,7 +300,7 @@ COMPHELPER_DLLPUBLIC OString join(std::string_view rSeparator, const std::vector @return The value of the string as an int32. */ COMPHELPER_DLLPUBLIC sal_uInt32 decimalStringToNumber( - OUString const & str ); + std::u16string_view str ); COMPHELPER_DLLPUBLIC std::vector<OUString> split(std::u16string_view rString, const sal_Unicode cSeparator); diff --git a/include/o3tl/string_view.hxx b/include/o3tl/string_view.hxx index 5d03b2cfba87..07278be8e529 100644 --- a/include/o3tl/string_view.hxx +++ b/include/o3tl/string_view.hxx @@ -509,7 +509,7 @@ inline double toDouble(std::string_view str) } // Like OUString::iterateCodePoints, but for std::string_view: -inline sal_uInt32 iterateCodePoints(std::u16string_view string, std::size_t* indexUtf16, +inline sal_uInt32 iterateCodePoints(std::u16string_view string, sal_Int32* indexUtf16, sal_Int32 incrementCodePoints = 1) { std::size_t n; |