+
     Gi*  c                   sD    ^ RI t ^RIHt  ! R R]P                  4      tR# )i    N)basec                   sB   a a ] tR t^t oRtV 3R ltV 3R ltRtVtV ;t	# )regex_search_ternaryz
Ternary regex operator, it takes arguments in the following form
STR1, REGEX, STR2, STR3
If REGEX matches STR1 (re.search is used), STR2 is returned,
otherwise STR3 is returned
c                s2   < \         \        V `  R ^^4       R# )r   N)superr   __init__)self	__class__s   &[/usr/lib/python3.14/site-packages/tuned/profiles/functions/function_regex_search_ternary.pyr   Zregex_search_ternary.__init__   s    d,-CQJ    c                s   < \         \        V `  V4      '       g   R # \        P                  ! V^,          V^ ,          4      '       d
   V^,          # V^,          # )N)r   r   executereZsearch)r   Zargsr   s   &&r   r   Zregex_search_ternary.execute   sD    	#T	24	8	8
YYtAwQ  
q'>
q'>r    )
Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r   Z__static_attributes__Z__classdictcell__Z__classcell__)r   Z__classdict__s   @@r   r   r      s     K r   r   )r	   Z r    ZFunctionr   r
   r   r   <module>r      s    	 4== r   