
    9h>              
       h    S SK r S SKJr  S\S\S\4S jrS\S\S\4S	 jrS
\S\S\S\\\4   4S jrg)    N)Tupletextmatcherreturnc                 l    [        US5      n[        R                  " U5      nUR                  U 5      SL$ )a.  
Matches fully-qualified names that use dot (.) as the name boundary.

A '?' matches a single character.
A '*' matches one or more characters within a name boundary.
A '**' matches one or more characters across name boundaries.

Args:
    text (str): Text to match.
    matcher (str): The wildcard string to match against.

Returns:
    bool: True if the text matches the pattern, False otherwise.

Examples:
    >>> wildcardMatch("eve", "eve*")
    True
    >>> wildcardMatch("alice.bob.eve", "a*.bob.eve")
    True
    >>> wildcardMatch("alice.bob.eve", "a*.bob.e*")
    True
    >>> wildcardMatch("alice.bob.eve", "a*")
    False
    >>> wildcardMatch("alice.bob.eve", "a**")
    True
    >>> wildcardMatch("alice.bob.eve", "alice.bob*")
    False
    >>> wildcardMatch("alice.bob.eve", "alice.bob**")
    True
.N)_wildcard_to_regexprecompile	fullmatch)r   r   rexpatterns       uC:\Suresh\moveshuttle\MDcreated\moveengine\venv\Lib\site-packages\confluent_kafka/schema_registry/wildcard_matcher.pywildcard_matchr      s3    > gs
+CjjoGT"$..    r   	separatorc                 F   SnU R                  SU-   S-   S5      nSn[        U5      nXE:  at  X4   nUS-  nUS:X  a$  XE:  a  X4   S:X  a  US-  nUS-  nOFUSU-   S-   -  nO:US	:X  a  USU-   S
-   -  nO(US;   a	  USU-   -  nOUS:X  a  [        X#U5      u  p$OX&-  nXE:  a  Mt  U$ )N z***r      z.*z[^z]*?])	r   +{}()|^$\)replacelen_double_slashes)r   r   dstsrcisizecs          r   r	   r	   ;   s    
C
//$*S0$
7C	As8D
(F	Q8xCFcMtQti'$..#X4)#c))C??4!8OC$Y$Sq1FCHC% (& Jr   r%   r&   r'   c                 d    U S-  n US-   [        U5      :  a  U SX   -   -  n US-  nX4$ U S-  n X4$ )Nr!   r   )r#   )r%   r&   r'   s      r   r$   r$   V   sO    4KC1us3xtcf}	Q 6M 	t6Mr   )	r
   typingr   strboolr   r	   intr$    r   r   <module>r0      sk   & 
 !/ !/s !/t !/H   6	 	3 	3 	5c? 	r   