Using wide characters

 

Beginning with version 6.6.0, TotalView can display wide characters using normal C and C++ conventions. If you create an array of wchar_t wide characters, TotalView automatically changes the type to $wstring[n]; that is, it is displayed as a null-terminated, quoted string with a maximum length of n. For an array of wide characters, the null terminator is L'0'. Similarly, TotalView changes wchar_t* declarations to $wstring* (a pointer to a null-terminated string).

This figure shows the declaration of two wide characters in the Process Window. The Expression List Window shows how TotalView displays their data. The L in the data indicates that TotalView is displaying a wide literal.

If the wide character uses from 9 to 16 bits, TotalView displays the character using the following universal-character code representation:

\uXXXX

X represents a hexadecimal digit. If the character uses from 17 to 32 bits, TotalView uses the following representation:

\UXXXXXXXX


You can find tips that we've already sent out in our Tip Archive

Help us improve these tips!