summaryrefslogtreecommitdiff
path: root/include/i18nutil/scripttypedetector.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-11 14:49:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-11 17:44:46 +0200
commit6fc3dfd3f1b5cb13101299df42444f2ff0493846 (patch)
tree404a816727baa934e77c6e474cc57e83a7aa2754 /include/i18nutil/scripttypedetector.hxx
parent8cbb08de38fc1a2f9d2ea0dfbdc2be8e8110ff73 (diff)
use more string_view
found by tweaking the loplugin:stringview and making it whitelist getLength Change-Id: Ic41cd4e3026d93b70a76fe1279c6de3abbe6b4a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132820 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/i18nutil/scripttypedetector.hxx')
-rw-r--r--include/i18nutil/scripttypedetector.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/i18nutil/scripttypedetector.hxx b/include/i18nutil/scripttypedetector.hxx
index fd098f9e7f32..a3d4d8ed2ff7 100644
--- a/include/i18nutil/scripttypedetector.hxx
+++ b/include/i18nutil/scripttypedetector.hxx
@@ -25,11 +25,11 @@
class I18NUTIL_DLLPUBLIC ScriptTypeDetector
{
public:
- static sal_Int32 beginOfScriptDirection( const OUString& Text, sal_Int32 nPos, sal_Int16 scriptDirection );
- static sal_Int32 endOfScriptDirection( const OUString& Text, sal_Int32 nPos, sal_Int16 scriptDirection );
+ static sal_Int32 beginOfScriptDirection( std::u16string_view Text, sal_Int32 nPos, sal_Int16 scriptDirection );
+ static sal_Int32 endOfScriptDirection( std::u16string_view Text, sal_Int32 nPos, sal_Int16 scriptDirection );
static sal_Int16 getScriptDirection( std::u16string_view Text, sal_Int32 nPos, sal_Int16 defaultScriptDirection );
- static sal_Int32 beginOfCTLScriptType( const OUString& Text, sal_Int32 nPos );
- static sal_Int32 endOfCTLScriptType( const OUString& Text, sal_Int32 nPos );
+ static sal_Int32 beginOfCTLScriptType( std::u16string_view Text, sal_Int32 nPos );
+ static sal_Int32 endOfCTLScriptType( std::u16string_view Text, sal_Int32 nPos );
static sal_Int16 getCTLScriptType(std::u16string_view Text, sal_Int32 nPos );
};