diff options
Diffstat (limited to 'include/rtl/string.hxx')
-rw-r--r-- | include/rtl/string.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index f80dd7410da7..c16519fa14df 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -1765,6 +1765,15 @@ public: index = rtl_string_getToken( &pNew, pData, token, cTok, index ); return OString( pNew, SAL_NO_ACQUIRE ); } +#ifdef LIBO_INTERNAL_ONLY // "RTL_FAST_STRING" + std::string_view getTokenView( sal_Int32 token, char cTok, sal_Int32& index ) const + { + const char* pViewData = nullptr; + sal_Int32 nViewLength = 0; + index = rtl_string_getTokenView( &pViewData, &nViewLength, pData, token, cTok, index ); + return std::string_view(pViewData, nViewLength); + } +#endif /** Returns a token from the string. |