5.2.1.1 Option Compare Directive
Option Compare directives determine the comparison rules used by relational operators (section 5.6.9.5) when applied to String data values (section 2.1) within a module (section 4.2). This is known as the comparison mode of the module.
-
option-compare-directive = "Option" "Compare" ( "Binary" / "Text")
Static Semantics.
If an <option-compare-directive> includes the Binary keyword (section 3.3.5.1) the comparison mode of the module is binary-compare-mode.
If an <option-compare-directive> includes the Text keyword the comparison mode of the module is text-compare-mode.
An <option-compare-directive> can occur at most once in a <procedural-module-declaration-section> or <class-module-declaration-section>.
If a <procedural-module-declaration-section> or <class-module-declaration-section> does not contain a <option-compare-directive> the comparison mode for the module is binary-compare-mode.