Decimal

Qedit 5.7 for HP-UX

Home Previous Next


Decimal

Set Decimal [ ON|OFF ]

(Default: ON)

(Initially: OFF)

If you need to find nonprinting characters, you can enable the Decimal option. When this option is active, character strings in Qedit can refer to characters by giving the ASCII character code in decimal, preceded by an apostrophe:

/set decimal on    {enable entry of control codes}
/list '7           {list all lines with Bell}
/c "~" '27 all     {change "~" to Escape}

Set Decimal ON disables use of the apostrophe (') as a string delimiter, and the use of ' as part of a string in the Change command.

Whenever you use the apostrophe with Set Decimal On, you have to use a space as a delimiter between the search string and the replacement string. This means that you cannot use the abbreviated syntax, as in

/c "abc"def" all

Qedit is able to determine that "abc" is the target string and "def" is the replacement string. With Set Decimal On, the space between the target string and the replacement string is mandatory. Also, it is possible to mix ASCII code values and regular characters. Regular characters must be enclosed in another set of string delimiters. For example,

/c '27"&d@" '27"&dJ" all    { target=<ESC>&d@, replacement=<ESC>&J }
/l "abc"'13                    { target is abc<CR> }
/l '9"ColumnData"'9        { target is <tab>ColumnData<tab> }


Home Previous Next