@Override
	public void optionsChanged(Options options, Program program) {

		minStringLength = options.getInt(OPTION_NAME_MIN_STRING_LENGTH, minStringLength);
		switchTableAlignment = options.getInt(OPTION_NAME_SWITCH_ALIGNMENT, switchTableAlignment);
		minimumAddressTableSize =
			options.getInt(OPTION_NAME_MINIMUM_TABLE_SIZE, minimumAddressTableSize);

		asciiEnabled = options.getBoolean(OPTION_NAME_ASCII, asciiEnabled);
		unicodeEnabled = options.getBoolean(OPTION_NAME_UNICODE, unicodeEnabled);
		alignStringsEnabled = options.getBoolean(OPTION_NAME_ALIGN_STRINGS, alignStringsEnabled);
		pointerEnabled = options.getBoolean(OPTION_NAME_POINTER, pointerEnabled);
		relocationGuideEnabled =
			options.getBoolean(OPTION_NAME_RELOCATION_GUIDE, relocationGuideEnabled);
		subroutinesEnabled = options.getBoolean(OPTION_NAME_SUBROUTINE, subroutinesEnabled);
		addressTablesEnabled = options.getBoolean(OPTION_NAME_ADDRESS_TABLE, addressTablesEnabled);
		switchTableEnabled = options.getBoolean(OPTION_NAME_SWITCH, switchTableEnabled);
		respectExecuteFlags =
			options.getBoolean(OPTION_NAME_RESPECT_EXECUTE_FLAG, respectExecuteFlags);
	}
getWStrLen

@param memory program memory to check
@param ad address where unicode string is supposed to begin
@return number of unicode chars in string, -1 if not
a unicode string.  NOTE: Only English strings are considered.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/OperandReferenceAnalyzer.java