In C++, I have an array of integers which I want to visualize, which elements are like this:
[0] <range 1 start, e.g. 1253>
[1] <range 1 end, e.g. 1320>
[2] <range 2 start, e.g. 1852>
[3] <range 2 end, e.g. 2528>
...
[n] 0
So, I'd like to visualize it to have custom representation, where each visualized item would be like [0] <1253-1320>
; [1] <1852-2528>
etc.
Currently, I have this (not giving me the desired result):
<CustomListItems>
<Variable Name='pCurRange' InitialValue='m_pWhichRanges'/>
<Variable Name='i' InitialValue='0'/>
<Loop Condition='*pCurRange'>
<Item Name='[{i,d}] begin'>*pCurRange</Item>
<Item Name='[{i,d}] end'>*(pCurRange+1)</Item>
<Exec>pCurRange+=2</Exec>
<Exec>++i</Exec>
</Loop>
</CustomListItems>
But I'd like each item to be like this (in DisplayString syntax):
<Item>{*pCurRange} - {*(pCurRange+1)}</Item>
As the contents of the item element cannot be this, I seem to be unable to do that. Also, I don't see a way to define a string (or char array) variable in the visualizer, and construct it before the Item element - above all, there are no string modifier intrinsics available to visualisers. And doing it in the item's Name attribute isn't an option, because I need that in Value column.
Can that be done in some way?
Edit: this is the request for what is required to implement my desired view.