equal
deleted
inserted
replaced
323 invalid: |
323 invalid: |
324 CharacterArray fromUTF8Bytes:#[ 16rC0 16r80 ] |
324 CharacterArray fromUTF8Bytes:#[ 16rC0 16r80 ] |
325 CharacterArray fromUTF8Bytes:#[ 16rE0 16r80 16r80 ] |
325 CharacterArray fromUTF8Bytes:#[ 16rE0 16r80 16r80 ] |
326 " |
326 " |
327 ! ! |
327 ! ! |
|
328 |
328 |
329 |
329 !CharacterArray class methodsFor:'pattern matching'! |
330 !CharacterArray class methodsFor:'pattern matching'! |
330 |
331 |
331 matchEscapeCharacter |
332 matchEscapeCharacter |
332 "return the character used to escape a matchCharacter |
333 "return the character used to escape a matchCharacter |
721 Abstract subclasses must redefine again." |
722 Abstract subclasses must redefine again." |
722 |
723 |
723 ^ self == CharacterArray |
724 ^ self == CharacterArray |
724 ! ! |
725 ! ! |
725 |
726 |
|
727 |
726 !CharacterArray methodsFor:'Compatibility-ANSI'! |
728 !CharacterArray methodsFor:'Compatibility-ANSI'! |
727 |
729 |
728 addLineDelimiters |
730 addLineDelimiters |
729 "Ansi compatibility - same as withCRs" |
731 "Ansi compatibility - same as withCRs" |
730 |
732 |
4801 |
4803 |
4802 "Created: / 08-03-2012 / 03:11:11 / cg" |
4804 "Created: / 08-03-2012 / 03:11:11 / cg" |
4803 ! ! |
4805 ! ! |
4804 |
4806 |
4805 |
4807 |
|
4808 |
4806 !CharacterArray methodsFor:'padded copying'! |
4809 !CharacterArray methodsFor:'padded copying'! |
4807 |
4810 |
4808 centerPaddedTo:newSize |
4811 centerPaddedTo:newSize |
4809 "return a new string consisting of the receivers characters, |
4812 "return a new string consisting of the receivers characters, |
4810 plus spaces up to length and center the receivers characters in |
4813 plus spaces up to length and center the receivers characters in |
5019 This method allows for any object to be displayed in some view |
5022 This method allows for any object to be displayed in some view |
5020 (although the fallBack is to display its printString ...)" |
5023 (although the fallBack is to display its printString ...)" |
5021 |
5024 |
5022 "/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
5025 "/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
5023 "/ ST/X (and some old ST80's) mean: draw-yourself on a GC. |
5026 "/ ST/X (and some old ST80's) mean: draw-yourself on a GC. |
5024 (aGCOrStream isStream or:[aGCOrStream == Transcript]) ifTrue:[ |
5027 (aGCOrStream isStream) ifTrue:[ |
5025 self storeOn:aGCOrStream. |
5028 self storeOn:aGCOrStream. |
5026 ^ self |
5029 ^ self |
5027 ]. |
5030 ]. |
5028 ^ super displayOn:aGCOrStream |
5031 ^ super displayOn:aGCOrStream |
5029 ! |
5032 ! |
5428 " |
5431 " |
5429 |
5432 |
5430 "Created: 12.5.1996 / 20:09:29 / cg" |
5433 "Created: 12.5.1996 / 20:09:29 / cg" |
5431 "Modified: 17.4.1997 / 12:50:23 / cg" |
5434 "Modified: 17.4.1997 / 12:50:23 / cg" |
5432 ! ! |
5435 ! ! |
|
5436 |
5433 |
5437 |
5434 !CharacterArray methodsFor:'special string converting'! |
5438 !CharacterArray methodsFor:'special string converting'! |
5435 |
5439 |
5436 expandPlaceholders:escapeCharacter with:argArrayOrDictionary |
5440 expandPlaceholders:escapeCharacter with:argArrayOrDictionary |
5437 "this is the generic version of the old %-escaping method, allowing for an arbitrary |
5441 "this is the generic version of the old %-escaping method, allowing for an arbitrary |
6375 (' ' , Character tab asString , ' foo ') withoutTrailingSeparators inspect |
6379 (' ' , Character tab asString , ' foo ') withoutTrailingSeparators inspect |
6376 (' foo' , Character tab asString) withoutTrailingSeparators inspect |
6380 (' foo' , Character tab asString) withoutTrailingSeparators inspect |
6377 " |
6381 " |
6378 ! ! |
6382 ! ! |
6379 |
6383 |
|
6384 |
6380 !CharacterArray methodsFor:'substring searching'! |
6385 !CharacterArray methodsFor:'substring searching'! |
6381 |
6386 |
6382 findRangeOfString:subString |
6387 findRangeOfString:subString |
6383 "find a substring. if found, return the start- and endIndex; |
6388 "find a substring. if found, return the start- and endIndex; |
6384 if not found, return an empty interval." |
6389 if not found, return an empty interval." |
6961 ! ! |
6966 ! ! |
6962 |
6967 |
6963 !CharacterArray class methodsFor:'documentation'! |
6968 !CharacterArray class methodsFor:'documentation'! |
6964 |
6969 |
6965 version |
6970 version |
6966 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.536 2014-07-09 16:21:21 cg Exp $' |
6971 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.537 2014-07-10 12:23:18 cg Exp $' |
6967 ! |
6972 ! |
6968 |
6973 |
6969 version_CVS |
6974 version_CVS |
6970 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.536 2014-07-09 16:21:21 cg Exp $' |
6975 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.537 2014-07-10 12:23:18 cg Exp $' |
6971 ! ! |
6976 ! ! |
6972 |
6977 |
6973 |
6978 |
6974 CharacterArray initialize! |
6979 CharacterArray initialize! |