imgutils.tagging.match

tag_match_suffix

imgutils.tagging.match.tag_match_suffix(text: str, suffix: str) bool[source]

Check if a text matches a given suffix.

Parameters:
  • text (str) – The input text.

  • suffix (str) – The suffix to match.

Returns:

True if the text matches the suffix, False otherwise.

Return type:

bool

tag_match_prefix

imgutils.tagging.match.tag_match_prefix(text: str, prefix: str) bool[source]

Check if a text matches a given prefix.

Parameters:
  • text (str) – The input text.

  • prefix (str) – The prefix to match.

Returns:

True if the text matches the prefix, False otherwise.

Return type:

bool

tag_match_full

imgutils.tagging.match.tag_match_full(t1: str, t2: str) bool[source]

Check if two texts match each other fully.

Parameters:
  • t1 (str) – The first text.

  • t2 (str) – The second text.

Returns:

True if the texts match fully, False otherwise.

Return type:

bool