string.hxx (9246b6a2) string.hxx (cddbce83)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 220 unchanged lines hidden (view full) ---

229 <p>The returned pointer is not guaranteed to point to a null-terminated
230 byte string. Note that this string object may contain embedded null
231 characters, which will thus also be embedded in the returned byte
232 string.</p>
233
234 @return a pointer to a (not necessarily null-terminated) byte string
235 representing the characters of this string object.
236 */
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 220 unchanged lines hidden (view full) ---

229 <p>The returned pointer is not guaranteed to point to a null-terminated
230 byte string. Note that this string object may contain embedded null
231 characters, which will thus also be embedded in the returned byte
232 string.</p>
233
234 @return a pointer to a (not necessarily null-terminated) byte string
235 representing the characters of this string object.
236 */
237 operator const sal_Char *() const SAL_THROW(()) { return pData->buffer; }
237
238public:
238public:
239 operator const sal_Char *() const SAL_THROW(()) { return pData->buffer; }
239 /** Returns a reference to a character of this string. */
240 sal_Char& operator[]( int n ) { return pData->buffer[n]; }
241 /** Returns a const reference to a character of this string. */
242 const sal_Char& operator[]( int n ) const { return pData->buffer[n]; }
243 /** Returns a bool indicating whether this string is empty. */
244 bool isEmpty() const { return (pData->length == 0); }
245
246 /**

--- 731 unchanged lines hidden ---
240 /** Returns a reference to a character of this string. */
241 sal_Char& operator[]( int n ) { return pData->buffer[n]; }
242 /** Returns a const reference to a character of this string. */
243 const sal_Char& operator[]( int n ) const { return pData->buffer[n]; }
244 /** Returns a bool indicating whether this string is empty. */
245 bool isEmpty() const { return (pData->length == 0); }
246
247 /**

--- 731 unchanged lines hidden ---