Theres no need, OUString already has a method lastIndexOf, <a href="http://opengrok.libreoffice.org/xref/core/sal/inc/rtl/ustring.hxx#1133">http://opengrok.libreoffice.org/xref/core/sal/inc/rtl/ustring.hxx#1133</a><br><br>
<div class="gmail_quote">On Sun, Mar 18, 2012 at 1:06 PM, Olivier Hallot <span dir="ltr"><<a href="mailto:olivier.hallot@documentfoundation.org">olivier.hallot@documentfoundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi all<br>
<br>
I put forefront that I am a newbie on C++ so, forgive me if I ask things<br>
too basic or dumb. I was looking into the replacement of String by<br>
OUString/OUStringBuffer in some parts of the code (starmath).<br>
<br>
First, I'd like a pointer on a text/discussion on why this is<br>
necessary/recomended.(*)<br>
<br>
Secondly, as expected, some of the members of class String don't exist<br>
in O[U]String[Buffer]. Therefore I was advised by Norbert to create the<br>
member in the classes where I need them. So far, so good.<br>
<br>
But such critical class, used all over the code, need a bit more care<br>
and sponsorship, so with the specific case of<br>
STRING::SearchBackward(...), is it OK to add a new member in<br>
rtl::OUStringBuffer? If so, is it OK to clone STRING:SearchBackward(...)<br>
to OUStringBuffer::SearchBackward(...)?<br>
<br>
Any better idea?<br>
<br>
Please advise.Thanks!<br>
<br>
(*) <a href="http://wiki.documentfoundation.org/Development/String_Classes" target="_blank">http://wiki.documentfoundation.org/Development/String_Classes</a><br>
- --<br>
Olivier Hallot<br>
Founder, Board of Directors Member - The Document Foundation<br>
LibreOffice translation leader for Brazilian Portuguese<br>
<a href="tel:%2B55-21-8822-8812" value="+552188228812">+55-21-8822-8812</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iQEcBAEBAgAGBQJPZd3PAAoJEJp3R7nH3vLxygcH/2QgJQth4OfLcZHt0eh+LnR0<br>
Pu/pOjcsS9iFMuKyd2C4zAATK4KuuUByj4speBlCXFRnRwyIoDSQAKJiJhnk+SNc<br>
vQhlWrn+yTzB8wS2Ps8ryARcMiM80ho6Gs3sNzh+tHo+svZLR8KQx2qwcaPPAIZ1<br>
a1WESHMcjRbOZ4PhYPo5CTEoH9ePSfpOIDeyU+NmOplWQzs0ujkZqh85mT7AtCZh<br>
t82A6ke8gJgeG5HBRMqsUj2EY/1+Kd3OxGZwF1kaQn0hr5+o+MO8afl9FlXT0hiS<br>
aksX1ZvHejFDNClgLHfvLTeuEQx3xXR7Cc7vrpYXDJM5oIEO5CuW6f1B6Ni+mk8=<br>
=YYx7<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div><br>