| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/sphinx/util/__pycache__/ |
Upload File : |
a
�ab�7 � @ s� d Z ddlZddlmZ ddlmZmZmZmZm Z m
Z
mZmZ ddl
mZ ddlmZ ddlmZ ddlmZ e�e�Zeegef Ze�d �Ze�d
�Ze�d�Ze�d�Ze�d
�Ze�d�Z e�d�Z!e�d�Z"e�d�Z#e�d�Z$e�d�Z%edd�dd�Z&G dd� de'�Z(G dd� d�Z)G dd� de)�Z*G dd� de*�Z+G dd � d e)�Z,G d!d"� d"e*�Z-G d#d$� d$e*�Z.G d%d&� d&e*�Z/G d'd(� d(e)�Z0G d)d*� d*e'�Z1G d+d,� d,e'�Z2G d-d.� d.�Z3dS )/z�
sphinx.util.cfamily
~~~~~~~~~~~~~~~~~~~
Utility functions common to the C and C++ domains.
:copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N��deepcopy)�Any�Callable�List�Match�Optional�Pattern�Tuple�Union)�nodes)�TextElement)�Config)�loggingz(?u)\s+z(@[a-zA-Z0-9_])[a-zA-Z0-9_]*\ba
(?x)
( # This 'extends' _anon_identifier_re with the ordinary identifiers,
# make sure they are in sync.
(~?\b[a-zA-Z_]) # ordinary identifiers
| (@[a-zA-Z0-9_]) # our extension for names of anonymous entities
)
[a-zA-Z0-9_]*\b
z[1-9][0-9]*(\'[0-9]+)*z0[0-7]*(\'[0-7]+)*z"0[xX][0-9a-fA-F]+(\'[0-9a-fA-F]+)*z0[bB][01]+(\'[01]+)*a% (?x)
# unsigned and/or (long) long, in any order, but at least one of them
(
([uU] ([lL] | (ll) | (LL))?)
|
(([lL] | (ll) | (LL)) [uU]?)
)\b
# the ending word boundary is important for distinguishing
# between suffixes and UDLs in C++
a (?x)
[+-]?(
# decimal
([0-9]+(\'[0-9]+)*[eE][+-]?[0-9]+(\'[0-9]+)*)
| (([0-9]+(\'[0-9]+)*)?\.[0-9]+(\'[0-9]+)*([eE][+-]?[0-9]+(\'[0-9]+)*)?)
| ([0-9]+(\'[0-9]+)*\.([eE][+-]?[0-9]+(\'[0-9]+)*)?)
# hex
| (0[xX][0-9a-fA-F]+(\'[0-9a-fA-F]+)*[pP][+-]?[0-9a-fA-F]+(\'[0-9a-fA-F]+)*)
| (0[xX]([0-9a-fA-F]+(\'[0-9a-fA-F]+)*)?\.
[0-9a-fA-F]+(\'[0-9a-fA-F]+)*([pP][+-]?[0-9a-fA-F]+(\'[0-9a-fA-F]+)*)?)
| (0[xX][0-9a-fA-F]+(\'[0-9a-fA-F]+)*\.([pP][+-]?[0-9a-fA-F]+(\'[0-9a-fA-F]+)*)?)
)
z[fFlL]\bz�(?x)
((?:u8)|u|U|L)?
'(
(?:[^\\'])
| (\\(
(?:['"?\\abfnrtv])
| (?:[0-7]{1,3})
| (?:x[0-9a-fA-F]{2})
| (?:u[0-9a-fA-F]{4})
| (?:U[0-9a-fA-F]{8})
))
)'
)�mode�returnc C s | dvrt d| ��d S )N)Z
lastIsNameZ
noneIsNameZmarkTypeZmarkNameZparamZudlz!Description mode '%s' is invalid.)� Exception)r � r �7/usr/lib/python3.9/site-packages/sphinx/util/cfamily.py�verify_description_modeP s r c @ s e Zd ZdS )�NoOldIdErrorN��__name__�
__module__�__qualname__r r r r r U s r c @ sz e Zd ZU eed�dd�ZdZeg ef e d<