HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/hamcrest/library/text/__pycache__/stringcontainsinorder.cpython-38.pyc
U

�b�V��@sHdZdZdZddlmZddlmZddlZGdd�de�Zd	d
�Z	dS)zRomilly CockingzCopyright 2011 hamcrest.orgzBSD, see License.txt�)�BaseMatcher)�	hasmethodNc@s$eZdZdd�Zdd�Zdd�ZdS)�StringContainsInOrdercGs0|D] }t|tj�st|jjd��q||_dS)Nz requires string arguments)�
isinstance�sixZstring_types�	TypeError�	__class__�__name__�
substrings)�selfr
�	substring�r
�M/usr/lib/python3/dist-packages/hamcrest/library/text/stringcontainsinorder.py�__init__s�zStringContainsInOrder.__init__cCs<t|d�sdSd}|jD]}|�||�}|dkrdSqdS)N�findFr���T)rr
r)r�itemZ
from_indexrr
r
r�_matchess

zStringContainsInOrder._matchescCs|�ddd|j�dS)Nza string containing z, z	 in order)Zappend_listr
)rZdescriptionr
r
r�describe_tos
�z!StringContainsInOrder.describe_toN)r	�
__module__�__qualname__rrrr
r
r
rr
s
rcGst|�S)aMatches if object is a string containing a given list of substrings in
    relative order.

    :param string1,...:  A comma-separated list of strings.

    This matcher first checks whether the evaluated object is a string. If so,
    it checks whether it contains a given list of strings, in relative order to
    each other. The searches are performed starting from the beginning of the
    evaluated string.

    Example::

        string_contains_in_order("bc", "fg", "jkl")

    will match "abcdefghijklm".

    )r)r
r
r
r�string_contains_in_order"sr)
�
__author__Z
__copyright__Z__license__Zhamcrest.core.base_matcherrZhamcrest.core.helpers.hasmethodrrrrr
r
r
r�<module>s