From 9ee19c8fad2c3c29c4ff4cc6c37ba8d24d641ccc Mon Sep 17 00:00:00 2001 From: August Sodora Date: Thu, 1 Dec 2011 16:21:54 -0500 Subject: fdo#41474: remove setCharAt and charAt from O[U]StringBuffer --- sal/inc/rtl/strbuf.hxx | 36 ------------------------------------ sal/inc/rtl/ustrbuf.hxx | 36 ------------------------------------ 2 files changed, 72 deletions(-) (limited to 'sal/inc/rtl') diff --git a/sal/inc/rtl/strbuf.hxx b/sal/inc/rtl/strbuf.hxx index 5f0b9b3fecc0..e3ae74bc3b5f 100644 --- a/sal/inc/rtl/strbuf.hxx +++ b/sal/inc/rtl/strbuf.hxx @@ -268,25 +268,6 @@ public: } } - /** - Returns the character at a specific index in this string buffer. - - The first character of a string buffer is at index - 0, the next at index 1, and so on, for - array indexing. -

- The index argument must be greater than or equal to - 0, and less than the length of this string buffer. - - @param index the index of the desired character. - @return the character at the specified index of this string buffer. - */ - sal_Char charAt( sal_Int32 index ) - { - assert(index >= 0 && index < pData->length); - return pData->buffer[ index ]; - } - /** Return a null terminated character array. */ @@ -312,23 +293,6 @@ public: return OString(pData->buffer, pData->length); } - /** - The character at the specified index of this string buffer is set - to ch. - - The index argument must be greater than or equal to - 0, and less than the length of this string buffer. - - @param index the index of the character to modify. - @param ch the new character. - */ - OStringBuffer & setCharAt(sal_Int32 index, sal_Char ch) - { - assert(index >= 0 && index < pData->length); - pData->buffer[ index ] = ch; - return *this; - } - /** Appends the string to this string buffer. diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx index 2456316274d2..624b6f046258 100644 --- a/sal/inc/rtl/ustrbuf.hxx +++ b/sal/inc/rtl/ustrbuf.hxx @@ -247,25 +247,6 @@ public: } } - /** - Returns the character at a specific index in this string buffer. - - The first character of a string buffer is at index - 0, the next at index 1, and so on, for - array indexing. -

- The index argument must be greater than or equal to - 0, and less than the length of this string buffer. - - @param index the index of the desired character. - @return the character at the specified index of this string buffer. - */ - sal_Unicode charAt( sal_Int32 index ) const - { - assert(index >= 0 && index < pData->length); - return pData->buffer[ index ]; - } - /** Return a null terminated unicode character array. */ @@ -291,23 +272,6 @@ public: return OUString(pData->buffer, pData->length); } - /** - The character at the specified index of this string buffer is set - to ch. - - The index argument must be greater than or equal to - 0, and less than the length of this string buffer. - - @param index the index of the character to modify. - @param ch the new character. - */ - OUStringBuffer & setCharAt(sal_Int32 index, sal_Unicode ch) - { - assert(index >= 0 && index < pData->length); - pData->buffer[ index ] = ch; - return *this; - } - /** Appends the string to this string buffer. -- cgit v1.2.3