smuellner/ISO639.swift

View on GitHub
Sources/ISO639/Character+Extensions.swift

Summary

Maintainability
A
0 mins
Test Coverage
//
//  Character+Extensions.swift
//  
//
//  Created by smuellner on 20.04.20.
//

public extension Character {
    func letterCase() -> LetterCase {
        if self.isUppercase {
            return .upper
        }
        return .lower
    }
}