equal
deleted
inserted
replaced
5765 '/etc/passwd' asFilename readStream nextLine tokensBasedOn:$: |
5765 '/etc/passwd' asFilename readStream nextLine tokensBasedOn:$: |
5766 " |
5766 " |
5767 ! |
5767 ! |
5768 |
5768 |
5769 withCEscapes |
5769 withCEscapes |
5770 "return a new string consisting of receivers characters |
5770 "return a new string consisting of receiver's characters |
5771 with all special and unprintable characters replaced by \X-character escapes. |
5771 with all special and unprintable characters replaced by \X-character escapes. |
5772 (similar to the way C-language literal Strings are represented). |
5772 (similar to the way C-language literal Strings are represented). |
5773 The resulting string will contain only 7-bit ascii characters. |
5773 The resulting string will contain only 7-bit ascii characters. |
5774 Emphasis is not supported. |
5774 Emphasis is not supported. |
5775 The following escapes are generated: |
5775 The following escapes are generated: |
5781 \t tab character |
5781 \t tab character |
5782 \\ the \ character itself |
5782 \\ the \ character itself |
5783 \xnn two digit hex number defining the characters ascii value |
5783 \xnn two digit hex number defining the characters ascii value |
5784 \unnnn four digit hex number defining the characters ascii value |
5784 \unnnn four digit hex number defining the characters ascii value |
5785 \Unnnnnnnn eight digit hex number defining the characters ascii value |
5785 \Unnnnnnnn eight digit hex number defining the characters ascii value |
|
5786 This is the opposite of withoutCEscapes. |
5786 " |
5787 " |
5787 |
5788 |
5788 |anyEscapeNeeded out seq| |
5789 |anyEscapeNeeded out seq| |
5789 |
5790 |
5790 " |
5791 " |
6146 by the compiler (due to a lack of a language standard for this). |
6147 by the compiler (due to a lack of a language standard for this). |
6147 However, the compiler may detect sends ot #withEscapes to string literals |
6148 However, the compiler may detect sends ot #withEscapes to string literals |
6148 and place a modified string constant into the binary/byte-code. |
6149 and place a modified string constant into the binary/byte-code. |
6149 Therefore, no runtime penalty will be payed for using these escapes. |
6150 Therefore, no runtime penalty will be payed for using these escapes. |
6150 (not in pre 2.11 versions) |
6151 (not in pre 2.11 versions) |
|
6152 |
|
6153 This is the opposite of withCEscapes. |
6151 " |
6154 " |
6152 |
6155 |
6153 |val "{ SmallInteger }" |
6156 |val "{ SmallInteger }" |
6154 in out nextChar nDigits| |
6157 in out nextChar nDigits| |
6155 |
6158 |
6999 ! ! |
7002 ! ! |
7000 |
7003 |
7001 !CharacterArray class methodsFor:'documentation'! |
7004 !CharacterArray class methodsFor:'documentation'! |
7002 |
7005 |
7003 version |
7006 version |
7004 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.541 2014-09-23 20:49:18 cg Exp $' |
7007 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.542 2014-09-26 16:17:09 cg Exp $' |
7005 ! |
7008 ! |
7006 |
7009 |
7007 version_CVS |
7010 version_CVS |
7008 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.541 2014-09-23 20:49:18 cg Exp $' |
7011 ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.542 2014-09-26 16:17:09 cg Exp $' |
7009 ! ! |
7012 ! ! |
7010 |
7013 |
7011 |
7014 |
7012 CharacterArray initialize! |
7015 CharacterArray initialize! |