diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-02 10:55:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 09:18:19 +0000 |
commit | bacfd2dc4cea1a5d87658ed8592116acd931e000 (patch) | |
tree | d22172a33fdd13a440b6882a28c23ea2d639bbad /tools | |
parent | 6281eb0e0792da0194c07da18296e94dd944b8e5 (diff) |
add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount
converted low-hanging variants to rtl::O[UString]::getToken loops
added unit test
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/inet/inetstrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx index 557a32cc8865..aae2fe7cc945 100644 --- a/tools/source/inet/inetstrm.cxx +++ b/tools/source/inet/inetstrm.cxx @@ -1294,7 +1294,7 @@ INetMIMEMessageStream::GetMsgEncoding (const String& rContentType) { if (rContentType.CompareIgnoreCaseToAscii ("text/plain", 10) == 0) { - if (rContentType.GetTokenCount ('=') > 1) + if (comphelper::string::getTokenCount(rContentType, '=') > 1) { String aCharset (rContentType.GetToken (1, '=')); aCharset = comphelper::string::stripStart(aCharset, ' '); |