Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internationalization Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWUSubString

Module:  Internationalization Module   Group:  Unicode String Processing


Does Not Inherit

Local Index

Members

Non-Members

Header File

#include <rw/i18n/RWUSubString.h> 

Description

RWUSubString allows read-write access to a range of code units within a referenced RWUString. The range is defined by a starting position and an length within the referenced string. For example, the 7th through the 11th elements, inclusive, would have a starting position of 7 and an extent of 5.

There are no public constructors. RWUSubStrings are constructed by various functions of the RWUString class. Typically, substrings are created and used anonymously, then destroyed immediately.

RWUSubString performs bounds checking in all methods that accept an offset value. These methods throw an RWBoundsErr exception if an offset exceeds the current bounds of the substring.

Example

Public Constructors

RWUSubString(const RWUSubString& source);

Global Operators

RW_SL_IO_STD(ostream&)
operator<<(RW_SL_IO_STD(ostream&) os,
           const RWUSubString& ustr);
RW_SL_IO_STD(istream&)
operator>>(RW_SL_IO_STD(istream&) is, RWUSubString& ustr);
bool
operator<(const RWUChar16* lhs, const RWUSubString& rhs);
bool
operator<(const RWUSubString& lhs, const RWUChar16* rhs);
bool
operator<(const RWUChar32* lhs, const RWUSubString& rhs);
bool
operator<(const RWUSubString& lhs, const RWUChar32* rhs);
bool
operator<(const RWUSubString& lhs, const RWUSubString& rhs);
bool
operator<(const RWBasicUString& lhs, const RWUSubString& rhs);
bool
operator<(const RWUSubString& lhs, const RWBasicUString& rhs);
bool
operator<=(const RWUChar16* lhs, const RWUSubString& rhs);
bool
operator<=(const RWUSubString& lhs, const RWUChar16* rhs);
bool
operator<=(const RWUChar32* lhs, const RWUSubString& rhs);
bool
operator<=(const RWUSubString& lhs, const RWUChar32* rhs);
bool
operator<=(const RWUSubString& lhs, const RWUSubString& rhs);
bool
operator<=(const RWBasicUString& lhs,
           const RWUSubString& rhs);
bool
operator<=(const RWUSubString& lhs,
           const RWBasicUString& rhs);
bool
operator==(const RWUChar16* lhs, const RWUSubString& rhs);
bool
operator==(const RWUSubString& lhs, const RWUChar16* rhs);
bool
operator==(const RWUChar32* lhs, const RWUSubString& rhs);
bool
operator==(const RWUSubString& lhs, const RWUChar32* rhs);
bool
operator==(const RWUSubString& lhs, const RWUSubString& rhs);
bool
operator==(const RWBasicUString& lhs,
           const RWUSubString& rhs);
bool
operator==(const RWUSubString& lhs,
           const RWBasicUString& rhs);
bool
operator!=(const RWUChar16* lhs, const RWUSubString& rhs);
bool
operator!=(const RWUSubString& lhs, const RWUChar16* rhs);
bool
operator!=(const RWUChar32* lhs, const RWUSubString& rhs);
bool
operator!=(const RWUSubString& lhs, const RWUChar32* rhs);
bool
operator!=(const RWUSubString& lhs, const RWUSubString& rhs);
bool
operator!=(const RWBasicUString& lhs,
           const RWUSubString& rhs);
bool
operator!=(const RWUSubString& lhs,
           const RWBasicUString& rhs);
bool
operator>=(const RWUSubString& lhs, const RWUChar16* rhs);
bool
operator>=(const RWUChar16* lhs, const RWUSubString& rhs);
bool
operator>=(const RWUSubString& lhs, const RWUChar32* rhs);
bool
operator>=(const RWUChar32* lhs, const RWUSubString& rhs);
bool
operator>=(const RWUSubString& lhs, const RWUSubString& rhs);
bool
operator>=(const RWBasicUString& lhs,
           const RWUSubString& rhs);
bool
operator>=(const RWUSubString& lhs,
           const RWBasicUString& rhs);
bool
operator>(const RWUChar16* lhs, const RWUSubString& rhs);
bool
operator>(const RWUSubString& lhs, const RWUChar16* rhs);
bool
operator>(const RWUChar32* lhs, const RWUSubString& rhs);
bool
operator>(const RWUSubString& lhs, const RWUChar32* rhs);
bool
operator>(const RWUSubString& lhs, const RWUSubString& rhs);
bool
operator>(const RWBasicUString& lhs, const RWUSubString& rhs);
bool
operator>(const RWUSubString& lhs, const RWBasicUString& rhs);

Public Member Operators

RWUChar16
operator[](size_t offset) const; 
RWUChar16&
operator[](size_t offset);
RWUChar16
operator()(size_t offset) const; 
RWUChar16&
operator()(size_t offset); 
RWUSubString&
operator=(const RWBasicUString& source); 
RWUSubString&
operator=(const RWUSubString& source);
RWUSubString&
operator=(const RWUConstSubString& source);
RWUSubString&
operator=(const RWUChar16* source);
RWUSubString&
operator=(const RWUChar32* source);
RWUSubString&
operator=(RWUChar16 codeUnit);
RWUSubString&
operator=(RWUChar32 codePoint);

Public Member Functions

size_t
boundsCheckIndex(size_t offset) const;
const RWUChar16*
data() const;
bool
isNull() const;
size_t
length() const; 
size_t
start() const; 


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.