RightTrimmer Class Reference

Interface of an object to trim whitespace (spaces and tabs) off the right of some string data. Depending on the encoding, the implementation may be able to do this without any conversions or copying. More...

List of all members.

Public Member Functions

std::pair< const simba_byte
*, simba_uint32
RightTrim (SqlData &in_data)
 Right-trims the given data. (Specifically, spaces and tabs).
virtual std::pair< const
simba_byte *, simba_uint32
RightTrim (const simba_byte *in_data, simba_uint32 in_length)=0
 Right-trims the given data. (Specifically, spaces and tabs).
virtual ~RightTrimmer ()
 Virtual Destructor.

Static Public Member Functions

static AutoPtr< RightTrimmerCreateRightTrimmer (EncodingType in_encoding)
 Create a RightTrimmer for the given encoding.

Protected Member Functions

 RightTrimmer ()
 Protected default constructor to prevent direct instantiation.

Detailed Description

Interface of an object to trim whitespace (spaces and tabs) off the right of some string data. Depending on the encoding, the implementation may be able to do this without any conversions or copying.


Constructor & Destructor Documentation

virtual ~RightTrimmer (  )  [virtual]

Virtual Destructor.

RightTrimmer (  )  [inline, protected]

Protected default constructor to prevent direct instantiation.


Member Function Documentation

static AutoPtr<RightTrimmer> CreateRightTrimmer ( EncodingType  in_encoding  )  [static]

Create a RightTrimmer for the given encoding.

Parameters:
in_encoding The encoding of the data which will be used with the created RightTrimmer.
Returns:
A RightTrimmer for the given encoding.
std::pair<const simba_byte*, simba_uint32> RightTrim ( SqlData in_data  ) 

Right-trims the given data. (Specifically, spaces and tabs).

Parameters:
in_data The data to right-trim.
Returns:
A pointer-length pair of the trimmed data. May return a pointer into the SqlData, and if not, the returned pointer is valid until the next call to RightTrim or this object's destruction. (NOT OWN)
virtual std::pair<const simba_byte*, simba_uint32> RightTrim ( const simba_byte in_data,
simba_uint32  in_length 
) [pure virtual]

Right-trims the given data. (Specifically, spaces and tabs).

Parameters:
in_data The data to right-trim. (NOT OWN)
in_length The length of in_data, in bytes.
Returns:
A pointer-length pair of the trimmed data. May return a pointer into the SqlData, and if not, the returned pointer is valid until the next call to RightTrim or this object's destruction. (NOT OWN)

The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:19 2017 for SimbaEngine 10.1.3.1011 by simba