|
|
BSD 4.3
SEGMENT(2) Icon Program Library SEGMENT(2)
NNNNAAAAMMMMEEEE
segment - segment string
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The procedure sssseeeeggggmmmmeeeennnntttt((((ssss,,,,cccc)))) generates consecutive substrings
of ssss consisting of characters that respectively do/do not
occur in cccc. For example,
segment("This is a sentence.",&lcase ++ &ucase)
generates
"This"
" "
"is"
" "
"a"
" "
"sentence"
"."
AAAAUUUUTTTTHHHHOOOORRRR
William H. Mitchell
Version 5.9 The University of Arizona - 9/11/84 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.