English
Opportunities and suggestions

Done: idea: Explode without Delimiter

 
Explode without Delimiter
CompileMarkSeparation
arr$[]=explode(test)
>

or
CompileMarkSeparation
arr$[]=explode(test,)
>

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.
 
04/26/09  
 




Nico
Madysa
i'm still the opinion, that one aray without items maximum undefiniert is - vaguely like a undimensionierter area.
 
Nico Madysa
04/27/09  
 



an vain Listbox too undefined?

One aray with 0 Einträgen can't undefined his there sizeOf(undefined) undefined were instead of 0.
 
05/06/09  
 




Nico
Madysa
therefore given I The reaches as example.
CompileMarkSeparation
declare 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
declare t$[]
t$[0]=
t$[1]=
t$[2]=
t$[3]=
t$[4]=
print SizeOf(t $[])
waitinput
end

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
case Text$<> : matrix$[] = Explode(Text$,)

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
cls
var matrix$[] = Eplode(;;;;,;)
print SizeOf(matrix$[])
waitinput
end

loudly of my Logik comes five out, what sustain You?
CompileMarkSeparation
cls
var matrix$[] = Eplode(;,;)
print SizeOf(matrix$[])
waitinput
end

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.
 
Nico Madysa
05/07/09  
 



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...
 
05/07/09  
 




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.
 
Nico Madysa
05/08/09  
 



very. ^^
 
05/08/09  
 



only How bring we the schonend the Roland with?
 
05/13/09  
 




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
05/14/09  
 



Nico Madysa, Beitrag=52331, Zeitpunkt=14.05.2009
Roooooooooolaaaaannd?


You must the so make:



- the klappte yet always!

of course drüfte on Your example the sizeOf on explode not functions, because itself in the XProfan the explode the sizeOf not as an array darstellt - but Sinngemäss ists imho correctly.
 
05/14/09  
 




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
 
Nico Madysa
05/15/09  
 




RGH
iF, Beitrag=52049, Zeitpunkt=26.04.2009
Explode without Delimiter
CompileMarkSeparation
arr$[]=explode(test)
>

or
CompileMarkSeparation
arr$[]=explode(test,)
>

could the aray befüllen with the individual Chars - helpful and sure beschleunigend for instead of mid$ in Loops.


good idea. becomes it in the next XProfan-Version so give, wbei both mutants (only 1 Parameteroder zweiter Parameter one Leerstring) functions.

iF, Beitrag=52049, Zeitpunkt=26.04.2009
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.


OK, ok, too the ...

Greeting
Roland
 
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  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.414 Views

Untitledvor 0 min.
Selmo04/07/23
Sven Bader03/20/23
RudiB.09/16/21
Jörg Sellmeyer11/04/11
More...

Themeninformationen

this Topic has 3 subscriber:

iF (6x)
Nico Madysa (5x)
RGH (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