dosdan
19th August 2005, 01:12
The string handling in AviSynth appears pretty limitied. I want to bring a variable number of filenames into a function as a single string and then use string manipulation to separate them. For example:
LoadPhotoSequence("01,02,05,07")
The problem is that FindStr has no offset capability. I can find the first "," but not the second without chopping off the first term with MidStr. Would it be possibe to to enhance FindStr from its current:
FindStr (string1, string2)
to either:
FindStr (string1, string2, [offset])
offset for the start position in string1 for the search for string2
or:
Findstr (string1, string2, [occurance])
where an occurance value of 4 would find the fourth occurance of string2 and return 0 if it was not found.
LoadPhotoSequence("01,02,05,07")
The problem is that FindStr has no offset capability. I can find the first "," but not the second without chopping off the first term with MidStr. Would it be possibe to to enhance FindStr from its current:
FindStr (string1, string2)
to either:
FindStr (string1, string2, [offset])
offset for the start position in string1 for the search for string2
or:
Findstr (string1, string2, [occurance])
where an occurance value of 4 would find the fourth occurance of string2 and return 0 if it was not found.