From 3a0225626e64982fc6710c30da70543ead29d040 Mon Sep 17 00:00:00 2001 From: Dale Henrichs Date: Tue, 12 Mar 2024 15:14:12 -0700 Subject: [PATCH] dalehenrich/Rowan4GsDevKit#1: GsDevKit unescapePercents implementation interferes with operation of Rowan --- .../instance/unescapePercents.st | 7 ------ .../instance/unescapePercents.st | 8 ------- .../instance/unescapePercents.st | 23 ------------------- 3 files changed, 38 deletions(-) delete mode 100644 repository/GsSqueakCommon-Core.package/MultiByteString.extension/instance/unescapePercents.st delete mode 100644 repository/GsSqueakCommon-Core.package/String.extension/instance/unescapePercents.st delete mode 100644 repository/Squeak.v37.package/CharacterCollection.extension/instance/unescapePercents.st diff --git a/repository/GsSqueakCommon-Core.package/MultiByteString.extension/instance/unescapePercents.st b/repository/GsSqueakCommon-Core.package/MultiByteString.extension/instance/unescapePercents.st deleted file mode 100644 index fa480f013..000000000 --- a/repository/GsSqueakCommon-Core.package/MultiByteString.extension/instance/unescapePercents.st +++ /dev/null @@ -1,7 +0,0 @@ -*gssqueakcommon-core -unescapePercents - "change each %XY substring to the character with ASCII value XY in hex. This is the opposite of #encodeForHTTP. - Assume UTF8 encoding for Pharo compatibility" - - "this method not implemented in CharacterCollection in order to preserve original behavior without overrides" - ^self unescapePercentsWithTextEncoding: 'utf-8' \ No newline at end of file diff --git a/repository/GsSqueakCommon-Core.package/String.extension/instance/unescapePercents.st b/repository/GsSqueakCommon-Core.package/String.extension/instance/unescapePercents.st deleted file mode 100644 index 6fef1b1df..000000000 --- a/repository/GsSqueakCommon-Core.package/String.extension/instance/unescapePercents.st +++ /dev/null @@ -1,8 +0,0 @@ -*gssqueakcommon-core -unescapePercents - "change each %XY substring to the character with ASCII value XY in hex. This is the opposite of #encodeForHTTP. - Assume UTF8 encoding for Pharo compatibility" - - "this method not implemented in CharacterCollection in order to preserve original behavior without overrides" - - ^self unescapePercentsWithTextEncoding: 'utf-8' \ No newline at end of file diff --git a/repository/Squeak.v37.package/CharacterCollection.extension/instance/unescapePercents.st b/repository/Squeak.v37.package/CharacterCollection.extension/instance/unescapePercents.st deleted file mode 100644 index 041049f56..000000000 --- a/repository/Squeak.v37.package/CharacterCollection.extension/instance/unescapePercents.st +++ /dev/null @@ -1,23 +0,0 @@ -*squeak -unescapePercents - "change each %XY substring to the character with ASCII value XY in hex. This is the opposite of #encodeForHTTP" - | ans c asciiVal pos oldPos specialChars | - ans _ WriteStream on: String new. - oldPos _ 1. - specialChars _ '+%'. - - [pos _ self indexOfAnyOf: specialChars startingAt: oldPos. pos > 0] - whileTrue: [ - ans nextPutAll: (self copyFrom: oldPos to: pos - 1). - c _ self at: pos. - c = $+ ifTrue: [ans nextPut: $ ] ifFalse: [ - (c = $% and: [pos + 2 <= self size]) ifTrue: [ - asciiVal _ ((self at: pos+1) asUppercase digitValueInRadix: 16) * 16 + - ((self at: pos+2) asUppercase digitValueInRadix: 16). - pos _ pos + 2. - asciiVal > 255 ifTrue: [^self]. "not really an escaped string" - ans nextPut: (Character value: asciiVal)] - ifFalse: [ans nextPut: c]]. - oldPos _ pos+1]. - ans nextPutAll: (self copyFrom: oldPos to: self size). - ^ ans contents \ No newline at end of file