AsciiEscapeBase enumeration
Selects the number base of the digits in an ASCII escape sequence.
AsciiEscapeBase is used by the base parameter of EscapeSequence.Create and by the AsciiBase property. It matters only for an escape sequence created with isAsciiReplacement set to True. The enumeration is declared in the EscapeSequence class module, and its members are used without a qualifier or with the name AsciiEscapeBase.
| Constant | Value | Description |
|---|---|---|
| Octal | 0 | The digits that the escape’s pattern captures are octal. The package reads them with the prefix &O. This is the default. |
| Hexadecimal | 1 | The digits that the escape’s pattern captures are hexadecimal. The package reads them with the prefix &H. |
Debug.Print AsciiEscapeBase.Octal ' 0
Debug.Print AsciiEscapeBase.Hexadecimal ' 1
Debug.Print Hexadecimal ' 1
StringHelper registers \xHH as a Hexadecimal escape and \ooo as an Octal one.
See Also
- EscapeSequence class – one escape sequence
- Create method – creates an escape sequence with a base
- AsciiBase property – returns the base of an escape sequence
- Fmt package – overview, with the table of escape sequences