equal
deleted
inserted
replaced
10 hereby transferred. |
10 hereby transferred. |
11 " |
11 " |
12 "{ Package: 'stx:libbasic' }" |
12 "{ Package: 'stx:libbasic' }" |
13 |
13 |
14 UninterpretedBytes variableByteSubclass:#CharacterArray |
14 UninterpretedBytes variableByteSubclass:#CharacterArray |
15 instanceVariableNames:'' |
15 instanceVariableNames:'' |
16 classVariableNames:'PreviousMatch DecoderTables EncoderTables DecodingFailedSignal |
16 classVariableNames:'PreviousMatch DecoderTables EncoderTables DecodingFailedSignal |
17 EncodingFailedSignal' |
17 EncodingFailedSignal' |
18 poolDictionaries:'' |
18 poolDictionaries:'' |
19 category:'Collections-Text' |
19 category:'Collections-Text' |
20 ! |
20 ! |
21 |
21 |
22 !CharacterArray class methodsFor:'documentation'! |
22 !CharacterArray class methodsFor:'documentation'! |
23 |
23 |
24 copyright |
24 copyright |
281 |
281 |
282 "Modified: 28.6.1997 / 20:09:35 / cg" |
282 "Modified: 28.6.1997 / 20:09:35 / cg" |
283 "Created: 3.8.1997 / 18:16:40 / cg" |
283 "Created: 3.8.1997 / 18:16:40 / cg" |
284 ! ! |
284 ! ! |
285 |
285 |
286 |
|
287 !CharacterArray class methodsFor:'cleanup'! |
286 !CharacterArray class methodsFor:'cleanup'! |
288 |
287 |
289 lowSpaceCleanup |
288 lowSpaceCleanup |
290 "cleanup in low-memory situations" |
289 "cleanup in low-memory situations" |
291 |
290 |
324 invalid: |
323 invalid: |
325 CharacterArray fromUTF8Bytes:#[ 16rC0 16r80 ] |
324 CharacterArray fromUTF8Bytes:#[ 16rC0 16r80 ] |
326 CharacterArray fromUTF8Bytes:#[ 16rE0 16r80 16r80 ] |
325 CharacterArray fromUTF8Bytes:#[ 16rE0 16r80 16r80 ] |
327 " |
326 " |
328 ! ! |
327 ! ! |
329 |
|
330 |
328 |
331 !CharacterArray class methodsFor:'pattern matching'! |
329 !CharacterArray class methodsFor:'pattern matching'! |
332 |
330 |
333 matchEscapeCharacter |
331 matchEscapeCharacter |
334 "return the character used to escape a matchCharacter |
332 "return the character used to escape a matchCharacter |
3591 self halt:'check if this is legal'. |
3589 self halt:'check if this is legal'. |
3592 ]. |
3590 ]. |
3593 newElement isByteCollection ifTrue:[ |
3591 newElement isByteCollection ifTrue:[ |
3594 self halt:'check if this is legal'. |
3592 self halt:'check if this is legal'. |
3595 ]. |
3593 ]. |
3596 ^ self asString replaceAll:oldElement with:newElement |
3594 ^ super copyReplaceAll:oldElement with:newElement |
3597 |
|
3598 "Created: / 18.7.1998 / 23:03:38 / cg" |
|
3599 ! |
3595 ! |
3600 |
3596 |
3601 copyReplaceString:subString withString:newString |
3597 copyReplaceString:subString withString:newString |
3602 "return a copy of the receiver, with all sequences of subString replaced |
3598 "return a copy of the receiver, with all sequences of subString replaced |
3603 by newString (i.e. slice in the newString in place of the oldString)." |
3599 by newString (i.e. slice in the newString in place of the oldString)." |
4087 'abcdeäöüß' utf8Encoded |
4083 'abcdeäöüß' utf8Encoded |
4088 " |
4084 " |
4089 |
4085 |
4090 "Modified: / 11-05-2010 / 19:12:37 / cg" |
4086 "Modified: / 11-05-2010 / 19:12:37 / cg" |
4091 ! ! |
4087 ! ! |
4092 |
|
4093 |
|
4094 |
4088 |
4095 |
4089 |
4096 !CharacterArray methodsFor:'matching - glob expressions'! |
4090 !CharacterArray methodsFor:'matching - glob expressions'! |
4097 |
4091 |
4098 compoundMatch:aString |
4092 compoundMatch:aString |
4772 |
4766 |
4773 ^ aPatternString match:self caseSensitive:ignoreCase not |
4767 ^ aPatternString match:self caseSensitive:ignoreCase not |
4774 |
4768 |
4775 "Created: / 08-03-2012 / 03:11:11 / cg" |
4769 "Created: / 08-03-2012 / 03:11:11 / cg" |
4776 ! ! |
4770 ! ! |
4777 |
|
4778 |
4771 |
4779 |
4772 |
4780 !CharacterArray methodsFor:'padded copying'! |
4773 !CharacterArray methodsFor:'padded copying'! |
4781 |
4774 |
4782 centerPaddedTo:newSize |
4775 centerPaddedTo:newSize |
5402 " |
5395 " |
5403 |
5396 |
5404 "Created: 12.5.1996 / 20:09:29 / cg" |
5397 "Created: 12.5.1996 / 20:09:29 / cg" |
5405 "Modified: 17.4.1997 / 12:50:23 / cg" |
5398 "Modified: 17.4.1997 / 12:50:23 / cg" |
5406 ! ! |
5399 ! ! |
5407 |
|
5408 |
5400 |
5409 !CharacterArray methodsFor:'special string converting'! |
5401 !CharacterArray methodsFor:'special string converting'! |
5410 |
5402 |
5411 expandPlaceholders:escapeCharacter with:argArrayOrDictionary |
5403 expandPlaceholders:escapeCharacter with:argArrayOrDictionary |
5412 "this is the generic version of the old %-escaping method, allowing for an arbitrary |
5404 "this is the generic version of the old %-escaping method, allowing for an arbitrary |
6348 (' ' , Character tab asString , ' foo ') withoutTrailingSeparators inspect |
6340 (' ' , Character tab asString , ' foo ') withoutTrailingSeparators inspect |
6349 (' foo' , Character tab asString) withoutTrailingSeparators inspect |
6341 (' foo' , Character tab asString) withoutTrailingSeparators inspect |
6350 " |
6342 " |
6351 ! ! |
6343 ! ! |
6352 |
6344 |
6353 |
|
6354 !CharacterArray methodsFor:'substring searching'! |
6345 !CharacterArray methodsFor:'substring searching'! |
6355 |
6346 |
6356 findRangeOfString:subString |
6347 findRangeOfString:subString |
6357 "find a substring. if found, return the start- and endIndex; |
6348 "find a substring. if found, return the start- and endIndex; |
6358 if not found, return an empty interval." |
6349 if not found, return an empty interval." |
6931 acceptVisitor:aVisitor with:aParameter |
6922 acceptVisitor:aVisitor with:aParameter |
6932 |
6923 |
6933 ^ aVisitor visitString:self with:aParameter |
6924 ^ aVisitor visitString:self with:aParameter |
6934 ! ! |
6925 ! ! |
6935 |
6926 |
6936 |
|
6937 !CharacterArray class methodsFor:'documentation'! |
6927 !CharacterArray class methodsFor:'documentation'! |
6938 |
6928 |
6939 version |
6929 version |
6940 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.527 2014-03-04 23:01:45 cg Exp $' |
6930 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.528 2014-03-05 11:38:05 stefan Exp $' |
6941 ! |
6931 ! |
6942 |
6932 |
6943 version_CVS |
6933 version_CVS |
6944 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.527 2014-03-04 23:01:45 cg Exp $' |
6934 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.528 2014-03-05 11:38:05 stefan Exp $' |
6945 ! ! |
6935 ! ! |
6946 |
6936 |
6947 |
6937 |
6948 CharacterArray initialize! |
6938 CharacterArray initialize! |