include/xmloff/fasttokenhandler.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 293b6080e9f3cd911d0046bfa16f556616c59d04 Author: Tor Lillqvist <t...@collabora.com> Date: Wed Aug 17 10:24:15 2016 +0300 UTF-8 is Unicode, too There is no dichotomy of "Unicode" vs. "UTF-8". What is meant is UTF-16 (OUString) vs. UTF-8. So say so in the comments. Change-Id: I14fa7f543e87ed9e54fb37374a0b17d7e09a0879 diff --git a/include/xmloff/fasttokenhandler.hxx b/include/xmloff/fasttokenhandler.hxx index 991318e..c71cbf1 100644 --- a/include/xmloff/fasttokenhandler.hxx +++ b/include/xmloff/fasttokenhandler.hxx @@ -26,10 +26,10 @@ public: explicit TokenMap(); ~TokenMap(); - /** Returns the token identifier for the passed Unicode token name. */ + /** Returns the token identifier for the passed OUString (UTF-16) token name. */ static sal_Int32 getTokenFromUnicode( const OUString& rUnicodeName ); - /** Returns the UTF8 name of the passed token identifier as byte sequence. */ + /** Returns the UTF-8 name of the passed token identifier as byte sequence. */ css::uno::Sequence< sal_Int8 > getUtf8TokenName( sal_Int32 nToken ) const { SAL_WARN_IF(nToken < 0 || nToken >= XML_TOKEN_COUNT, "xmloff", "Wrong nToken parameter"); @@ -38,14 +38,14 @@ public: return css::uno::Sequence< sal_Int8 >(); } - /** Returns the token identifier for the passed UTF8 token name. */ + /** Returns the token identifier for the passed UTF-8 token name. */ static sal_Int32 getTokenFromUtf8( const css::uno::Sequence< sal_Int8 >& rUtf8Name ) { return getTokenFromUTF8( reinterpret_cast< const char* >( rUtf8Name.getConstArray() ), rUtf8Name.getLength() ); } - /** Returns the token identifier for a UTF8 string passed in pToken */ + /** Returns the token identifier for a UTF-8 string */ static sal_Int32 getTokenFromUTF8( const char *pToken, sal_Int32 nLength ) { return getTokenPerfectHash( pToken, nLength ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits