Dynatrace OneAgent SDK for C/C++  1.7.1.1
Classes | Typedefs
onesdk_string.h File Reference

Defines onesdk_string_t, the string type used for tracing, plus related utility functions. More...

Go to the source code of this file.

Classes

struct  onesdk_string_t
 Represents a reference to string data in a user specified encoding. More...
 

Macros

CCSID Constants

#define ONESDK_CCSID_NULL   ((onesdk_ccsid_t) 0)
 Special "NULL" CCSID value. More...
 
#define ONESDK_CCSID_ASCII   ((onesdk_ccsid_t) 367)
 CCSID value for 7 bit ASCII text.
 
#define ONESDK_CCSID_ISO8859_1   ((onesdk_ccsid_t) 819)
 CCSID value for ISO/IEC 8859-1 aka Latin-1 encoded text.
 
#define ONESDK_CCSID_UTF8   ((onesdk_ccsid_t)1209)
 CCSID value for UTF-8 encoded text.
 
#define ONESDK_CCSID_UTF16_BE   ((onesdk_ccsid_t)1201)
 CCSID value for UTF-16 Big Endian encoded text.
 
#define ONESDK_CCSID_UTF16_LE   ((onesdk_ccsid_t)1203)
 CCSID value for UTF-16 Little Endian encoded text.
 
#define ONESDK_CCSID_UTF16_NATIVE
 CCSID for UTF-16 text with the native endianness (either ONESDK_CCSID_UTF16_LE or ONESDK_CCSID_UTF16_BE).
 

Typedefs

typedef uint16_t onesdk_ccsid_t
 Used to store CCSID values.
 

Functions

String Constructors
onesdk_string_t onesdk_str (void const *data, onesdk_size_t byte_length, onesdk_ccsid_t ccsid)
 Creates a onesdk_string_t. More...
 
onesdk_string_t onesdk_bytestr (char const *data, onesdk_ccsid_t ccsid)
 Creates a onesdk_string_t for a byte string. More...
 
onesdk_string_t onesdk_asciistr (char const *data)
 Creates a onesdk_string_t for an ASCII string. More...
 
onesdk_string_t onesdk_utf8str (char const *data)
 Creates a onesdk_string_t for a UTF-8 string. More...
 
onesdk_string_t onesdk_nullstr (void)
 Creates a onesdk_string_t designating a "null string". More...
 
onesdk_string_t onesdk_wstr (wchar_t const *data)
 Creates a onesdk_string_t for a wchar_t UTF-16 string using the native endianness. More...
 

Detailed Description

Defines onesdk_string_t, the string type used for tracing, plus related utility functions.