-
-
Save fitomad/71ff6ee16521026f04b7e8bddc0437a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
let frases: String = "esto es una frase. y después del PUNTO se ESCRIBE con mayúscula." | |
// Todo en mayúsculas | |
print("Upper: \(frases.uppercased())") | |
// Todo en minúsculas | |
print("Lower: \(frases.lowercased())") | |
// La primera letra de cada palabra en mayúsculas | |
print("Capital: \(frases.capitalized)") | |
/* | |
Upper: ESTO ES UNA FRASE. Y DESPUÉS DEL PUNTO SE ESCRIBE CON MAYÚSCULA. | |
Lower: esto es una frase. y después del punto se escribe con mayúscula. | |
Capital: Esto Es Una Frase. Y Después Del Punto Se Escribe Con Mayúscula. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment