+
    eiz  c                   s    ^ RI t ^ RIt^RIHt  ! R R]P
                  4      t ! R R]P
                  4      t ! R R]P
                  4      tR# )	    N)utilc                   s   a  ] tR t^t o ]P
                  ! RRRR4      .t]P                  P                  R 4       t
RtV tR# )
TestStringtestssrcstringzchar.f90c                s    \         P                  ! . RORR7      P                  pV P                  P                  P                  WP                  ^,          4      w  r#VP                  4       pRVR&   R# )abc)ZdtypeZAAAN)r   ZcdZef)i   :NNN)nparrayZTmoduleZ	char_testZchange_stringsZshapeZcopy)selfZstringsZinpZoutexpected   &    C/usr/lib64/python3.14/site-packages/numpy/f2py/tests/test_string.py	test_charZTestString.test_char   sW    ((-S9;;;;((77]]1%' <<>     N)__name__
__module____qualname____firstlineno__r   getpathsourcespytestZmarkZslowr   __static_attributes____classdictcell__Z__classdict__   @r   r   r      s8     ||GUHjABG[[. .r   r   c                   sR   a  ] tR t^t o ]P
                  ! RRRR4      .tR tRtV t	R# )TestDocStringArgumentsr   r   r   zstring.fc                s    \         P                  ! R 4      p\         P                  ! R 4      p\         P                  ! R4      p\         P                  ! R4      pV P                  P                  WW44       R# )s   123  s   123N)r   r	   r
   Zfoo)r   ZaZbr   Zdr   r   test_exampleZ#TestDocStringArguments.test_example   sL    HHZ HHZ HHVHHVa#r   r   N)
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r      s&     ||GUHjABG% %r   r   c                   sv   a  ] tR t^'t o ]P
                  ! RRRR4      .t]RR l4       tRR lt	R t
R	 tR
tV tR# )TestFixedStringr   r   r   zfixed_string.f90Nc           	     s\   \        V \        P                  4      '       d   V P                  4       p M&\        V \        4      '       d   V P                  4       p Vf   \        V 4      p^ p\        V\        V\        V 4      4      4       F   pW0V,          ^
V,          ,          ,          pK"  	  V# )zwReturn the content of a string buffer as integer value.

For example:
  _sint('1234') -> 4321
  _sint('123A') -> 17321
)	Z
isinstancer   ndarrayZtobytesZstrZencodeZlenZrangeZmin)sstartendZiZjs   &&&  r   _sintZTestFixedString._sint*   s     a$$		A3
A;a&Cuc#s1v./A1AA 0r   c              #  sF  "   VR9   d-   Rx  Rx  Rx  Rx  Rx  Rx  Rx  Rx  R	x  R
x  Rx  \         P                  ! R\         P                  RR7      x  \         P                  ! R4      x  \         P                  ! R4      x  \         P                  ! R4      x  \         P                  ! R	4      x  \         P                  ! R4      x  \         P                  ! R
4      x  \         P                  ! R4      x  \         P                  ! R4      x  R# 5i)in Z1Z1234Z12345r   s    s   1s   s   1 s   1234s   12345)Zbuffers   123 Nr%   r   )r   r    Zbytes_r	   )r   intents   &&r   
_get_inputZTestFixedString._get_input>   s     VHILMIKJLLMNjjRYYs33hhsmhhuohhtnhhvhhvhhwhhx  hhx  s   DD!c                s    V P                  4        F1  pV P                  P                  V4      pV P                  V^R7      pK3  	  R# )i   r#   N)r)   r
   Ztest_in_bytes4r$   )r   r!   rr   s   &   r   test_intent_inZTestFixedString.test_intent_inU   s9    "A**1-Azz!z+H #r   c                s    V P                  R R7       FD  pV P                  V^R7      pV P                  P                  V4      pV P                  V^R7      pKF  	  R# )Zinout)r(   )r"   r*   N)r)   r$   r
   Ztest_inout_bytes4)r   r!   Zrestr+   r   r   r   test_intent_inoutZ!TestFixedString.test_intent_inout\   sO    0A::aq:)D--a0Azz!z+H 1r   r   )r    Nr'   )r   r   r   r   r   r   r   Zstaticmethodr$   r)   r,   r-   r   r   r   r   r   r   r   '   sC     ||GUH6HIJG &!.$2 2r   r   )	r   Znumpyr   r&   r   ZF2PyTestr   r   r   r   r   r   <module>r.      s>      . .%T]] %"=2dmm =2r   