[DGD]Need tips with LPC function Im writing.
sampsa at netsonic.fi
sampsa at netsonic.fi
Mon Mar 22 15:24:11 CET 1999
On Mon, 22 Mar 1999, Frank Schmidt wrote:
> > > type of function. ie. since you dont have strstr() and similar,
Umm, we actually have strstr() and strchr() kfuns. We also have
new_string(int lenght, int fillchar) and break_string() kfuns with color
support, because I use these a lot.
> > implode(explode(find+str+find,find),replace_with) should do the trick
>
> If you want more consistent results using explode() and implode():
> (exploded strings consisting of only separators, or having them in the
> beginning and at the end doesn't give a consistent "backwards" compatible
> result with implode()..)
>
> NOTE: THIS CODE IS AS-IS, as it is found in the MudOSa4DGD library.
Can you tell me where to find this, I would like to take a look on it?
> /* big_explode(str, separator)
> This function works like explode(), except that it also counts
> separators at the start and end of the string. Basically that means
> that the array returned is more practical to parse. And big_implode()
> will return the original string if needed be.
> */
As does explode(find+str+find,find), extra separator to both ends of
string to nullify effect of stripping in kfun? This is also done in 2.4.5
simulation library.
implode(explode(find+str+find,find),find) == str -> always true
What's your point?
- Sampsa Ranta
sampsa at netsonic.fi
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list