Home How To Online Documentation Support Download Order






Enums and Typedefs



Class Members



SAString( );

SAString(const SAString& stringSrc );

SAString(SAChar ch , size_t nRepeat=1);

SAString(const char * lpsz );

SAString(const wchar_t * lpsz );

SAString(const char * lpch, size_t nLength );

SAString(const wchar_t * lpch, size_t nLength );

SAString(const unsigned char * psz );

SAString(const void * pBuffer, size_t nLengthInBytes );


stringSrc.    An existing SAString object to be copied into this SAString object.

ch.    A single character to be repeated nRepeat times.

nRepeat.    The repeat count for ch.

lpsz .    A null-terminated string to be copied into this SAString object.

lpch.    A pointer to an array of characters of length nLength, not null-terminated.

nLength.    A count of the number of characters in lpch.

psz .    A null-terminated string to be copied into this SAString object.

pBuffer.    A pointer to a binary data buffer to be copied into this SAString object.

nLengthInBytes.    A length of pBuffer in bytes.


Each of these constructors initializes a new SAString object with the specified data.

Because the constructors copy the input data into new allocated storage, you should be aware that memory exceptions may result. Note that some of these constructors act as conversion functions. This allows you to substitute, for example, an const char* where a SAString object is expected. 

Several forms of the constructor have special purposes:

  • SAString( const char * lpsz )   Constructs a SAString from an ANSI (multibyte) string.

  • SAString( const wchar_t * lpsz )   Constructs a SAString from a Unicode string.

  • SAString( const unsigned char* psz )   Allows you to construct a SAString from a pointer to unsigned char.

Server specific notes

No specific information.

See also

operator =

Problems and Questions

If you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com.