Class SearchMatchKind

class ooodev.utils.kind.search_match_kind.SearchMatchKind(value)[source]

Search Match Kind

static from_str(s)[source]

Gets an SearchMatchKind instance from string.

Parameters:

s (str) – String that represents the name of an enum Name. s is case insensitive and can be CamelCase, pascal_case , snake_case, hyphen-case, normal case.

Raises:
  • ValueError – If input string is empty.

  • AttributeError – If unable to get SearchMatchKind instance.

Returns:

Enum instance.

Return type:

SearchMatchKind

FULL = 1

Full search match. Search criteria must match Exact

FULL_IGNORE_CASE = 2

Full search match. Case is ignored. Search criteria must match Exact

PARTIAL = 3

Partial match. Search criteria must be in the search result

PARTIAL_IGNORE_CASE = 4

Partial match. Case is ignored. Search criteria must be in the search result