mIRC Homepage
Posted By: jaytea extra string identifiers - 19/08/09 05:51 PM
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
Posted By: Champagne Re: extra string identifiers - 19/08/09 06:00 PM
I support this idea.
Posted By: Chessnut Re: extra string identifiers - 19/08/09 06:00 PM
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!
Posted By: hixxy Re: extra string identifiers - 19/08/09 10:43 PM
Great idea!
Posted By: Jigsy Re: extra string identifiers - 20/08/09 02:30 AM
I def. support this idea.
Posted By: RusselB Re: extra string identifiers - 20/08/09 03:06 AM
Here's my vote.. not sure if it'll help, but, can't hurt.. right?
Posted By: The_JD Re: extra string identifiers - 20/08/09 04:10 PM
Probably one of the best idea's i've heard in a while.

Surprising how many support the idea
Posted By: westor Re: extra string identifiers - 25/08/09 12:45 AM
Very good idea. I Support it too!
Posted By: genius_at_work Re: extra string identifiers - 25/08/09 12:50 AM
I HATE THIS IDEA!







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

-genius_at_work
Posted By: Mpdreamz Re: extra string identifiers - 26/08/09 05:25 PM
Add me to the list of supporters !
Posted By: qwerty Re: extra string identifiers - 07/09/09 09:43 AM
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.
Posted By: Excalibur Re: extra string identifiers - 07/09/09 03:06 PM
Me too!
© mIRC Discussion Forums