url.natvis 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  3. <!--
  4. -->
  5. <Type Name="boost::urls::authority_view" Inheritable="true">
  6. <DisplayString>{ u_ }</DisplayString>
  7. <Expand>
  8. <ExpandedItem>u_</ExpandedItem>
  9. </Expand>
  10. </Type>
  11. <Type Name="boost::urls::ipv4_address">
  12. <DisplayString>{(addr_>>24)}.{(addr_>>16)%256}.{(addr_>>8)%256}.{addr_%256}</DisplayString>
  13. </Type>
  14. <Type Name="boost::urls::decode_view">
  15. <DisplayString Condition="dn_==n_">{p_,[n_]s}</DisplayString>
  16. <DisplayString Condition="dn_!=n_">{p_,[n_]s} ({dn_})</DisplayString>
  17. </Type>
  18. <Type Name="boost::urls::param">
  19. <DisplayString Condition="! has_value">{key}</DisplayString>
  20. <DisplayString Condition="has_value">{key}={value}</DisplayString>
  21. </Type>
  22. <Type Name="boost::urls::param_view">
  23. <DisplayString Condition="! has_value">{key}</DisplayString>
  24. <DisplayString Condition="has_value">{key}={value}</DisplayString>
  25. </Type>
  26. <Type Name="boost::urls::param_pct_view">
  27. <DisplayString Condition="! has_value">{key}</DisplayString>
  28. <DisplayString Condition="has_value">{key}={value}</DisplayString>
  29. </Type>
  30. <Type Name="boost::urls::pct_string_view">
  31. <DisplayString Condition="dn_ != s_.n_">{s_} ({dn_})</DisplayString>
  32. <DisplayString>{s_}</DisplayString>
  33. </Type>
  34. <Type Name="boost::urls::detail::url_impl">
  35. <DisplayString>{cs_,[offset_[id_end]]s}</DisplayString>
  36. <Expand>
  37. <Synthetic Name="scheme" Condition="scheme_!=scheme::none">
  38. <DisplayString>{cs_,[offset_[id_user]-1]s} {scheme_}</DisplayString>
  39. </Synthetic>
  40. <Synthetic Name="user" Condition="from_ != 2 &amp;&amp; offset_[id_pass]-offset_[id_user]>2">
  41. <DisplayString>{cs_+offset_[id_user]+2,[offset_[id_pass]-offset_[id_user]-2]s} ({decoded_[id_user]})</DisplayString>
  42. </Synthetic>
  43. <Synthetic Name="user" Condition="from_ == 2 &amp;&amp; offset_[id_pass]-offset_[id_user]>0">
  44. <DisplayString>{cs_+offset_[id_user],[offset_[id_pass]-offset_[id_user]]s} ({decoded_[id_user]})</DisplayString>
  45. </Synthetic>
  46. <Synthetic Name="pass" Condition="offset_[id_host]-offset_[id_pass]>=2">
  47. <DisplayString>{cs_+offset_[id_pass]+1,[offset_[id_host]-offset_[id_pass]-2]s} ({decoded_[id_pass]})</DisplayString>
  48. </Synthetic>
  49. <Synthetic Name="host" Condition="from_ == 2 || offset_[id_pass]-offset_[id_user]>=2">
  50. <DisplayString Condition="host_type_==host_type::none">{host_type_}</DisplayString>
  51. <DisplayString Condition="host_type_!=host_type::none">{cs_+offset_[id_host],[offset_[id_port]-offset_[id_host]]s}</DisplayString>
  52. </Synthetic>
  53. <Synthetic Name="port" Condition="offset_[id_path]-offset_[id_port]>=1">
  54. <DisplayString>{cs_+offset_[id_port]+1,[offset_[id_path]-offset_[id_port]-1]s} = {port_number_}</DisplayString>
  55. </Synthetic>
  56. <Synthetic Name="path" Condition="from_ != 2">
  57. <DisplayString>{cs_+offset_[id_path],[offset_[id_query]-offset_[id_path]]s}</DisplayString>
  58. </Synthetic>
  59. <Synthetic Name="query" Condition="offset_[id_frag]-offset_[id_query]>=1">
  60. <DisplayString>{cs_+offset_[id_query]+1,[offset_[id_frag]-offset_[id_query]-1]s}</DisplayString>
  61. </Synthetic>
  62. <Synthetic Name="frag" Condition="offset_[id_end]-offset_[id_frag]>=1">
  63. <DisplayString>{cs_+offset_[id_frag]+1,[offset_[id_end]-offset_[id_frag]-1]s})</DisplayString>
  64. </Synthetic>
  65. </Expand>
  66. </Type>
  67. <Type Name="boost::urls::url_view_base" Inheritable="true">
  68. <DisplayString>{*pi_}</DisplayString>
  69. <Expand>
  70. <ExpandedItem>*pi_</ExpandedItem>
  71. </Expand>
  72. </Type>
  73. <Type Name="boost::urls::grammar::range&lt;*&gt;">
  74. <DisplayString>{s_} [{n_}]</DisplayString>
  75. </Type>
  76. <Type Name="boost::urls::grammar::recycled_ptr&lt;*&gt;">
  77. <DisplayString Condition="p_ == nullptr">nullptr</DisplayString>
  78. <DisplayString>{p_->t}</DisplayString>
  79. <Expand>
  80. <Synthetic Name="[refs]" Condition="p_ != nullptr">
  81. <DisplayString>{p_->refs}</DisplayString>
  82. </Synthetic>
  83. </Expand>
  84. </Type>
  85. </AutoVisualizer>