From 0dbc4fa3efdea90ba23e17e12c2bfe15d763acbf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 23 Nov 2011 17:24:38 +0000 Subject: add string::strip, can replace EraseLeadingAndTrailingChars --- linguistic/source/dicimp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linguistic') 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 #include #include +#include #include #include @@ -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; } -- cgit