English
Forum

Match$ against single work out (a match)

 

Jörg
Sellmeyer
here have I times the Offlinevariante of Ü-Thread as Textvorlage taken: [...] 
everything copy and the program started
CompileMarkSeparation
Var Text1$ = GetClip$()
Var C& = &GetTickCount
Declare Text$

WhileLoop 10000

    Text$=translate$(Text1$,-
    ,)
    Text$=translate$(Text$,|,chr$(1))
    Text$=translate$(Text$,!
    ,!|)
    Text$=translate$(Text$,?
    ,?|)
    Text$=translate$(Text$,.
    ,.|)
    Text$=translate$(Text$,
    ,)
    Text$=translate$(Text$,|,
    )ich würde hier wahrscheinlich der Optik halber sogar
    angeben, unwichtig...
    Text$=translate$(Text$,chr$(1),|)

Wend

Print &GetTickCount - C&
C& = &GetTickCount

WhileLoop 10000

    Text$ = Translate$(Text1$,-
    ,)Trennstriche erschlagen

    While Match$([!~?~.]

        ,Text$) >
        Text$ = Translate$(Text$,$Match,Left$($Match,1) + |)alle Zeilenumbrüche mit Satzendezeichen zum Sichern umwandeln

    Wend

    Text$ = Translate$(Text$,
    ,)alle Zeilenumbrüche raus
    Text$ = Translate$(Text$,$Match,Left$($Match,1) +
    )Zeilenumbrüche zurückschreiben

Wend

Print &GetTickCount - C&
WaitInput
End

in the Interpreter is the upper Variante by me ca 2x faster.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/23/07  
 



is clear, The creep are in that Native verlagert and it'll no regexp used. therefore pointed I Yes on these einfacherer method there.
 
11/23/07  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

921 Views

Untitledvor 0 min.
RudiB.10/08/21
Andre Rohland09/08/18
Joerg06/14/16
GDL09/27/14
More...

Themeninformationen

this Topic has 2 subscriber:

iF (1x)
Jörg Sellmeyer (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie