o
     Xxi
                     @   s`   d dl Z ddlmZmZmZmZmZ ddlmZm	Z	m
Z
 G dd dee
ZG dd de	e
ZdS )	    N   )entriesmmap_entriesconnectionschardefunknowns)RAMDictionaryMMapDictionaryUnknownsDictionaryc                   @   0   e Zd ZdZdZe Zedd Z	dd Z
dS )SystemDictionaryz!
    System dictionary class
    Nc                 C   d   | j s/| j! | j stt ttjtj| _ W d    | j S W d    | j S 1 s*w   Y  | j S N)_SystemDictionary__INSTANCE_SystemDictionary__lockr   r   r   r   DATAr   cls r   P/home/air/biblejyuku/back/venv/lib/python3.10/site-packages/janome/system_dic.pyinstance      

zSystemDictionary.instancec                 C   s    t | || t| || d S r   )r   __init__r
   )selfr   r   chardefsr   r   r   r   r   %   s   zSystemDictionary.__init__)__name__
__module____qualname____doc__r   	threadingLockr   classmethodr   r   r   r   r   r   r          
r   c                   @   r   )MMapSystemDictionaryz&
    MMap System dictionary class
    Nc                 C   r   r   )_MMapSystemDictionary__INSTANCE_MMapSystemDictionary__lockr#   r   r   r   r   r   r   r   r   r   r   2   r   zMMapSystemDictionary.instancec                 C   s0   t | |d |d |d | t| || d S )Nr   r      )r	   r   r
   )r   r   r   r   r   r   r   r   r   :   s   zMMapSystemDictionary.__init__)r   r   r   r   r$   r   r    r%   r!   r   r   r   r   r   r   r#   *   r"   r#   )r   sysdicr   r   r   r   r   dicr   r	   r
   r   r#   r   r   r   r   <module>   s
   