summaryrefslogtreecommitdiff
path: root/include/xmloff/fasttokenhandler.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-08-17 10:24:15 +0300
committerTor Lillqvist <tml@collabora.com>2016-08-17 10:24:15 +0300
commit293b6080e9f3cd911d0046bfa16f556616c59d04 (patch)
tree5992eda3788df27582e792fb7dcfe1f6e2df48a6 /include/xmloff/fasttokenhandler.hxx
parentd5ffeddff2a241c2cbbf1e3a03e41aee47307f87 (diff)
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
Diffstat (limited to 'include/xmloff/fasttokenhandler.hxx')
-rw-r--r--include/xmloff/fasttokenhandler.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/xmloff/fasttokenhandler.hxx b/include/xmloff/fasttokenhandler.hxx
index 991318eded7a..c71cbf1f7ec8 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 );