equal
deleted
inserted
replaced
676 |
676 |
677 " |
677 " |
678 self unicodeNormalizationMap |
678 self unicodeNormalizationMap |
679 " |
679 " |
680 ! ! |
680 ! ! |
|
681 |
681 |
682 |
682 !CharacterArray class methodsFor:'pattern matching'! |
683 !CharacterArray class methodsFor:'pattern matching'! |
683 |
684 |
684 matchEscapeCharacter |
685 matchEscapeCharacter |
685 "return the character used to escape a matchCharacter |
686 "return the character used to escape a matchCharacter |
1084 characterSize <= 8 ifTrue:[^ String]. |
1085 characterSize <= 8 ifTrue:[^ String]. |
1085 characterSize <= 16 ifTrue:[^ Unicode16String]. |
1086 characterSize <= 16 ifTrue:[^ Unicode16String]. |
1086 ^ Unicode32String |
1087 ^ Unicode32String |
1087 ! ! |
1088 ! ! |
1088 |
1089 |
|
1090 |
1089 !CharacterArray class methodsFor:'utilities'! |
1091 !CharacterArray class methodsFor:'utilities'! |
1090 |
1092 |
1091 through:aCharacter in:inStream |
1093 through:aCharacter in:inStream |
1092 "read all characters through aCharacter and return a |
1094 "read all characters through aCharacter and return a |
1093 dense strings for it (i.e. String/TwoByteString, if possible). |
1095 dense strings for it (i.e. String/TwoByteString, if possible). |
3928 '(1/5)' asFloat |
3930 '(1/5)' asFloat |
3929 Object errorSignal handle:[:ex | ex return:0] do:['foo' asFloat] |
3931 Object errorSignal handle:[:ex | ex return:0] do:['foo' asFloat] |
3930 " |
3932 " |
3931 ! |
3933 ! |
3932 |
3934 |
|
3935 asImmutableCollection |
|
3936 "fallback for subclasses of me which are not single byte strings. |
|
3937 return myself" |
|
3938 |
|
3939 ^ self |
|
3940 ! |
|
3941 |
|
3942 asImmutableString |
|
3943 "fallback for subclasses of me which are not single byte strings. |
|
3944 return myself" |
|
3945 |
|
3946 ^ self |
|
3947 ! |
|
3948 |
3933 asInteger |
3949 asInteger |
3934 "convert the receiver into an integer. |
3950 "convert the receiver into an integer. |
3935 Notice, that errors may occur during the read, |
3951 Notice, that errors may occur during the read, |
3936 so you better setup some exception handler when using this method. |
3952 so you better setup some exception handler when using this method. |
3937 Also notice, that this method here is more strict than the code found |
3953 Also notice, that this method here is more strict than the code found |
7792 " |
7808 " |
7793 |
7809 |
7794 "Created: 12.5.1996 / 20:09:29 / cg" |
7810 "Created: 12.5.1996 / 20:09:29 / cg" |
7795 "Modified: 17.4.1997 / 12:50:23 / cg" |
7811 "Modified: 17.4.1997 / 12:50:23 / cg" |
7796 ! ! |
7812 ! ! |
|
7813 |
7797 |
7814 |
7798 !CharacterArray methodsFor:'special string converting'! |
7815 !CharacterArray methodsFor:'special string converting'! |
7799 |
7816 |
7800 asUnixFilenameString |
7817 asUnixFilenameString |
7801 "return a new string consisting of receiver's characters |
7818 "return a new string consisting of receiver's characters |
9757 " |
9774 " |
9758 |
9775 |
9759 "Modified (comment): / 12-12-2019 / 14:15:09 / Stefan Vogel" |
9776 "Modified (comment): / 12-12-2019 / 14:15:09 / Stefan Vogel" |
9760 ! ! |
9777 ! ! |
9761 |
9778 |
|
9779 |
9762 !CharacterArray methodsFor:'substring searching'! |
9780 !CharacterArray methodsFor:'substring searching'! |
9763 |
9781 |
9764 findRangeOfString:subString |
9782 findRangeOfString:subString |
9765 "find a substring. if found, return the start- and endIndex; |
9783 "find a substring. if found, return the start- and endIndex; |
9766 if not found, return an empty interval." |
9784 if not found, return an empty interval." |