Richard D. Jackson wrote:
When trying to use the Stringutils unit I've run into a issue. In that how do you determin the number of strings returned from the Tokenize funcions?
For instance TokenizeString returns PPStrings but does not use a nil sentinal at the end of the array of strings. So with out the use of a nil sentinal how do you find out how many strings are being returned?
Just look at the type declaration (in gpc.pas):
type { `+ 1' is a waste, but it is so the size of the array is not zero for Count = 0 } PPStrings = ^TPStrings; TPStrings (Count: Cardinal) = array [1 .. Count + 1] of PString;
So there's `Count'.
Frank