summaryrefslogtreecommitdiff
path: root/sal/inc/rtl/ustring.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/inc/rtl/ustring.hxx')
-rw-r--r--sal/inc/rtl/ustring.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx
index ed268d9633ae..e104f0d40760 100644
--- a/sal/inc/rtl/ustring.hxx
+++ b/sal/inc/rtl/ustring.hxx
@@ -300,16 +300,18 @@ public:
@return a pointer to the Unicode characters buffer from this object.
*/
- operator const sal_Unicode *() const SAL_THROW(()) { return pData->buffer; }
+ const sal_Unicode * getStr() const SAL_THROW(()) { return pData->buffer; }
/**
- Returns a pointer to the Unicode character buffer from this string.
+ Access to individual characters.
- It isn't necessarily NULL terminated.
+ @param index must be non-negative and less than length.
- @return a pointer to the Unicode characters buffer from this object.
+ @return the character at the given index.
+
+ @since LibreOffice 3.5
*/
- const sal_Unicode * getStr() const SAL_THROW(()) { return pData->buffer; }
+ sal_Unicode operator [](sal_Int32 index) const { return getStr()[index]; }
/**
Compares two strings.