All of the ToString() functions take an input data value and convert it to a string. The string is stored in a user-supplied data buffer with a specified max size. All data types except C8Bool require a conversion format.
To use the Sybase CEP default format, pass NULL as the format argument. You are responsible for supplying the buffer to save the output.
If conversion is successful, the function returns C8_TRUE. If conversion is unsuccessful, then the function returns C8_FALSE; the content of the output buffer is undefined; and the Sybase CEP Engine log will contain an error message. If the output buffer is too short, the output string is silently truncated and C8_FALSE is returned.
Parameters:
i_value: The value to convert to a string.
format: A format specifier indicating the desired format of the resulting string value.
o_buf: The location into which to store the string. The user must have allocated enough memory to hold the desired string beforehand.
o_buf_size: The length of the buffer.
Returns: C8_TRUE on success, C8_FALSE otherwise.
Parameters:
i_value: The value to convert.
format: The format specifier indicating the desired format of the resulting string value.
o_buf: The location in which to store the string. Allocate the required memory to hold the desired string beforehand.
o_buf_size: The length of the buffer.
Returns: C8_TRUE on success, C8_FALSE otherwise.
Parameters:
i_value: The value to convert.
o_buf: The location in which to store the string. Allocate the required memory to hold the desired string beforehand.
o_buf_size: The length of the buffer.
Returns: C8_TRUE on success, C8_FALSE otherwise.
Parameters:
i_value: The value to convert.
i_format : A format specifier indicating the desired format of the resulting string value, for example, "YYYY-MM-DD HH24:MI:SS.FF". If the format parameter is a null pointer, the output is in microseconds. To specify another format, please refer to the Sybase CEP CCL Reference Guide 's description of valid formats for TIMESTAMP data type. If the time zone is not specified, the format will default to using local time.
o_buf: The location in which to store the string. Allocate the required memory to hold the desired string beforehand.
o_buf_size: The length of the buffer.
Returns: C8_TRUE on success, C8_FALSE otherwise.
Parameters:
i_value: The value to convert.
i_format: A format specifier indicating the desired format of the resulting string value, for example, "YYYY-MM-DD HH24:MI:SS.FF". If the format parameter is a null pointer, then the output is in microseconds.
i_timezone: The timezone abbreviation, for example, "PST" for Pacific Standard Time.
o_buf: The location in which to store the string. Allocate the required memory to hold the desired string beforehand.
o_buf_siz: The length of the buffer.
Returns: C8_TRUE on success, C8_FALSE otherwise.
Parameters:
i_value: The value to convert.
i_format: A format specifier indicating the desired format of the resulting string value.
o_buf: The location in which to store the string. Allocate the required memory to hold the desired string beforehand.
o_buf_size: The length of the buffer.
Returns: C8_TRUE on success, C8_FALSE otherwise.
Parameters:
i_value: The value to convert.
i_format: A format specifier indicating the desired format of the resulting string value.
o_buf: The location in which to store the string. Allocate the required memory to hold the desired string beforehand.
o_buf_siz: The length of the buffer.
Returns: C8_TRUE on success, C8_FALSE otherwise.
Note that since strings are limited to 2^32 bytes on many platforms, the longest Blob you can convert to a hex string on those platforms is 2^31 - 1 bytes. Blobs that are 2GB or longer cannot be converted.
C8SizeType is typedef'd in c8types.h.
Parameters:
i_value: The value to convert.
i_blob_size: The number of bytes in the raw BLOB.
o_buf: The location in which to store the string. Allocate the required memory to hold the desired string beforehand.
i_buf_size: The length of the buffer.
Returns: C8_TRUE on success, C8_FALSE otherwise.