\c@sddlZddlZddlZddlmZddlZddljZddl m Z ej j Z e ZdddYZdS(iNi(t repository(tcommandst FunctionscBsbeZdZdZddZdZdZdZdZdZ d Z d Z RS( s Built-in functions cCstj|_|jdS(N(Rt Repositoryt _repositoryt _parse_init(tself((sF/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.pyt__init__stcCs7d|_||_t||_g|_t|_dS(Ni(t_cntt_strtlent_lent_stacktFalset_esc(Rts((sF/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.pyRs    cCs$|j|jkr |j|jSdS(NR(R R R (R((sF/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.pyt _curr_charscCs|j|j|j|!S(N(R R (RR ((sF/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.pyt _curr_substr scCs|jj||jfdS(N(R tappendR (Rtesc((sF/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.pyt _push_pos#scCsu|j| ||j|d|_t|j|_|jt|||d7_|jdkrqd|_ndS(Nii(R R R R (RtatbR((sF/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.pyt_sub&s #!cCstjd|j||j!}|ddkr3dSg|D]}t|jdd^q:}tjd|dstjd|ddSy|j j |d}Wn't k rtjd |ddSX|j |d }|dkrdS|j||j|dS( Ns(?s