equal
deleted
inserted
replaced
2046 replChar:oldChar with:newChar |
2046 replChar:oldChar with:newChar |
2047 "return a copy of the receiver, with all oldChars replaced |
2047 "return a copy of the receiver, with all oldChars replaced |
2048 by newChar. |
2048 by newChar. |
2049 This is an ST/V compatibility method." |
2049 This is an ST/V compatibility method." |
2050 |
2050 |
2051 ^ self copy replaceAll:oldChar with:newChar |
2051 ^ self copyReplaceAll:oldChar with:newChar |
2052 |
2052 |
2053 " |
2053 " |
2054 '12345678901234567890' replChar:$0 with:$* |
2054 '12345678901234567890' replChar:$0 with:$* |
2055 " |
2055 " |
|
2056 |
|
2057 "Modified: / 18.7.1998 / 22:52:57 / cg" |
2056 ! |
2058 ! |
2057 |
2059 |
2058 replChar:oldChar withString:newString |
2060 replChar:oldChar withString:newString |
2059 "return a copy of the receiver, with all oldChars replaced |
2061 "return a copy of the receiver, with all oldChars replaced |
2060 by newString (i.e. slice in the newString in place of the oldChar). |
2062 by newString (i.e. slice in the newString in place of the oldChar). |
4300 |
4302 |
4301 withCRs |
4303 withCRs |
4302 "return a new string consisting of receivers characters |
4304 "return a new string consisting of receivers characters |
4303 with all \-characters replaced by cr-characters." |
4305 with all \-characters replaced by cr-characters." |
4304 |
4306 |
4305 ^ self copy replaceAll:$\ with:(Character cr) |
4307 ^ self copyReplaceAll:$\ with:(Character cr) |
4306 |
4308 |
4307 " |
4309 " |
4308 'hello\world' withCRs |
4310 'hello\world' withCRs |
4309 " |
4311 " |
|
4312 |
|
4313 "Modified: / 18.7.1998 / 22:53:02 / cg" |
4310 ! |
4314 ! |
4311 |
4315 |
4312 withEscapes |
4316 withEscapes |
4313 "return a new string consisting of receivers characters |
4317 "return a new string consisting of receivers characters |
4314 with all \X-character escapes replaced by corresponding-characters. |
4318 with all \X-character escapes replaced by corresponding-characters. |
4578 withoutCRs |
4582 withoutCRs |
4579 "return a new collection consisting of receivers elements |
4583 "return a new collection consisting of receivers elements |
4580 with all cr-characters replaced by \-characters. |
4584 with all cr-characters replaced by \-characters. |
4581 This is the reverse operation of withCRs." |
4585 This is the reverse operation of withCRs." |
4582 |
4586 |
4583 ^ self copy replaceAll:(Character cr) with:$\ |
4587 ^ self copyReplaceAll:(Character cr) with:$\ |
4584 " |
4588 " |
4585 'hello |
4589 'hello |
4586 world' withoutCRs |
4590 world' withoutCRs |
4587 " |
4591 " |
|
4592 |
|
4593 "Modified: / 18.7.1998 / 22:53:08 / cg" |
4588 ! |
4594 ! |
4589 |
4595 |
4590 withoutLeadingSeparators |
4596 withoutLeadingSeparators |
4591 "return a copy of myself without leading separators. |
4597 "return a copy of myself without leading separators. |
4592 Notice: this does remove tabs, newline or any other whitespace. |
4598 Notice: this does remove tabs, newline or any other whitespace. |
5175 ! ! |
5181 ! ! |
5176 |
5182 |
5177 !CharacterArray class methodsFor:'documentation'! |
5183 !CharacterArray class methodsFor:'documentation'! |
5178 |
5184 |
5179 version |
5185 version |
5180 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.151 1998-07-06 19:59:18 cg Exp $' |
5186 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.152 1998-07-20 11:13:01 cg Exp $' |
5181 ! ! |
5187 ! ! |
5182 CharacterArray initialize! |
5188 CharacterArray initialize! |