Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 NebÜã@sþd"ZdZdZddlZGdd„dƒZejdƒZejdƒZGd d„deƒZe d k�rúd#d d„Z e ddddd�e ddddd�e ddd$dd�e ddddd�e dddƒe dddƒe ddd%ƒe dddƒe dddƒe dddƒe ddd&ƒe d d!dƒdS)'Ú FormatterÚDecimalFormatterz3.3.0z] These help format numbers and dates in a user friendly way. Used by the graphics framework. éNc@s0eZdZdZdd„Zdd„Zdd„Zdd „Zd S) rz5Base formatter - simply applies python format stringscCs ||_dS)N)Úpattern)Úselfr©rú9/tmp/tmp4i9tl1d3/lib64/python/reportlab/lib/formatters.pyÚ__init__szFormatter.__init__cCs |j|S)N)r)rÚobjrrrÚformatszFormatter.formatcCsd|jj|jfS)Nz%s('%s'))Ú __class__Ú__name__r)rrrrÚ__repr__szFormatter.__repr__cCs |j|ƒS)N)r )rÚxrrrÚ__call__szFormatter.__call__N)r Ú __module__Ú __qualname__Ú__doc__rr r rrrrrr s z^\d*\.z0+$c@s2eZdZdZd dd„Zdd„Zd d „Zd d „ZdS)rz¢lets you specify how to build a decimal. A future NumberFormatter class will take Microsoft-style patterns instead - "$#,##0.00" is WAY easier than this.éÚ.NcCs4|dkr|j|_n||_||_||_||_||_dS)NÚauto)Ú _calcPlacesZ calcPlacesÚplacesÚdotÚcommaÚprefixÚsuffix)rrÚ decimalSepÚ thousandSeprrrrrr s zDecimalFormatter.__init__cCstdd„|Dƒƒ|_dS)zMcalled with the full set of values to be formatted so we can calculate placesc Ss(g|] }ttjdtjdt|ƒƒƒƒ‘qS)Ú)ÚlenÚ_tz_reÚsubÚ_ld_reÚstr)Ú.0Úvrrrú ,sz0DecimalFormatter._calcPlaces..N)Úmaxr)rÚVrrrr*szDecimalFormatter._calcPlacesc Cs,|dk}|r| }|j|j}}|dk}|r6|r6| }dt|ƒd|}|r�|jdƒ\}}||}|r”x*|rŒ|d d|gkrŒ|dd …}qjWnd}|jdk rîd}xF|rè|dd …|d d…} } | dkrÔ| |}n|j| |}| }q¤W|}||} |�rd | } |j�r|j| } |j�r(| |j} | S)Nrz%.ÚfréÚ0réú-éÿÿÿÿr.éýÿÿÿr/)rrr#Úsplitrrr) rÚnumÚsignrÚsepÚstripZstrIntZstrFracZstrNewÚleftÚrightZstrBodyrrrr .s@    zDecimalFormatter.formatcCs2d|jj|jt|jƒt|jƒt|jƒt|jƒfS)NzB%s(places=%d, decimalSep=%s, thousandSep=%s, prefix=%s, suffix=%s))r r rÚreprrrrr)rrrrr SszDecimalFormatter.__repr__)rrNNN)r rrrrrr r rrrrrs  %Ú__main__rrc CsLt|||||ƒ}||ƒ}td|j|j|j|j|j|||kr>dp@dfƒdS)NzEplaces=%2d dot=%-4s comma=%-4s prefix=%-4s suffix=%-4s result=%10s %sÚOKÚBAD)rÚprintrrrrr) ÚnÚsrrrrrr)ÚrrrrÚt^sr?g33333G�@z1,000.9r*ú,)rgš™™™™G�@z1,001.0z1,001z1000.9z1001.0Z1001gÍÌÌÌÌ@�@z1000.1gfffffD�@z1000.6g;ßO�—C�@z1000.4gš™™™™C�@Z1000)rr)rrNNNr.r.r.) Ú__all__Ú __version__rÚrerÚcompiler"r rr r?rrrrÚs*  B