summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.string/tokenize.stp
Commit message (Collapse)AuthorAgeFilesLines
* Refactor common code in the tokenize testJosh Stone2009-06-171-53/+18
|
* Fix tokenize function and test.Przemyslaw Pawelczyk2009-06-171-28/+47
| | | | | | | | | | | | | | | | | Previous implementation was error-prone, because allowed returning empty tokens (mimiced strsep()), which is fine if there is a NULL semantic. Unfortunately SystemTap doesn't provide it in scripts and has only blank string (""), therefore testing against it was misleading. The solution is to return only non-empty tokens (mimic strtok()). * tapset/string.stp: Fix tokenize. * testsuite/systemtap.string/tokenize.stp: Improve and add case with more than one delimiter in the delim string. * testsuite/systemtap.string/tokenize.exp: Ditto. * stapfuncs.3stap.in: Update tokenize description. * doc/langref.tex: Ditto. Signed-off-by: Josh Stone <jistone@redhat.com>
* Added new string functions tokenize() and strtol().mmason2007-01-231-0/+46