403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/gedit/plugins/commander/modules/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/gedit/plugins/commander/modules/__pycache__/doc.cpython-310.pyc
o

j
b��@svddlmZddlZddlZddlZddlZdZGdd�d�ZGdd�d�Z	Gdd�d�Z
d	d
�Zdd�Zd
d�Z
dS)�NTc@seZdZdd�ZdS)�ArgumentcCs"|��|_|��|_|��|_dS�N)�strip�type�	type_name�name)�self�argtype�typenamer�r�1/usr/share/gedit/plugins/commander/modules/doc.py�__init__s

zArgument.__init__N)�__name__�
__module__�__qualname__r
rrrrrsrc@seZdZdd�Zdd�ZdS)�FunctioncCs|�|�dSr)�_parse)r�textrrrr
%szFunction.__init__cCsrd|_t�dtj�}|�|�}|sdSd|_|�d�o*|�d���dko*|�d���|_|jo5|�d���|_|�d��	d�}|d	|_
t|�dkrUd�|d
d	��|_
nd|_
|j
|j
k|_|j
d|j
fk|_|�d�dk|_g|_t�d
tj�}|�d��	d�D]3}|��}|dks�|dkr�q�|�|���}|s�d|_dSt|�d�|�d�|�d��}|j�|�q�dS)NFz�^\s*(?:(?:\b(?:static|inline)\b)\s+)?(([a-z_:][a-z0-9_:<>]*)(?:\s*(?:\b(?:const)\b)\s*)?\s*[*&]*\s+)?([a-z_][a-z0-9_:~]*)\s*\(([^)]*)\)(\s*const)?T��void��z::���rz~%s�zQ(([a-z_:][a-z0-9_:<>]*)(?:\s*(?:\s*\bconst\b\s*|[*&])\s*)*)\s*([a-z_][a-z_0-9]*)$��,�)�valid�re�compile�I�match�groupr�return_type�return_type_name�splitr�len�join�	classname�constructor�
destructor�const�argsr�append)rr�parser�m�parts�argre�arg�m2rrrr(s:
,
�zFunction._parseN)rrrr
rrrrrr$src@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�
DocumentercCs:||_||_||_|j��}|�dd�|_d|_d|_dS)N�/plugins/snippets�parse-and-activaterr)�window�view�iter�get_message_bus�
is_registered�canplaceholder�placeholderr)rr7r8r9�busrrrr
Xs

zDocumenter.__init__cGs |D]}|jt|�7_q|Sr)r�str�rr,rrrrr-cszDocumenter.appendcGsN|js|j|�Sd�tdd�|��}|jd|j|f7_|jd7_|S)N� cSst|�Sr)r?)�xrrr�<lambda>msz/Documenter.append_placeholder.<locals>.<lambda>z${%d:%s}r)r<r-r'�maprr=r@rrr�append_placeholderis
zDocumenter.append_placeholdercCs2|jr|j��}|jdd|j|j|jd�dSdS)Nr5r6)�snippetr9r8)r<r7r:�sendrr9r8)rr>rrr�insertss
�zDocumenter.insertN)rrrr
r-rErHrrrrr4Ws

r4cCs�|��}|��}|�dd�dk}|�|���}|�d�|��}|��}|�d�s-|�	�}|�
|�}t|�}	|	js@t
jj�d��t|||�}
|
|	fS)Nr5r6ri�z%Could not find function specification)�
get_bufferr:�lookup�get_iter_at_mark�
get_insert�set_line_offset�
get_offset�copy�
forward_chars�get_end_iter�get_textrr�	commander�commands�
exceptions�Executer4)r7r8�bufr>r<rH�offset�endr�func�docrrr�_make_documenterxs


r\c	Cs:|��}|��}|r|��dvrtjj�d��t||�\}}|�d|j	d�t
�d�}|jD]-}|�
|j�}|�d|j	d�|rQ|�d|�d	�pL|�d
�f�n|�d�|�d�q.|�d
��d��d�|jr�|�
|j�}|�d�|r�|�d|�d	�p�|�d
�f�n|�d�|�d�|�d�|��dS)z�Generate gtk-doc documentation: doc.gtk

Generate a documentation template for the C or C++ function defined at the
cursor. The cursor needs to be on the first line of the function declaration
for it to work.��c�chdr�cpp�Don't know about this languagez/**
 * z:
z-([A-Z]+[a-zA-Z]*)|struct\s+_([A-Z]+[a-zA-Z]*)z * @z: za #%srr�Description�.
� *
 * z *
 * Returns: z *
 **/
N)rI�get_language�get_idrSrTrUrVr\r-rrrr,r!rrEr"r#r$rH)	r7r8rW�langr[rZ�structpr2�smrrr�gtk�s0

"

"


rjcCs|��}|����dvrtjj�d��t||�\}}|�d��	d�|j
r*|�d�|�d�|jD]}|�d|jd��	d	��d
�q2|�d�|j
rQ|�d�n|jrY|�d
�|�	d��d�|jr�|�d�|jdkrz|�d��	d	��d�n|�	d	�|�d
�|�d�|��dS)z�Generate doxygen documentation: doc.doxygen

Generate a documentation template for the function defined at the
cursor. The cursor needs to be on the first line of the function declaration
for it to work.r]raz/** \brief zShort descriptionz (const)rcz
 * @param rArb�
rdzConstructor.
 *
 * zDestructor.
 *
 * zDetailed descriptionz *
 * @return: �boolztrue if z, false otherwisez *
 */
N)rIrerfrSrTrUrVr\r-rEr+r,rr)r*r#rH)r7r8rWr[rZr2rrr�doxygen�s0









rm)�commander.commandsrT�commander.commands.completionrS�commander.commands.result�commander.commands.exceptionsr�__commander_module__rrr4r\rjrmrrrr�<module>s3!.

Youez - 2016 - github.com/yon3zu
LinuXploit