module Unicode

Overview

Provides methods that answer questions about unicode characters, and the Unicode::CaseOptions enum for special case conversions like Turkic.

There's no need to use the methods defined in this module because they are exposed in Char in a more convenient way (Char#upcase, Char#downcase, Char#whitespace?, etc.)

Defined in:

unicode/unicode.cr
unicode/data.cr

Class Method Summary

Class Method Detail

def self.control?(char : Char) #

View source
def self.downcase(char : Char, options : CaseOptions) #

View source
def self.downcase(char : Char, options : CaseOptions, &block) #

View source
def self.in_any_category?(needle, *haystacks) #

View source
def self.letter?(char : Char) #

View source
def self.lowercase?(char : Char) #

View source
def self.mark?(char : Char) #

View source
def self.number?(char : Char) #

View source
def self.upcase(char : Char, options : CaseOptions) #

View source
def self.upcase(char : Char, options : CaseOptions, &block) #

View source
def self.uppercase?(char : Char) #

View source
def self.whitespace?(char : Char) #

View source