Moving functionality to MiniDocs.
This commit is contained in:
parent
4bb79f6de0
commit
f93091b2b8
@ -1,18 +1,5 @@
|
|||||||
Extension { #name : #String }
|
Extension { #name : #String }
|
||||||
|
|
||||||
{ #category : #'*Grafoscopio-Utils' }
|
|
||||||
String >> accentedCharactersCorrection [
|
|
||||||
| modified corrections |
|
|
||||||
corrections := {
|
|
||||||
'ó' -> 'ó' . 'ú' -> 'ú' . 'ñ' -> 'ñ' .
|
|
||||||
'Ã' -> 'í' . 'á' -> 'á' . 'é' -> 'é' . 'â' -> $' asString} asDictionary.
|
|
||||||
modified := self copy.
|
|
||||||
corrections keysAndValuesDo: [ :k :v |
|
|
||||||
modified := modified copyReplaceAll: k with: v
|
|
||||||
].
|
|
||||||
^ modified
|
|
||||||
]
|
|
||||||
|
|
||||||
{ #category : #'*Grafoscopio-Utils' }
|
{ #category : #'*Grafoscopio-Utils' }
|
||||||
String >> asCapitalizedPhrase [
|
String >> asCapitalizedPhrase [
|
||||||
"I convert phrases like 'THIS IS A PHRASE' into 'This is a Phrase'."
|
"I convert phrases like 'THIS IS A PHRASE' into 'This is a Phrase'."
|
||||||
|
Loading…
Reference in New Issue
Block a user