PageRenderTime 127ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 59ms app.codeStats 6ms

/autoexp.dat

http://github.com/mozy/mordor
Unknown | 71 lines | 68 code | 3 blank | 0 comment | 0 complexity | b70c4294ba879b4d576333f91af3aabc MD5 | raw file
 1; Add to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\autoexp.dat in the [Visualizer] section
 2; The visualizer isn't perfect - it uses ; instead of :, and , instead of / between path segments
 3; Also, it doesn't perform any encoding
 4
 5Mordor::URI{
 6	preview (
 7		#(
 8			#if ($e.m_schemeDefined) ( #(
 9				#if (($e.m_scheme._Myres) < ($e.m_scheme._BUF_SIZE)) ( [$e.m_scheme._Bx._Buf,sb] ) #else ( [$e.m_scheme._Bx._Ptr,sb] ),
10				";")
11			) #else ( "" ),
12			#if ($e.authority.m_hostDefined) ( #("//", $e.authority) ) #else ( "" ),
13			#if ($e.path.segments._Myfirst != $e.path.segments._Mylast) ( $e.path ) #else ( "" ),
14			#if ($e.m_queryDefined) ( #(
15				"?",
16				#if (($e.m_query._Myres) < ($e.m_query._BUF_SIZE)) ( [$e.m_query._Bx._Buf,sb] ) #else ( [$e.m_query._Bx._Ptr,sb] ))
17			) #else ( "" ),
18			#if ($e.m_fragmentDefined) ( #(
19				"#",
20				#if (($e.m_fragment._Myres) < ($e.m_fragment._BUF_SIZE)) ( [$e.m_fragment._Bx._Buf,sb] ) #else ( [$e.m_fragment._Bx._Ptr,sb] ))
21			) #else ( "" )
22		)
23	)
24	children (
25		#(
26			#if ($e.m_schemeDefined) ( #(scheme: $e.m_scheme) ) #else ( #array(expr: 0, size: 0) ),
27			#if ($e.authority.m_hostDefined) ( #(authority: $e.authority) ) #else ( #array(expr: 0, size: 0) ),
28			#if ($e.path.segments._Myfirst != $e.path.segments._Mylast) ( #(path: $e.path) ) #else ( #array(expr: 0, size: 0) ),
29			#if ($e.m_queryDefined) ( #(query: $e.m_query) ) #else ( #array(expr: 0, size: 0) ),
30			#if ($e.m_fragmentDefined) ( #(fragment: $e.m_fragment) ) #else ( #array(expr: 0, size: 0) ),
31			#(Actual Members: [$e,!])
32		)
33	)
34}
35
36Mordor::URI::Authority{
37	preview (
38		#(
39			#if ($e.m_userinfoDefined) ( #( #if (($e.m_userinfo._Myres) < ($e.m_userinfo._BUF_SIZE)) ( [$e.m_userinfo._Bx._Buf,sb] ) #else ( [$e.m_userinfo._Bx._Ptr,sb] ), "@") ) #else ( "" ),
40			#if ($e.m_hostDefined) ( #if (($e.m_host._Myres) < ($e.m_host._BUF_SIZE)) ( [$e.m_host._Bx._Buf,sb] ) #else ( [$e.m_host._Bx._Ptr,sb] ) ) #else ( "" ),
41			#if ($e.m_portDefined) ( #( ";", $e.m_port) ) #else ( "" )
42		)
43	)
44	children (
45		#(
46			#if ($e.m_userinfoDefined) ( #( userinfo: $e.m_userinfo) ) #else ( #array(expr: 0, size: 0) ),
47			#if ($e.m_hostDefined) ( #( host: $e.m_host) ) #else ( #array(expr: 0, size: 0) ),
48			#if ($e.m_portDefined) ( #( port: $e.m_port) ) #else ( #array(expr: 0, size: 0) ),
49			#(Actual Members: [$e,!])
50		)
51	)
52}
53
54Mordor::URI::Path{
55	preview (
56		#if ($e.segments._Myfirst == $e.segments._Mylast) (
57			""
58		) #else (
59			#array(
60				expr:
61					;[$e.segments._Myfirst[$i],
62					#if ((($e.segments._Myfirst[$i])._Myres) < (($e.segments._Myfirst[$i])._BUF_SIZE)) (
63						[($e.segments._Myfirst[$i])._Bx._Buf,sb]
64					) #else (
65						[($e.segments._Myfirst[$i])._Bx._Ptr,sb]
66					),
67				size: $e.segments._Mylast - $e.segments._Myfirst
68			)
69		)
70	)
71}