The CRfcString Class 

Class Summary

The CRfcString class is defined in CRfcStrn.h.

The CRfcString class contains some basic string operations as well as functions for padding or unpadding a string with spaces.

Construction

CRfcString

Constructor from a character string

CRfcString (Copy Constructor)

Copy constructor

CRfcString (from a CRfcData object)

Constructor from a CRfcData object

CRfcString (with Padding)

Constructor from a character string to be padded with spaces for a designated length

Operations

Clear

Clears out the string buffer

Find

Finds the first occurrence of the given character in this CRfcString object.

GetCapitalize

Gets the flag in the object indicating automatic capitalization

GetLength

Gets true length of the string, without padded spaces

GetPaddedLength

Gets length of the string with padded spaces

GetPaddedString

Gets a string padded with spaces

operator

Retrieves or sets the character value in the CRfcString by index

operator CSTR

Gets the unpadded string stored in the object

operator= (String object)

Assignment from a CRfcString object

operator= (String)

Assignment from a string

operator != (CRfcString object)

Compares to the contents of another CRfcString object for inequality.

operator != (character array)

Compares to the contents of a character array for inequality.

operator += (CRfcString object)

Concatenates the content of this and another CRfcString object and stores the result in this CRfcString object.

operator += (character array)

Concatenates the content of this CRfcString object and a character array, and stores the result in this CRfcString object.

operator == (CRfcString object)

Compares to the contents of another CRfcString object for equality.

operator == (character array)

Compares to the contents of a character array for equality.

operator >= (CRfcString object)

Compares lexigraphically to the contents of another CRfcString object for ‚greater than‘.

operator >= (character array)

Compares lexigraphically the contents of this CRfcSting object to the contents of a character array for ‚greater than.

SetCapitalize

Sets the capitalization flag

Substr (with starting position)

Obtains a CRfcString object whose content is the substring of this CRfcString object starting with the character at the given index and extends to the end

Substr (with starting position and length)

Obtains a CRfcString object whose content is the substring of this CRfcString object starting with the character at the given index and extends to the end

ToUpper

Converts all lower-case alphabetical characters to upper-case