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

RWDBMBString

Module:  DB Interface Module   Group:  Data Type


RWDBMBString RWCString

Local Index

Members

Synopsis

#include <rw/db/mbstring.h>
RWDBMBString a;

Description

Some databases require different handling of single byte character sets (SBCS), like ASCII or ISO Latin-1, and multibyte character sets (MBCS). Writing applications using class RWDBMBString for MBCS strings and class RWCString for SBCS strings allows the DB Interface Module to make the critical differentiation.

RWDBMBString derives publicly from RWCString, such that all the facilities and functions of RWCString are available. For a complete description of those functions, see the Essential Tools Module documentation for class RWCString.

We recommend that you do not derive from RWDBMBString.

Persistence

Simple

Example

Oracle treats multibyte and single byte strings differently. If aDB represents an Oracle database and the proper character set is loaded on the machine, the output is:

Sybase does not differentiate multibyte and single byte strings. If aDB represents a Sybase database and the proper character set is loaded on the machine, the output is:

Public Constructors

RWDBMBString(const RWDBMBString& str);
RWDBMBString();
RWDBMBString(const char* cs);
RWDBMBString(const char* cs, size_t N);
RWDBMBString(RWSize_T ic);
RWDBMBString(const RWCString& str);
RWDBMBString(const RWCSubString& ss);
RWDBMBString(char c);
RWDBMBString(char c, size_t N);

Assignment Operators

RWDBMBString&
operator=(const char* cs);
RWDBMBString&
operator=(const RWCString& str);
RWDBMBString&
operator=(const RWDBMBString& str);


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.