| |
|
|
| Explode without Delimiter CompileMarkSeparation or CompileMarkSeparation could the aray befüllen with the individual Chars - helpful and sure beschleunigend for instead of mid$ in Loops.
even if not about fit:
i'm still the opinion, that Explode on a Leerstring no aray with More as 0 Einträgen zurückliefern ought to. |
|
|
| |
|
|
|
Nico Madysa | i'm still the opinion, that one aray without items maximum undefiniert is - vaguely like a undimensionierter area. |
|
|
| |
|
|
|
| an vain Listbox too undefined?
One aray with 0 Einträgen can't undefined his there sizeOf(undefined) undefined were instead of 0. |
|
|
| |
|
|
|
Nico Madysa | therefore given I The reaches as example. CompileMarkSeparationdeclare versuch#,probe%[],test$
clear versuch#,probe%[],test$
print SizeOf(versuch#),
print SizeOf(versuoch#),
print SizeOf(probe%[]),
print SizeOf(proube%[]),
print SizeOf(test$),
print SizeOf(tehest$)
waitinput
CompileMarkSeparation because Explode power Yes in the entrapment the Leerstrings too nothing other, as the first element something zuzuweisen; namely a Leerstring. viewing one against a Leerstring as present, so entrapments all these difficulty lane. One No seiendes element is then weder Leerstring yet zero, separate crept No, with which The Size the Arrays eindeutig bestimmbar is. Womit a problem to have You seem, is, that Explode at all The work aufnimmt. All the philosophische stuff could one itself save, if one it crept so made: CompileMarkSeparation Explode power namely what it should: it divides whom sustained Text whom Delimitern ensprechend on. the first, what it finds, is a Leerstring, the of course nothing contains, therefore but yet long not nothing is. this Leerstring becomes then the first element the Arrays allocated, thereafter there No further Teilstring More - you're no Leerstrings, separate objectively not existent - , with which Explode its work Done has. One example for is that here: CompileMarkSeparation loudly of my Logik comes five out, what sustain You? CompileMarkSeparation loudly of my Logik comes two out, comment two out, what Dou you mean? one?
PS: forgive me The Langatmigkeit, I have The next two weeks none Unterricht More. |
|
|
| |
|
|
|
| i see your Logik and see therefore where tappt im dunkeln stand remaining.
You mind not, that the target one aray is and no String.
instead verkehrst You The Funktionsweise in the entrapment one Leerstrings, because usually take whom Stringinhalt abc and with one Leerstring becomes at a single blow not any more the (not available) Content geachtet, separate one leerer String. this is wrong and Perhaps there too therefore no Language The the so handling.
it bring too no advantages separate only detriments if one not vorhandener Stringinhalt into aray shared becomes which at a single blow a entry has whom one against first to check on must.
concise notice:
naturally yields
; 2 Entries and yields 1 entry and none entry because nothing into aray To konvertieren was.
especially since, I had Explode angeregt because it useful is and because I The Funktionsweise from others Languages know and love - and because XProfan interprets and native Acceleratoren sure to Programmqualität contribute.
These XProfanische Extrawurst versämmelt the Explode however, to each explode one completely unnötiges if or case To settle is quite einmalig(it nonsense).
Sinnfrei is it, if The task is, a Stringinhalt into aray To konvertieren, with one not vorhandenen Stringinhalt one aray abzuliefern, which 1 entry contains.
Verkompliziert too the whole SizeOf (count) - Gedöns dahingehend the one not whom numbers calculate can without these each over again To to check on. strain where it me circa More speed went...
and next to the Logik remaining yet The Anwendungsfreundlichkeit. I explode like a wilder, many years experience with - and the XProfanische Umsetzung is abweichend, unpleasant, not helpful and logical only on half-way ways.
example
sizeOf(explode(textDateiInhalt, )) ought to The Number of Lines zurückliefern, with of/ one clear File naturally 0 and not 1.
it'll no String konvertiert, Explode ought to whom Stringinhalt konveriteren into aray.
I see the so: yet uses hardly someone xprofanisches Explode, yet is not To late the To Change - and I am optimistic to the principle hope.
differently would it naturally if The function nico_explode or rgh_explode or some_explode or like_explode hiesse... |
|
|
| |
|
|
|
Nico Madysa | well, now Have ichs understood. You dividest not whom String, separate which Content on. in this entrapment voice I you To and schließe me your opinion on.
then should means following Results get out, Yes? CompileMarkSeparation PS: Ergiebt is deliberate so written, I followed straight from reiner Langeweile the spelling To Goethes times. |
|
|
| |
|
|
|
| |
|
| |
|
|
|
| only How bring we the schonend the Roland with? |
|
|
| |
|
|
|
Nico Madysa | one could it in our Kilometerpostingdiskussion invite and it first for a Statement moreover requests, How it because To obigen Examples stand. CompileMarkSeparation Roooooooooolaaaaannd? |
|
|
| |
|
|
|
| |
|
| |
|
|
|
Nico Madysa | Verzeih - I Have me into last Meet something on PHP attempts, what abgefärbt to have shining. but there the Topic Yes Teilstrings altogether concerns, should it so too xprofankonform his. CompileMarkSeparation |
|
|
| |
|
|
|
RGH | |
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 05/15/09 ▲ |
|
|
|