equal
deleted
inserted
replaced
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 |
677 Abstract subclasses must redefine again." |
675 Abstract subclasses must redefine again." |
678 |
676 |
679 ^ self == CharacterArray |
677 ^ self == CharacterArray |
680 ! ! |
678 ! ! |
681 |
679 |
682 |
|
683 !CharacterArray methodsFor:'Compatibility-ANSI'! |
680 !CharacterArray methodsFor:'Compatibility-ANSI'! |
684 |
681 |
685 addLineDelimiters |
682 addLineDelimiters |
686 "Ansi compatibility - same as withCRs" |
683 "Ansi compatibility - same as withCRs" |
687 |
684 |
1569 "added for visual works compatibility" |
1566 "added for visual works compatibility" |
1570 ^ true |
1567 ^ true |
1571 ! ! |
1568 ! ! |
1572 |
1569 |
1573 |
1570 |
1574 |
|
1575 !CharacterArray methodsFor:'character searching'! |
1571 !CharacterArray methodsFor:'character searching'! |
1576 |
1572 |
1577 includesMatchCharacters |
1573 includesMatchCharacters |
1578 "return true if the receiver includes any GLOB meta-match characters (i.e. $* or $#) |
1574 "return true if the receiver includes any GLOB meta-match characters (i.e. $* or $#) |
1579 for match operations; false if not. |
1575 for match operations; false if not. |
3948 |
3944 |
3949 "Modified: / 11-05-2010 / 19:12:37 / cg" |
3945 "Modified: / 11-05-2010 / 19:12:37 / cg" |
3950 ! ! |
3946 ! ! |
3951 |
3947 |
3952 |
3948 |
3953 |
|
3954 |
|
3955 !CharacterArray methodsFor:'matching - glob expressions'! |
3949 !CharacterArray methodsFor:'matching - glob expressions'! |
3956 |
3950 |
3957 compoundMatch:aString |
3951 compoundMatch:aString |
3958 "like match, but the receiver may be a compound match pattern, |
3952 "like match, but the receiver may be a compound match pattern, |
3959 consisting of multiple simple GLOB patterns, separated by semicolons. |
3953 consisting of multiple simple GLOB patterns, separated by semicolons. |
4392 |
4386 |
4393 ^ aPatternString match:self ignoreCase:ignoreCase |
4387 ^ aPatternString match:self ignoreCase:ignoreCase |
4394 |
4388 |
4395 "Created: / 08-03-2012 / 03:11:11 / cg" |
4389 "Created: / 08-03-2012 / 03:11:11 / cg" |
4396 ! ! |
4390 ! ! |
4397 |
|
4398 |
4391 |
4399 |
4392 |
4400 !CharacterArray methodsFor:'padded copying'! |
4393 !CharacterArray methodsFor:'padded copying'! |
4401 |
4394 |
4402 centerPaddedTo:newSize |
4395 centerPaddedTo:newSize |
4595 ]. |
4588 ]. |
4596 |
4589 |
4597 ^ '''' , self , '''' |
4590 ^ '''' , self , '''' |
4598 |
4591 |
4599 " |
4592 " |
4600 '''immutable'' string' asImmutableString basicStoreString |
4593 '''immutable'' string' asImmutableString basicStoreString |
|
4594 'immutable string' asImmutableString basicStoreString |
4601 " |
4595 " |
4602 |
4596 |
4603 "Modified: / 14-07-2013 / 19:20:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4597 "Modified: / 14-07-2013 / 19:20:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4604 ! |
4598 ! |
4605 |
4599 |
4925 " |
4919 " |
4926 |
4920 |
4927 "Created: 12.5.1996 / 20:09:29 / cg" |
4921 "Created: 12.5.1996 / 20:09:29 / cg" |
4928 "Modified: 17.4.1997 / 12:50:23 / cg" |
4922 "Modified: 17.4.1997 / 12:50:23 / cg" |
4929 ! ! |
4923 ! ! |
4930 |
|
4931 |
4924 |
4932 !CharacterArray methodsFor:'special string converting'! |
4925 !CharacterArray methodsFor:'special string converting'! |
4933 |
4926 |
4934 expandPlaceholders:escapeCharacter with:argArrayOrDictionary |
4927 expandPlaceholders:escapeCharacter with:argArrayOrDictionary |
4935 "this is the generic version of the old %-escaping method, allowing for an arbitrary |
4928 "this is the generic version of the old %-escaping method, allowing for an arbitrary |
5871 (' ' , Character tab asString , ' foo ') withoutTrailingSeparators inspect |
5864 (' ' , Character tab asString , ' foo ') withoutTrailingSeparators inspect |
5872 (' foo' , Character tab asString) withoutTrailingSeparators inspect |
5865 (' foo' , Character tab asString) withoutTrailingSeparators inspect |
5873 " |
5866 " |
5874 ! ! |
5867 ! ! |
5875 |
5868 |
5876 |
|
5877 !CharacterArray methodsFor:'substring searching'! |
5869 !CharacterArray methodsFor:'substring searching'! |
5878 |
5870 |
5879 findRangeOfString:subString |
5871 findRangeOfString:subString |
5880 "find a substring. if found, return the start- and endIndex; |
5872 "find a substring. if found, return the start- and endIndex; |
5881 if not found, return an empty interval." |
5873 if not found, return an empty interval." |
6422 ! ! |
6414 ! ! |
6423 |
6415 |
6424 !CharacterArray class methodsFor:'documentation'! |
6416 !CharacterArray class methodsFor:'documentation'! |
6425 |
6417 |
6426 version |
6418 version |
6427 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.507 2013-07-14 22:48:34 stefan Exp $' |
6419 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.508 2013-07-23 17:21:14 cg Exp $' |
6428 ! |
6420 ! |
6429 |
6421 |
6430 version_CVS |
6422 version_CVS |
6431 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.507 2013-07-14 22:48:34 stefan Exp $' |
6423 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.508 2013-07-23 17:21:14 cg Exp $' |
6432 ! ! |
6424 ! ! |
6433 |
6425 |
6434 |
6426 |
6435 CharacterArray initialize! |
6427 CharacterArray initialize! |