Convert text to uppercase
Give these short labels the same letter case. All four inputs use plain English letters and digits.
uppercased
Simple example
Change the case of two letters.
Start'ab'
ResultAB
import Foundation
print("ab".uppercased())
AB
Advertisements
Everyday examples
Make the bus label match the route board.
Start'bus'
ResultBUS
import Foundation
print("bus".uppercased())
BUS
Give an art shelf the same lettering as the other shelves.
Start'art'
ResultART
import Foundation
print("art".uppercased())
ART
Normalize the letters in a ticket code and keep its digits.
Start'b12'
ResultB12
import Foundation
print("b12".uppercased())
B12