Issue 25176 - request for enhancement: OUString::endsWithIgnoreAsciiCase()
Summary: request for enhancement: OUString::endsWithIgnoreAsciiCase()
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P5 (lowest) Trivial (vote)
Target Milestone: OOo 2.0
Assignee: Daniel Boelzle [:dbo]
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 16:22 UTC by Daniel Boelzle [:dbo]
Modified: 2004-05-11 13:07 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Daniel Boelzle [:dbo] 2004-02-06 16:22:54 UTC
Hey Stephan, what about adding the following member function to OUString?

inline bool endsWithIgnoreAsciiCase(
    char const * end, sal_Int32 end_len )
{
    sal_Int32 len = pData->length;
    return (end_len <= len &&
            rtl_ustr_ascii_compareIgnoreAsciiCase(
                pData->buffer + len - end_len, end ) == 0);
}
Comment 1 Stephan Bergmann 2004-02-09 17:21:30 UTC
fixed, added method rtl::OUString::endsWithIgnoreAsciiCaseAsciiL
Comment 2 Stephan Bergmann 2004-02-09 17:28:53 UTC
set milestone
Comment 3 Stephan Bergmann 2004-04-08 10:09:51 UTC
verified (see sal/qa/rtl/strings/test_oustring_endswith.cxx)
Comment 4 Stephan Bergmann 2004-04-08 10:10:44 UTC
reassigned
Comment 5 Daniel Boelzle [:dbo] 2004-04-08 10:59:01 UTC
fixed.
Comment 6 Daniel Boelzle [:dbo] 2004-04-08 10:59:19 UTC
verified.
Comment 7 Daniel Boelzle [:dbo] 2004-05-11 13:07:35 UTC
.