Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/Collections-Strings/WideString.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,21 @@ WideString >> asLowercase [
"Answer a copy of self with all characters in a lower case.
This might be a difficult task, ask Unicode."

^ Unicode toLowercaseString: self
^ self class environment
at: #Unicode
ifPresent: [ :class | class toLowercaseString: self ]
ifAbsent: [ self error: 'In order to do this operation you need the Unicode support in Pharo but it is currently not present.' ]
]

{ #category : 'converting' }
WideString >> asUppercase [
"Answer a copy of self with all characters in an upper case.
This might be a difficult task, ask Unicode."

^ Unicode toUppercaseString: self
^ self class environment
at: #Unicode
ifPresent: [ :class | class toUppercaseString: self ]
ifAbsent: [ self error: 'In order to do this operation you need the Unicode support in Pharo but it is currently not present.' ]
]

{ #category : 'converting' }
Expand Down