String replacement by OUString queries

Caolán McNamara caolanm at redhat.com
Mon Feb 25 16:09:12 PST 2013


On Mon, 2013-02-25 at 03:57 +0530, Prashant Pandey wrote:
> I get an error: ‘OUStringBuffer’ was not declared in this scope ! 
> I tried out many things but with fail.

make sure you've got #include <rtl/ustrbuf.hxx>

> I would like to know that what are the parameters to replace
> foo.Erase(a,b) i.e. the middle part of some string using
> OUStringBuffer()

OUStringBuffer::remove(a,b), see sal/inc/rtl/ustrbuf.hxx

C.



More information about the LibreOffice mailing list