Class RuleDataInsensitive

class ooodev.dialog.search.tree_search.RuleDataInsensitive[source]

Rule for matching a node’s data value with a case-insensitive string.

For case sensitive matching, use RuleDataCompare.

is_match(node, match_value)[source]

Gets the node’s data value and compares it with the match value.

Parameters:
  • node (XTreeNode) – Tree node to check.

  • match_value (Any) – Value to match. Must be a string to match.

Returns:

True if the node’s data value matches the match value; Otherwise, False.

Return type:

bool