Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Case sensitivity

&pagelevel(4)&pagelevel

The @SEARCH-OPTION statement can be used to define whether a distinction should be made between uppercase/lowercase when searching for strings with the @ON statement. By default, searches are case-sensitive. If no distinction is to be made between uppercase/lowercase then the search term and search area are temporarily converted from lowercase to uppercase when the statement is executed.

The conversion is performed using the interface provided by XHCS. When lowercase/uppercase conversion is performed, the lengths of the strings do not change irrespective of the specified character set.

Example

@SEARCH-OPTION CASELESS-
SEARCH=OFF



@ON & C'suCH' TO 'SUCH'

The uppercase/lowercase notation of a character is
taken into consideration during the search. This
corresponds to the default setting of the @SEARCH-
OPTION statement.

Only the string ' suCH ' is converted into 'SUCH'.
Strings of the form 'such' or 'sucH' are not converted.

@SEARCH-OPTION CASELESS-
SEARCH=ON

@ON & C'suCH' TO 'SUCH'

Uppercase/lowercase notation is not taken into
consideration during the search.

All 'such' strings in all possible case variations are
converted into 'SUCH'.

The CASELESS-SEARCH setting only applies to formats 1 to 3 and 5 to 10.
In format 4 it is not relevant since searches in this format are only conducted for marked lines.