ftp.nice.ch/pub/next/developer/resources/classes/misckit/MiscKit.1.10.0.s.gnutar.gz#/MiscKit/Examples/MiscString/stest2.txt

This is stest2.txt in view mode; [Download] [Up]

------------------------------------------------
String is: <Hello my dear [] 345 How ''are78 we?>
Is all MISC_UPPER? 0
Has    MISC_UPPER? 1
Num of MISC_UPPER: 2
spotsof MISC_UPPER: 0 21 
rspotsof MISC_UPPER: 21 0 
replace -1th MISC_UPPER with '*': <Hello my dear [] 345 *ow ''are78 we?>
replace 0th MISC_UPPER with '*': <*ello my dear [] 345 How ''are78 we?>
replace 1th MISC_UPPER with '*': <Hello my dear [] 345 *ow ''are78 we?>
replace 2th MISC_UPPER with '*': <Hello my dear [] 345 How ''are78 we?>
replace 3th MISC_UPPER with '*': <Hello my dear [] 345 How ''are78 we?>
replace 4th MISC_UPPER with '*': <Hello my dear [] 345 How ''are78 we?>
replaceAll MISC_UPPER with '*': <*ello my dear [] 345 *ow ''are78 we?>
Is all MISC_LOWER? 0
Has    MISC_LOWER? 1
Num of MISC_LOWER: 17
spotsof MISC_LOWER: 1 2 3 4 6 7 9 10 11 12 22 23 27 28 29 33 34 
rspotsof MISC_LOWER: 34 33 29 28 27 23 22 12 11 10 9 7 6 4 3 2 1 
replace -1th MISC_LOWER with '*': <Hello my dear [] 345 How ''are78 w*?>
replace 0th MISC_LOWER with '*': <H*llo my dear [] 345 How ''are78 we?>
replace 1th MISC_LOWER with '*': <He*lo my dear [] 345 How ''are78 we?>
replace 2th MISC_LOWER with '*': <Hel*o my dear [] 345 How ''are78 we?>
replace 3th MISC_LOWER with '*': <Hell* my dear [] 345 How ''are78 we?>
replace 4th MISC_LOWER with '*': <Hello *y dear [] 345 How ''are78 we?>
replaceAll MISC_LOWER with '*': <H**** ** **** [] 345 H** ''***78 **?>
Is all MISC_DIGIT? 0
Has    MISC_DIGIT? 1
Num of MISC_DIGIT: 5
spotsof MISC_DIGIT: 17 18 19 30 31 
rspotsof MISC_DIGIT: 31 30 19 18 17 
replace -1th MISC_DIGIT with '*': <Hello my dear [] 345 How ''are7* we?>
replace 0th MISC_DIGIT with '*': <Hello my dear [] *45 How ''are78 we?>
replace 1th MISC_DIGIT with '*': <Hello my dear [] 3*5 How ''are78 we?>
replace 2th MISC_DIGIT with '*': <Hello my dear [] 34* How ''are78 we?>
replace 3th MISC_DIGIT with '*': <Hello my dear [] 345 How ''are*8 we?>
replace 4th MISC_DIGIT with '*': <Hello my dear [] 345 How ''are7* we?>
replaceAll MISC_DIGIT with '*': <Hello my dear [] *** How ''are** we?>
Is all MISC_XDIGIT? 0
Has    MISC_XDIGIT? 1
Num of MISC_XDIGIT: 12
spotsof MISC_XDIGIT: 1 9 10 11 17 18 19 27 29 30 31 34 
rspotsof MISC_XDIGIT: 34 31 30 29 27 19 18 17 11 10 9 1 
replace -1th MISC_XDIGIT with '*': <Hello my dear [] 345 How ''are78 w*?>
replace 0th MISC_XDIGIT with '*': <H*llo my dear [] 345 How ''are78 we?>
replace 1th MISC_XDIGIT with '*': <Hello my *ear [] 345 How ''are78 we?>
replace 2th MISC_XDIGIT with '*': <Hello my d*ar [] 345 How ''are78 we?>
replace 3th MISC_XDIGIT with '*': <Hello my de*r [] 345 How ''are78 we?>
replace 4th MISC_XDIGIT with '*': <Hello my dear [] *45 How ''are78 we?>
replaceAll MISC_XDIGIT with '*': <H*llo my ***r [] *** How ''*r*** w*?>
Is all MISC_PUNCT? 0
Has    MISC_PUNCT? 1
Num of MISC_PUNCT: 5
spotsof MISC_PUNCT: 14 15 25 26 35 
rspotsof MISC_PUNCT: 35 26 25 15 14 
replace -1th MISC_PUNCT with '*': <Hello my dear [] 345 How ''are78 we*>
replace 0th MISC_PUNCT with '*': <Hello my dear *] 345 How ''are78 we?>
replace 1th MISC_PUNCT with '*': <Hello my dear [* 345 How ''are78 we?>
replace 2th MISC_PUNCT with '*': <Hello my dear [] 345 How *'are78 we?>
replace 3th MISC_PUNCT with '*': <Hello my dear [] 345 How '*are78 we?>
replace 4th MISC_PUNCT with '*': <Hello my dear [] 345 How ''are78 we*>
replaceAll MISC_PUNCT with '*': <Hello my dear ** 345 How **are78 we*>
Is all MISC_ASCII? 1
Has    MISC_ASCII? 1
Num of MISC_ASCII: 36
spotsof MISC_ASCII: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 
rspotsof MISC_ASCII: 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
replace -1th MISC_ASCII with '*': <Hello my dear [] 345 How ''are78 we*>
replace 0th MISC_ASCII with '*': <*ello my dear [] 345 How ''are78 we?>
replace 1th MISC_ASCII with '*': <H*llo my dear [] 345 How ''are78 we?>
replace 2th MISC_ASCII with '*': <He*lo my dear [] 345 How ''are78 we?>
replace 3th MISC_ASCII with '*': <Hel*o my dear [] 345 How ''are78 we?>
replace 4th MISC_ASCII with '*': <Hell* my dear [] 345 How ''are78 we?>
replaceAll MISC_ASCII with '*': <************************************>
Is all MISC_CNTRL? 0
Has    MISC_CNTRL? 0
Num of MISC_CNTRL: 0
spotsof MISC_CNTRL: 
rspotsof MISC_CNTRL: 
replace -1th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
replace 0th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
replace 1th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
replace 2th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
replace 3th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
replace 4th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
replaceAll MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
Is all MISC_PRINT? 1
Has    MISC_PRINT? 1
Num of MISC_PRINT: 36
spotsof MISC_PRINT: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 
rspotsof MISC_PRINT: 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
replace -1th MISC_PRINT with '*': <Hello my dear [] 345 How ''are78 we*>
replace 0th MISC_PRINT with '*': <*ello my dear [] 345 How ''are78 we?>
replace 1th MISC_PRINT with '*': <H*llo my dear [] 345 How ''are78 we?>
replace 2th MISC_PRINT with '*': <He*lo my dear [] 345 How ''are78 we?>
replace 3th MISC_PRINT with '*': <Hel*o my dear [] 345 How ''are78 we?>
replace 4th MISC_PRINT with '*': <Hell* my dear [] 345 How ''are78 we?>
replaceAll MISC_PRINT with '*': <************************************>
Is all MISC_SPACE? 0
Has    MISC_SPACE? 1
Num of MISC_SPACE: 7
spotsof MISC_SPACE: 5 8 13 16 20 24 32 
rspotsof MISC_SPACE: 32 24 20 16 13 8 5 
replace -1th MISC_SPACE with '*': <Hello my dear [] 345 How ''are78*we?>
replace 0th MISC_SPACE with '*': <Hello*my dear [] 345 How ''are78 we?>
replace 1th MISC_SPACE with '*': <Hello my*dear [] 345 How ''are78 we?>
replace 2th MISC_SPACE with '*': <Hello my dear*[] 345 How ''are78 we?>
replace 3th MISC_SPACE with '*': <Hello my dear []*345 How ''are78 we?>
replace 4th MISC_SPACE with '*': <Hello my dear [] 345*How ''are78 we?>
replaceAll MISC_SPACE with '*': <Hello*my*dear*[]*345*How*''are78*we?>
Is all MISC_GRAPH? 0
Has    MISC_GRAPH? 1
Num of MISC_GRAPH: 29
spotsof MISC_GRAPH: 0 1 2 3 4 6 7 9 10 11 12 14 15 17 18 19 21 22 23 25 26 27 28 29 30 31 33 34 35 
rspotsof MISC_GRAPH: 35 34 33 31 30 29 28 27 26 25 23 22 21 19 18 17 15 14 12 11 10 9 7 6 4 3 2 1 0 
replace -1th MISC_GRAPH with '*': <Hello my dear [] 345 How ''are78 we*>
replace 0th MISC_GRAPH with '*': <*ello my dear [] 345 How ''are78 we?>
replace 1th MISC_GRAPH with '*': <H*llo my dear [] 345 How ''are78 we?>
replace 2th MISC_GRAPH with '*': <He*lo my dear [] 345 How ''are78 we?>
replace 3th MISC_GRAPH with '*': <Hel*o my dear [] 345 How ''are78 we?>
replace 4th MISC_GRAPH with '*': <Hell* my dear [] 345 How ''are78 we?>
replaceAll MISC_GRAPH with '*': <***** ** **** ** *** *** ******* ***>
Is all MISC_ALPHA? 0
Has    MISC_ALPHA? 1
Num of MISC_ALPHA: 19
spotsof MISC_ALPHA: 0 1 2 3 4 6 7 9 10 11 12 21 22 23 27 28 29 33 34 
rspotsof MISC_ALPHA: 34 33 29 28 27 23 22 21 12 11 10 9 7 6 4 3 2 1 0 
replace -1th MISC_ALPHA with '*': <Hello my dear [] 345 How ''are78 w*?>
replace 0th MISC_ALPHA with '*': <*ello my dear [] 345 How ''are78 we?>
replace 1th MISC_ALPHA with '*': <H*llo my dear [] 345 How ''are78 we?>
replace 2th MISC_ALPHA with '*': <He*lo my dear [] 345 How ''are78 we?>
replace 3th MISC_ALPHA with '*': <Hel*o my dear [] 345 How ''are78 we?>
replace 4th MISC_ALPHA with '*': <Hell* my dear [] 345 How ''are78 we?>
replaceAll MISC_ALPHA with '*': <***** ** **** [] 345 *** ''***78 **?>
Is all MISC_ALNUM? 0
Has    MISC_ALNUM? 1
Num of MISC_ALNUM: 24
spotsof MISC_ALNUM: 0 1 2 3 4 6 7 9 10 11 12 17 18 19 21 22 23 27 28 29 30 31 33 34 
rspotsof MISC_ALNUM: 34 33 31 30 29 28 27 23 22 21 19 18 17 12 11 10 9 7 6 4 3 2 1 0 
replace -1th MISC_ALNUM with '*': <Hello my dear [] 345 How ''are78 w*?>
replace 0th MISC_ALNUM with '*': <*ello my dear [] 345 How ''are78 we?>
replace 1th MISC_ALNUM with '*': <H*llo my dear [] 345 How ''are78 we?>
replace 2th MISC_ALNUM with '*': <He*lo my dear [] 345 How ''are78 we?>
replace 3th MISC_ALNUM with '*': <Hel*o my dear [] 345 How ''are78 we?>
replace 4th MISC_ALNUM with '*': <Hell* my dear [] 345 How ''are78 we?>
replaceAll MISC_ALNUM with '*': <***** ** **** [] *** *** ''***** **?>
------------------------------------------------
String is: <OH! DARLING>
Is all MISC_UPPER? 0
Has    MISC_UPPER? 1
Num of MISC_UPPER: 9
spotsof MISC_UPPER: 0 1 4 5 6 7 8 9 10 
rspotsof MISC_UPPER: 10 9 8 7 6 5 4 1 0 
replace -1th MISC_UPPER with '*': <OH! DARLIN*>
replace 0th MISC_UPPER with '*': <*H! DARLING>
replace 1th MISC_UPPER with '*': <O*! DARLING>
replace 2th MISC_UPPER with '*': <OH! *ARLING>
replace 3th MISC_UPPER with '*': <OH! D*RLING>
replace 4th MISC_UPPER with '*': <OH! DA*LING>
replaceAll MISC_UPPER with '*': <**! *******>
Is all MISC_LOWER? 0
Has    MISC_LOWER? 0
Num of MISC_LOWER: 0
spotsof MISC_LOWER: 
rspotsof MISC_LOWER: 
replace -1th MISC_LOWER with '*': <OH! DARLING>
replace 0th MISC_LOWER with '*': <OH! DARLING>
replace 1th MISC_LOWER with '*': <OH! DARLING>
replace 2th MISC_LOWER with '*': <OH! DARLING>
replace 3th MISC_LOWER with '*': <OH! DARLING>
replace 4th MISC_LOWER with '*': <OH! DARLING>
replaceAll MISC_LOWER with '*': <OH! DARLING>
Is all MISC_DIGIT? 0
Has    MISC_DIGIT? 0
Num of MISC_DIGIT: 0
spotsof MISC_DIGIT: 
rspotsof MISC_DIGIT: 
replace -1th MISC_DIGIT with '*': <OH! DARLING>
replace 0th MISC_DIGIT with '*': <OH! DARLING>
replace 1th MISC_DIGIT with '*': <OH! DARLING>
replace 2th MISC_DIGIT with '*': <OH! DARLING>
replace 3th MISC_DIGIT with '*': <OH! DARLING>
replace 4th MISC_DIGIT with '*': <OH! DARLING>
replaceAll MISC_DIGIT with '*': <OH! DARLING>
Is all MISC_XDIGIT? 0
Has    MISC_XDIGIT? 1
Num of MISC_XDIGIT: 2
spotsof MISC_XDIGIT: 4 5 
rspotsof MISC_XDIGIT: 5 4 
replace -1th MISC_XDIGIT with '*': <OH! D*RLING>
replace 0th MISC_XDIGIT with '*': <OH! *ARLING>
replace 1th MISC_XDIGIT with '*': <OH! D*RLING>
replace 2th MISC_XDIGIT with '*': <OH! DARLING>
replace 3th MISC_XDIGIT with '*': <OH! DARLING>
replace 4th MISC_XDIGIT with '*': <OH! DARLING>
replaceAll MISC_XDIGIT with '*': <OH! **RLING>
Is all MISC_PUNCT? 0
Has    MISC_PUNCT? 1
Num of MISC_PUNCT: 1
spotsof MISC_PUNCT: 2 
rspotsof MISC_PUNCT: 2 
replace -1th MISC_PUNCT with '*': <OH* DARLING>
replace 0th MISC_PUNCT with '*': <OH* DARLING>
replace 1th MISC_PUNCT with '*': <OH! DARLING>
replace 2th MISC_PUNCT with '*': <OH! DARLING>
replace 3th MISC_PUNCT with '*': <OH! DARLING>
replace 4th MISC_PUNCT with '*': <OH! DARLING>
replaceAll MISC_PUNCT with '*': <OH* DARLING>
Is all MISC_ASCII? 1
Has    MISC_ASCII? 1
Num of MISC_ASCII: 11
spotsof MISC_ASCII: 0 1 2 3 4 5 6 7 8 9 10 
rspotsof MISC_ASCII: 10 9 8 7 6 5 4 3 2 1 0 
replace -1th MISC_ASCII with '*': <OH! DARLIN*>
replace 0th MISC_ASCII with '*': <*H! DARLING>
replace 1th MISC_ASCII with '*': <O*! DARLING>
replace 2th MISC_ASCII with '*': <OH* DARLING>
replace 3th MISC_ASCII with '*': <OH!*DARLING>
replace 4th MISC_ASCII with '*': <OH! *ARLING>
replaceAll MISC_ASCII with '*': <***********>
Is all MISC_CNTRL? 0
Has    MISC_CNTRL? 0
Num of MISC_CNTRL: 0
spotsof MISC_CNTRL: 
rspotsof MISC_CNTRL: 
replace -1th MISC_CNTRL with '*': <OH! DARLING>
replace 0th MISC_CNTRL with '*': <OH! DARLING>
replace 1th MISC_CNTRL with '*': <OH! DARLING>
replace 2th MISC_CNTRL with '*': <OH! DARLING>
replace 3th MISC_CNTRL with '*': <OH! DARLING>
replace 4th MISC_CNTRL with '*': <OH! DARLING>
replaceAll MISC_CNTRL with '*': <OH! DARLING>
Is all MISC_PRINT? 1
Has    MISC_PRINT? 1
Num of MISC_PRINT: 11
spotsof MISC_PRINT: 0 1 2 3 4 5 6 7 8 9 10 
rspotsof MISC_PRINT: 10 9 8 7 6 5 4 3 2 1 0 
replace -1th MISC_PRINT with '*': <OH! DARLIN*>
replace 0th MISC_PRINT with '*': <*H! DARLING>
replace 1th MISC_PRINT with '*': <O*! DARLING>
replace 2th MISC_PRINT with '*': <OH* DARLING>
replace 3th MISC_PRINT with '*': <OH!*DARLING>
replace 4th MISC_PRINT with '*': <OH! *ARLING>
replaceAll MISC_PRINT with '*': <***********>
Is all MISC_SPACE? 0
Has    MISC_SPACE? 1
Num of MISC_SPACE: 1
spotsof MISC_SPACE: 3 
rspotsof MISC_SPACE: 3 
replace -1th MISC_SPACE with '*': <OH!*DARLING>
replace 0th MISC_SPACE with '*': <OH!*DARLING>
replace 1th MISC_SPACE with '*': <OH! DARLING>
replace 2th MISC_SPACE with '*': <OH! DARLING>
replace 3th MISC_SPACE with '*': <OH! DARLING>
replace 4th MISC_SPACE with '*': <OH! DARLING>
replaceAll MISC_SPACE with '*': <OH!*DARLING>
Is all MISC_GRAPH? 0
Has    MISC_GRAPH? 1
Num of MISC_GRAPH: 10
spotsof MISC_GRAPH: 0 1 2 4 5 6 7 8 9 10 
rspotsof MISC_GRAPH: 10 9 8 7 6 5 4 2 1 0 
replace -1th MISC_GRAPH with '*': <OH! DARLIN*>
replace 0th MISC_GRAPH with '*': <*H! DARLING>
replace 1th MISC_GRAPH with '*': <O*! DARLING>
replace 2th MISC_GRAPH with '*': <OH* DARLING>
replace 3th MISC_GRAPH with '*': <OH! *ARLING>
replace 4th MISC_GRAPH with '*': <OH! D*RLING>
replaceAll MISC_GRAPH with '*': <*** *******>
Is all MISC_ALPHA? 0
Has    MISC_ALPHA? 1
Num of MISC_ALPHA: 9
spotsof MISC_ALPHA: 0 1 4 5 6 7 8 9 10 
rspotsof MISC_ALPHA: 10 9 8 7 6 5 4 1 0 
replace -1th MISC_ALPHA with '*': <OH! DARLIN*>
replace 0th MISC_ALPHA with '*': <*H! DARLING>
replace 1th MISC_ALPHA with '*': <O*! DARLING>
replace 2th MISC_ALPHA with '*': <OH! *ARLING>
replace 3th MISC_ALPHA with '*': <OH! D*RLING>
replace 4th MISC_ALPHA with '*': <OH! DA*LING>
replaceAll MISC_ALPHA with '*': <**! *******>
Is all MISC_ALNUM? 0
Has    MISC_ALNUM? 1
Num of MISC_ALNUM: 9
spotsof MISC_ALNUM: 0 1 4 5 6 7 8 9 10 
rspotsof MISC_ALNUM: 10 9 8 7 6 5 4 1 0 
replace -1th MISC_ALNUM with '*': <OH! DARLIN*>
replace 0th MISC_ALNUM with '*': <*H! DARLING>
replace 1th MISC_ALNUM with '*': <O*! DARLING>
replace 2th MISC_ALNUM with '*': <OH! *ARLING>
replace 3th MISC_ALNUM with '*': <OH! D*RLING>
replace 4th MISC_ALNUM with '*': <OH! DA*LING>
replaceAll MISC_ALNUM with '*': <**! *******>

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.