Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Theres no need, OUString already has a method lastIndexOf,
http://opengrok.libreoffice.org/xref/core/sal/inc/rtl/ustring.hxx#1133

On Sun, Mar 18, 2012 at 1:06 PM, Olivier Hallot <
olivier.hallot@documentfoundation.org> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all

I put forefront that I am a newbie on C++ so, forgive me if I ask things
too basic or dumb. I was looking into the replacement of String by
OUString/OUStringBuffer in some parts of the code (starmath).

First, I'd like a pointer on a text/discussion on why this is
necessary/recomended.(*)

Secondly, as expected, some of the members of class String don't exist
in O[U]String[Buffer]. Therefore I was advised by Norbert to create the
member in the classes where I need them. So far, so good.

But such critical class, used all over the code, need a bit more care
and sponsorship, so with the specific case of
STRING::SearchBackward(...), is it OK to add a new member in
rtl::OUStringBuffer? If so, is it OK to clone STRING:SearchBackward(...)
to OUStringBuffer::SearchBackward(...)?

Any better idea?

Please advise.Thanks!

(*) http://wiki.documentfoundation.org/Development/String_Classes
- --
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPZd3PAAoJEJp3R7nH3vLxygcH/2QgJQth4OfLcZHt0eh+LnR0
Pu/pOjcsS9iFMuKyd2C4zAATK4KuuUByj4speBlCXFRnRwyIoDSQAKJiJhnk+SNc
vQhlWrn+yTzB8wS2Ps8ryARcMiM80ho6Gs3sNzh+tHo+svZLR8KQx2qwcaPPAIZ1
a1WESHMcjRbOZ4PhYPo5CTEoH9ePSfpOIDeyU+NmOplWQzs0ujkZqh85mT7AtCZh
t82A6ke8gJgeG5HBRMqsUj2EY/1+Kd3OxGZwF1kaQn0hr5+o+MO8afl9FlXT0hiS
aksX1ZvHejFDNClgLHfvLTeuEQx3xXR7Cc7vrpYXDJM5oIEO5CuW6f1B6Ni+mk8=
=YYx7
-----END PGP SIGNATURE-----
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.