diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 17:24:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 23:16:44 +0000 |
commit | 0dbc4fa3efdea90ba23e17e12c2bfe15d763acbf (patch) | |
tree | 857875b2edaee72abb836c8235c4bb87e6e6a18b /linguistic | |
parent | add string::strip, can replace EraseLeadingAndTrailingChars (diff) | |
download | core-0dbc4fa3efdea90ba23e17e12c2bfe15d763acbf.tar.gz core-0dbc4fa3efdea90ba23e17e12c2bfe15d763acbf.zip |
add string::strip, can replace EraseLeadingAndTrailingChars
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dicimp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 22927eb4d163..8ebb01169c16 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -41,6 +41,7 @@ #include <tools/string.hxx> #include <tools/urlobj.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <unotools/ucbstreamhelper.hxx> #include <com/sun/star/ucb/XSimpleFileAccess.hpp> @@ -88,7 +89,7 @@ static sal_Bool getTag(const ByteString &rLine, if (nPos == STRING_NOTFOUND) return sal_False; - rTagValue = rLine.Copy( nPos + sal::static_int_cast< xub_StrLen >(strlen( pTagName )) ).EraseLeadingAndTrailingChars(); + rTagValue = comphelper::string::strip(rLine.Copy(nPos + sal::static_int_cast< xub_StrLen >(strlen( pTagName ))), ' '); return sal_True; } |