SourcePro® 2023.1 |
SourcePro® API Reference Guide |
Exception class that reports character encoding conversion errors. More...
#include <rw/rwerr.h>
Public Member Functions | |
size_t | begin () const |
size_t | end () const |
Public Member Functions inherited from RWxmsg | |
RWxmsg (const char *msg) | |
RWxmsg (const RWxmsg &msg) | |
RWxmsg (RWxmsg &&msg) | |
RWxmsg & | operator= (const RWxmsg &) |
RWxmsg & | operator= (RWxmsg &&msg) |
virtual void | raise () const |
void | swap (RWxmsg &rhs) |
virtual const char * | why () const |
Additional Inherited Members | |
Protected Member Functions inherited from RWxmsg | |
RWxmsg (const char *msg, bool doCopy) | |
Related Functions inherited from RWxmsg | |
#define | RWTHROW(a) |
An RWConversionErr instance is used to report character encoding conversion errors produced by classes such as RWBasicUString. The begin() and end() methods may be used to extract and report the offending code unit sequence within the conversion source. The value returned by the end() method may be used as an offset for restarting the conversion at the first code unit following the bad sequence.
size_t RWConversionErr::begin | ( | ) | const |
Returns the index of the first code unit in the invalid, irregular, or truncated encoding sequence.
size_t RWConversionErr::end | ( | ) | const |
Returns the index of the last code unit in the invalid, irregular, or truncated encoding sequence.
Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |