SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWConversionErr Class Reference

Exception class that reports character encoding conversion errors. More...

#include <rw/rwerr.h>

Inheritance diagram for RWConversionErr:
RWExternalErr RWxmsg

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)
 
RWxmsgoperator= (const RWxmsg &)
 
RWxmsgoperator= (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)
 

Detailed Description

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.

Member Function Documentation

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.