Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
fgl_split_2.c | 2020-05-11 | 3.9 kB | |
fgl_split_2.readme.txt | 2020-05-11 | 1.2 kB | |
fgl_split_string_1.c | 2020-05-11 | 488 Bytes | |
readme.txt | 2020-05-11 | 5.2 kB | |
test_split_1.4gl | 2020-05-11 | 189 Bytes | |
Totals: 5 Items | 11.0 kB | 0 |
From: Mark.Denham@bbc.co.uk (Mark Denham) Date: 16 Aug 1995 08:28:03 -0400 I have a function, called as follows: CALL split_string(str, delimstr, returns, strict) RETURNING stat, strpart1, strpart2.... WHERE: str - String you want to break up delimstr - Delimiter string returns - Integer indicating how many STRING variables you want returned. strict - Boolean TRUE/FALSE. When true, the function returns a stat of -1 if the string to split does not contain EXACTLY returns sub-strings in it. On the return side, stat is always returned along with the number of strings requested. I will did it out if anyone is interested. Mark Denham BBC London, UK Mark.Denham@bbc.co.uk From: Mark.Denham@bbc.co.uk (Mark Denham) Date: 22 Aug 1995 18:13:03 -0400 By popular demand, here is the string splitting function that I use. Usage call split_string(src, delim, return, strict) returning stat, str1..strn src - Is string to split, max 5k delim - Field separator return - No. of strings to return (max). strict - Set status to -ve value if the no. of strings in src is not the same as return. Note: Get rid of any bugs yourself! Only kidding. Mark Denham BBC London, UK Mark.Denham@bbc.co.uk