Google FeedBurner is phasing out its RSS-to-email subscription service. While we are currently working on the implementation of a new system, you may experience an interruption in your email subscription service.
Please stay tuned for further communications.
I have some problems processing strings in SKILL. Basically I want to break a string into a list of substrings using "!" as delimiter. I found out that the "parseString"-command will do the job. But if one property is missing in the string, the parseString-command just ignores it. I better give you an example:
My string looks like that: "C419!100n!C0603!Murata!PartNo123"
In this case partseString works perfectly and puts each property in a own list field. But if e.g. the manufacturer property is not present and the string looks like this "C419!100n!C0603!!PartNo123" the parseString command interprets the "!!" as one delimiter. In this case I would have expected the funktion to generate a field with an empty string. But it doesn't, it just ignores it :-( So depending on the database entries I get lists with varying length which makes postprocessing more complicated.
Does anybody of you have an idea of a better solution or a workaround?
;*******************************************************************************/*+NAME: CAL_shrParseStringFUNCTION: CAL_shrParseString(t_string [t_delimeter] [b_dappend]) => l_strings/nilSYNOPSYS: This function takes a string as input and a list of delimiter characters then returns a list of substrings. The difference between this command and parseString is that parseString will not return "empty" fields.NEEDS: t_string string to be parsed [t_delimeter] a sting of character delimiters. If not delimiters are specified a whitespace character is used. [b_dappend] if t appends the delimiter to the end of the substringRETURNS: l_strings the resultanting list of substrings nil on errorEXAMPLE: CAL_shrParseString("ABC||DEF|GEHI" list("|") => ("ABC" "" "DEF" "GEHI") CAL_shrParseString("NOW IS THE TIME" list(" ")) => ("NOW" "IS" "THE" "TIME") CAL_shrParseString("NOW IS THE TIME list(" ") t) => ("NOW " "IS " "THE " "TIME ")-*/defun(CAL_shrParseString (string @optional (delimiters " ") dappend) let((delimiterList parsedString (subString "") char incr ) ;check for good variables if(stringp(string) && stringp(delimiters) then ; build a list of delimiters incr=0 while(char = getchar(delimiters ++incr) delimiterList = cons(char delimiterList) ) ; walk the string, separating substrings at the delimiters incr = 0 while(char = getchar(string ++incr) if(member(char delimiterList) then ; found a delimiter, add substring to list and reset it. when(dappend subString = strcat(subString char) ) parsedString = tconc(parsedString subString) subString = "" else ; append character to substring subString = strcat(subString char) ) ) ; add final substring parsedString = car(tconc(parsedString subString)) else ; oops bad variables error("CAL_shrParseString" sprintf(nil "Parameters are not valid strings -- string:%L delimiters%L" string delimiters) ) ) parsedString));CAL_shrParseString
Wow, works perfectly. Many thanks!
Thanks for the info
Earning money on the internet is a myth for many of you. Our upbringing has been filled with this kind of indoctrination. Even yet, it's already the year 2000. Even more so now that bitcoin has exploded. Cryptocurrency trading caught my attention that free crypto signals let me generate money despite my lack of understanding and expertise. No mental tension was involved in the process. It's worth a try!