+
    VBi                     `    ^ RI t ^ RIt^ RIt^RIHt ^RIHt  ! R R]P                  4      tR# )    N)open_source_file)strip_string_literalsc                   L   a  ] tR t^	t o Rt]R 4       tR tR tR t	R t
RtV tR# )TestStripLiteralsNc                >   a V3R  lp\         P                  ! RW 4      # )c                 2   < SV P                  4       ,          # N)group)matchliteralss   &I/usr/lib/python3.14/site-packages/Cython/Build/Tests/TestStripLiterals.pylookup1TestStripLiterals._rebuild_string.<locals>.lookup   s    EKKM**    z__Pyx_L[0-9]+_)resub)strippedr   r   s   &f r   _rebuild_string!TestStripLiterals._rebuild_string   s    	+ vv&99r   c           "       a  V 3R  lp. ROpV Uu. uF  q3V3NK  	  upRRRRRRRRRRRRRRRRRRRRR R!R"R#RRP                  \        ^^4       Uu. uF	  pRV R2NK  	  up4      ,           R,           3.,           pV F  w  r6S P                  VR7      ;_uu_ 4        V! W64       RRR4       VP                  4       pVP                  4       pS P                  VR7      ;_uu_ 4        V! W64       RRR4       VR,          pVR,          pS P                  VR7      ;_uu_ 4        V! W64       RRR4       K  	  V! R	R
4       R# u upi u upi   + '       g   i     L; i  + '       g   i     Ly; i  + '       g   i     EK	  ; i)$c                    < \        V 4      w  r#SP                  W4       SP                  W#4      pSP                  W4       R # r	   )r   assertEqualr   )sexpectedr   r   	recoveredselfs   &&   r   strip_equalsBTestStripLiterals.test_strip_string_literals.<locals>.strip_equals   s<    !6q!9HX0,,X@IQ*r    zf'z
{x}__Pyx_L_z{x:{width}}__Pyx_L251_')codeN
z( print("Say something: %s' % something) z print("__Pyx_L1_)r   abc123z	func(123)z '' z '''''''''''' z '''''''''''''' )z"x"z"__Pyx_L1_")z'x''__Pyx_L1_')z	 '"' "'" z '__Pyx_L1_' "__Pyx_L2_" )z
 '''' '''  '''__Pyx_L1_''' )z
 """" """ z """__Pyx_L1_""" )z
 '''a
''' r&   )z'a\'b'r%   )z'a\\'r%   )z'a\\\'b'r%   )zu'abc'zu'__Pyx_L1_')zr'abc\\'zr'__Pyx_L1_')z	ru'abc\\'zru'__Pyx_L1_')z	abc # fooabc #__Pyx_L1_)z	abc # 'x'r'   )z'abc#'r%   )z include 'a.pxi' # something herezinclude '__Pyx_L1_' #__Pyx_L2_)z!cdef extern from 'a.h': # commentz(cdef extern from '__Pyx_L1_': #__Pyx_L2_)z4 func('xyz') + " " + "" '' # '' | "" "123" 'xyz' "' z3 func('__Pyx_L1_') + "__Pyx_L2_" + "" '' #__Pyx_L3_)z f'f' z f'__Pyx_L1_' )z f'a{123}b' z f'__Pyx_L1_{123}__Pyx_L2_' )z f'{1}{f'xyz'}' z f'{1}{f'__Pyx_L1_'}' )z f'{f'''xyz{f"""abc"""}'''}' z) f'{f'''__Pyx_L1_{f"""__Pyx_L2_"""}'''}' )z* f'{{{{{"abc"}}}}}{{}}{{' == '{{abc}}{}{' z3 f'__Pyx_L1_{"__Pyx_L2_"}__Pyx_L3_' == '__Pyx_L4_' a  f'{x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x} {x:{width}} ')joinrangesubTeststrip)r   r   	unchangedr!   ntestsr   s   f      r   test_strip_string_literals,TestStripLiterals.test_strip_string_literals   s   	+
	 +44)$)4.&&"/9H#1+@H 5BGG%3-H-Q|A3a0-HIILeegAB8
 B
H $ND4((T, )::<D~~'H4((T, )DLDH4((T, )( $ 	:#	
c 5B I )( )( )((s/   EE	<	E'	E!$	E4E!E14Fc           
        \         P                  ! R 4      P                  p\        V4       EF  pV P	                  \        VP                  V4      4      R7      ;_uu_ 4        \        \        V4      4      ;_uu_ 4       pVP                  4       pRRR4       \        X4      w  rxV! V4      p	V	'       d\   \        V	P                  ^4      4      ^8w  d=   V	P                  4       ^,           p
V P                  RWz^,
          V
^,            : 24       V P                  Wx4      pV P                  Wk4       RRR4       EK  	  R#   + '       g   i     L; i  + '       g   i     EK:  ; i)z[^_'"}](['"]+)[^_'"{])fileNzLeftover string found: )r   compilesearchsortedr*   strrelative_tor   readr   lenr
   startfailr   r   )r   base_dir
file_paths_find_leftover_string	file_pathfr!   r   r   r   	match_posr   s   &&&         r   _test_all_files!TestStripLiterals._test_all_files{   s    "

+G H O O
+I3y'<'<X'F#GHH%c)n55668D 6%:4%@"-h7SQ0A5 % 1III 7RR[^`R`8a7def 00D	  1 IH ,55 IHHs%   "E?EB"EEEE&c                    \         P                  ! \        4      P                  4       P                  ^,          pVP
                  R8X  g   Q hVP                  pV P                  W!P                  R4      4       R# )   Cython*.pyN)	pathlibPath__file__absoluteparentsnameparentrB   rglob)r   package_dirr<   s   &  r   #test_strip_string_literals_py_files5TestStripLiterals.test_strip_string_literals_py_files   s\    ll8,557??B8+++%%X'8'8'@Ar   c                   \         P                  ! \        4      P                  4       P                  ^,          pVR,          p. pVP                  4        Fn  pVP                  4       '       g   K  VP                  R8w  g   K.  VP                  VP                  R4      4       VP                  VP                  R4      4       Kp  	  V P                  W4       R# )   r.   errorsrG   z*.pyxN)rH   rI   rJ   rK   rL   iterdiris_dirrM   extendrO   rB   )r   r<   	tests_dir
test_filestest_subdirs   &    r   %test_strip_string_literals_test_files7TestStripLiterals.test_strip_string_literals_test_files   s    <<)224<<Q?w&	
$,,.K!!##(8(8H(D!!+"3"3F";<!!+"3"3G"<= / 	X2r    )__name__
__module____qualname____firstlineno__maxDiffstaticmethodr   r/   rB   rQ   r\   __static_attributes____classdictcell__)__classdict__s   @r   r   r   	   s8     G: :f
P2 B	3 	3r   r   )	rH   r   unittestUtilsr   Dependenciesr   TestCaser   r^   r   r   <module>rl      s(     	  % 0R3)) R3r   