| |
|
|
 Jörg Sellmeyer | Hier Yo veces el Offlinevariante vom Ü-Hilo como Textvorlage genommen: [...]  Alles kopieren y el Programa starten KompilierenMarcaSeparaciónVar 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
Im Interpreter Es el obere Variante en me ca 2x más rápido.  |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 23.11.2007 ▲ |
|
|
|
|
 | Ist klar, el Schleifen son en el Nativo verlagert y lo se kein regexp genutzt. Darum wies Yo sí en esta einfacherer Método hin. |
|
|
| |
|
|