Expression format specifier support #73

Closed
opened 2025-08-09 17:13:15 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @adelphes on 4/24/2020

Adds support for appending format specifiers in repl and watch expressions, as defined in https://docs.microsoft.com/en-us/visualstudio/debugger/format-specifiers-in-cpp

Supported specifiers include:

  • ,d: decimal
  • ,o: octal (with leading 0)
  • ,x: hex (lowercase a-f with and 0x prefix)
  • ,X: hex (uppercase A-F with and 0x prefix)
  • ,xb: hex (lowercase a-f, no prefix)
  • ,Xb: hex (uppercase A-F, no prefix)
  • ,b: binary (with 0b prefix)
  • ,bb: binary (no prefix)
  • ,c: character
  • ,sb: string (no surrounding quotes)
  • ,!: string (raw - no escaped characters)
*Originally created by @adelphes on 4/24/2020* Adds support for appending format specifiers in repl and watch expressions, as defined in https://docs.microsoft.com/en-us/visualstudio/debugger/format-specifiers-in-cpp Supported specifiers include: - `,d`: decimal - `,o`: octal (with leading 0) - `,x`: hex (lowercase a-f with and 0x prefix) - `,X`: hex (uppercase A-F with and 0x prefix) - `,xb`: hex (lowercase a-f, no prefix) - `,Xb`: hex (uppercase A-F, no prefix) - `,b`: binary (with 0b prefix) - `,bb`: binary (no prefix) - `,c`: character - `,sb`: string (no surrounding quotes) - `,!`: string (raw - no escaped characters)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/android-dev-ext#73
No description provided.