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


On 03/19/2013 06:29 PM, Noel Grandin wrote:
On Tue, Mar 19, 2013 at 6:54 PM, Stephan Bergmann <sbergman@redhat.com> wrote:
* compareToAscii(char cosnt * asciiStr, sal_Int32 maxLength) does a
shortened comparison of only up to maxLength characters of *this and the
given asciiStr.


Maybe this one should be renamed to something like "compareLeftToAscii" ?

I was musing about marking it as

  SAL_DEPRECATED_INTERNAL("use startsWith")

but that would only apply for the cases where the return value is compared against zero, so dismissed it.

But then again, there are hopefully no legitimate cases that do not compare the return value against zero anyway, so this might still be the most attractive approach. I'll give it a try.

Stephan

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.