diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-06-06 04:42:47 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-06-06 04:42:47 +0000 |
commit | de79385e4d4b096cea5ea90545439fb645198222 (patch) | |
tree | ce0e294b53af470cdfc0b5b690436b6628f860ce /ace/SString.i | |
parent | 5cfdefa63c39862b8af5f4e9546dbb029d554d89 (diff) | |
download | ATCD-de79385e4d4b096cea5ea90545439fb645198222.tar.gz |
.
Diffstat (limited to 'ace/SString.i')
-rw-r--r-- | ace/SString.i | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/ace/SString.i b/ace/SString.i index 8e7157da963..44526a9fdc8 100644 --- a/ace/SString.i +++ b/ace/SString.i @@ -140,22 +140,22 @@ ACE_CString::substr (size_t offset, return this->substring (offset, length); } -// Return the <index'th> character in the string. +// Return the <slot'th> character in the string. ACE_INLINE const char & -ACE_CString::operator[] (size_t index) const +ACE_CString::operator[] (size_t slot) const { ACE_TRACE ("ACE_CString::operator[]"); - return this->rep_[index]; + return this->rep_[slot]; } -// Return the <index'th> character in the string by reference. +// Return the <slot'th> character in the string by reference. ACE_INLINE char & -ACE_CString::operator[] (size_t index) +ACE_CString::operator[] (size_t slot) { ACE_TRACE ("ACE_CString::operator[]"); - return this->rep_[index]; + return this->rep_[slot]; } // Get a copy of the underlying representation. @@ -340,22 +340,22 @@ ACE_SString::substr (size_t offset, return this->substring (offset, length); } -// Return the <index'th> character in the string. +// Return the <slot'th> character in the string. ACE_INLINE char -ACE_SString::operator[] (size_t index) const +ACE_SString::operator[] (size_t slot) const { ACE_TRACE ("ACE_SString::operator[]"); - return this->rep_[index]; + return this->rep_[slot]; } -// Return the <index'th> character in the string by reference. +// Return the <slot'th> character in the string by reference. ACE_INLINE char & -ACE_SString::operator[] (size_t index) +ACE_SString::operator[] (size_t slot) { ACE_TRACE ("ACE_SString::operator[]"); - return this->rep_[index]; + return this->rep_[slot]; } // Get the underlying pointer (does not make a copy, so beware!). @@ -603,22 +603,22 @@ ACE_WString::compare (const ACE_WString &s) const this->len_ * sizeof (ACE_USHORT16)); } -// Return the <index'th> character in the string. +// Return the <slot'th> character in the string. ACE_INLINE ACE_USHORT16 -ACE_WString::operator[] (size_t index) const +ACE_WString::operator[] (size_t slot) const { ACE_TRACE ("ACE_WString::operator[]"); - return this->rep_[index]; + return this->rep_[slot]; } -// Return the <index'th> character in the string. +// Return the <slot'th> character in the string. ACE_INLINE ACE_USHORT16 & -ACE_WString::operator[] (size_t index) +ACE_WString::operator[] (size_t slot) { ACE_TRACE ("ACE_WString::operator[]"); - return this->rep_[index]; + return this->rep_[slot]; } ACE_INLINE int |