mIRC Home    About    Download    Register    News    Help

Print Thread
extra string identifiers #214914 19/08/09 05:51 PM
Joined: Feb 2006
Posts: 546
J
jaytea Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
we have $instok $deltok $puttok etc.

can we please have analogues for strings and characters, $ins $del $put. eg:

$ins(abc,d,2) = adbc
$put(abc,d,2) = adc
$del(abc,2) = ac

sure there are methods involving $left/$right/$mid but those are uncomfortable and these just seem like such obviously useful additions

perhaps even a $rep and $rem if deemed applicable

at the very least could a delimiter of 0 in the token identifiers be used to achieve this behavior. currently 0 doesn't return anything useful

ie $puttok(abc,d,1,0) = d

but can't we let it = dbc

please please please consider this laugh


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
Re: extra string identifiers [Re: jaytea] #214915 19/08/09 06:00 PM
Joined: Dec 2007
Posts: 5
C
Champagne Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
C
Joined: Dec 2007
Posts: 5
I support this idea.

Re: extra string identifiers [Re: jaytea] #214916 19/08/09 06:00 PM
Joined: May 2007
Posts: 37
C
Chessnut Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: May 2007
Posts: 37
It's always bugged me how there's no easy method to do simple things with strings such as those the OP mentioned. The work-arounds are ridiculously verbose.

Completely support this idea!

Re: extra string identifiers [Re: jaytea] #214919 19/08/09 10:43 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Great idea!

Re: extra string identifiers [Re: jaytea] #214923 20/08/09 02:30 AM
Joined: Nov 2004
Posts: 826
Jigsy Offline
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
I def. support this idea.


What do you do at the end of the world? Are you busy? Will you save us?
Re: extra string identifiers [Re: Jigsy] #214925 20/08/09 03:06 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Here's my vote.. not sure if it'll help, but, can't hurt.. right?

Re: extra string identifiers [Re: RusselB] #214928 20/08/09 04:10 PM
Joined: Mar 2006
Posts: 393
T
The_JD Offline
Fjord artisan
Offline
Fjord artisan
T
Joined: Mar 2006
Posts: 393
Probably one of the best idea's i've heard in a while.

Surprising how many support the idea


[02:16] * Titanic has quit IRC (Excess Flood)
Re: extra string identifiers [Re: The_JD] #214973 25/08/09 12:45 AM
Joined: Dec 2008
Posts: 1,512
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,512
Very good idea. I Support it too!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Re: extra string identifiers [Re: westor] #214974 25/08/09 12:50 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
I HATE THIS IDEA!







J/K :P Those identifiers would be very useful.

-genius_at_work

Re: extra string identifiers [Re: genius_at_work] #215007 26/08/09 05:25 PM
Joined: Apr 2004
Posts: 759
M
Mpdreamz Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
Add me to the list of supporters !


$maybe
Re: extra string identifiers [Re: jaytea] #215208 07/09/09 09:43 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Agreed, I've been wishing for $put() forever. The details could be discussed, for example there could be just one identifier ($put) incorporating the functionality of $ins and $del by allowing the 3rd parameter to be a range or by adding a 4th parameter, $mid-style.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: extra string identifiers [Re: Mpdreamz] #215209 07/09/09 03:06 PM
Joined: May 2009
Posts: 139
E
Excalibur Offline
Vogon poet
Offline
Vogon poet
E
Joined: May 2009
Posts: 139
Me too!


- Excalibur
- Good and Evil, there never is one without the other.