Source Code

A selection of utility methods for accessing Unicode information about Characters.

By: Tom Bentley
Packages
ceylon.unicode
Dependencies
java.base7
Values
arabicNumberSource Code
shared arabicNumber arabicNumber
boundaryNeutralSource Code
shared boundaryNeutral boundaryNeutral
commonNumberSeparatorSource Code
shared commonNumberSeparator commonNumberSeparator
europeanNumberSource Code
shared europeanNumber europeanNumber
europeanNumberSeparatorSource Code
shared europeanNumberSeparator europeanNumberSeparator
europeanNumberTerminatorSource Code
shared europeanNumberTerminator europeanNumberTerminator
leftToRightSource Code
shared leftToRight leftToRight
leftToRightEmbeddingSource Code
shared leftToRightEmbedding leftToRightEmbedding
leftToRightOverrideSource Code
shared leftToRightOverride leftToRightOverride
letterLowercaseSource Code
shared letterLowercase letterLowercase

The General category for Ll

letterModifierSource Code
shared letterModifier letterModifier

The General category for Lm

letterOtherSource Code
shared letterOther letterOther

The General category for Lo

letterTitlecaseSource Code
shared letterTitlecase letterTitlecase

The General category for Lt

letterUppercaseSource Code
shared letterUppercase letterUppercase

The General category for Lu

markCombiningSpacingSource Code
shared markCombiningSpacing markCombiningSpacing

The General category for Mc

markEnclosingSource Code
shared markEnclosing markEnclosing

The General category for Me

markNonspacingSource Code
shared markNonspacing markNonspacing

The General category for Mn

nonspacingMarkSource Code
shared nonspacingMark nonspacingMark
numberDecimalDigitSource Code
shared numberDecimalDigit numberDecimalDigit

The General category for Nd

numberLetterSource Code
shared numberLetter numberLetter

The General category for Nl

numberOtherSource Code
shared numberOther numberOther

The General category for No

otherControlSource Code
shared otherControl otherControl

The General category for Cc

otherFormatSource Code
shared otherFormat otherFormat

The General category for Cf

otherNeutralsSource Code
shared otherNeutrals otherNeutrals
otherPrivateUseSource Code
shared otherPrivateUse otherPrivateUse

The General category for Co

otherSurrogateSource Code
shared otherSurrogate otherSurrogate

The General category for Cs

otherUnassignedSource Code
shared otherUnassigned otherUnassigned

The General category for Cn

paragraphSeparatorSource Code
shared paragraphSeparator paragraphSeparator
popDirectionalFormatSource Code
shared popDirectionalFormat popDirectionalFormat
punctuationCloseSource Code
shared punctuationClose punctuationClose

The General category for Pe

punctuationConnectorSource Code
shared punctuationConnector punctuationConnector

The General category for Pc

punctuationDashSource Code
shared punctuationDash punctuationDash

The General category for Pd

punctuationFinalQuoteSource Code
shared punctuationFinalQuote punctuationFinalQuote

The General category for Pf

punctuationInitialQuoteSource Code
shared punctuationInitialQuote punctuationInitialQuote

The General category for Pi

punctuationOpenSource Code
shared punctuationOpen punctuationOpen

The General category for Ps

punctuationOtherSource Code
shared punctuationOther punctuationOther

The General category for Po

rightToLeftSource Code
shared rightToLeft rightToLeft
rightToLeftArabicSource Code
shared rightToLeftArabic rightToLeftArabic
rightToLeftEmbeddingSource Code
shared rightToLeftEmbedding rightToLeftEmbedding
rightToLeftOverrideSource Code
shared rightToLeftOverride rightToLeftOverride
segmentSeparatorSource Code
shared segmentSeparator segmentSeparator
separatorLineSource Code
shared separatorLine separatorLine

The General category for Zl

separatorParagraphSource Code
shared separatorParagraph separatorParagraph

The General category for Zp

separatorSpaceSource Code
shared separatorSpace separatorSpace

The General category for Zs

symbolCurrencySource Code
shared symbolCurrency symbolCurrency

The General category for Sc

symbolMathSource Code
shared symbolMath symbolMath

The General category for Sm

symbolModifierSource Code
shared symbolModifier symbolModifier

The General category for Sk

symbolOtherSource Code
shared symbolOther symbolOther

The General category for So

undefinedSource Code
shared undefined undefined
unicodeVersionSource Code
shared String? unicodeVersion

The version of the Unicode standard being used, or null if this information was not available.

whitespaceSource Code
shared whitespace whitespace
Functions
characterNameSource Code
shared String characterName(Character character)

The Unicode name of the character.

directionalitySource Code
shared Directionality directionality(Character character)

The directionality of the given character.

generalCategorySource Code
shared GeneralCategory generalCategory(Character character)

The general category of the given character

Classes
DirectionalitySource Code
shared abstract Directionality

Enumerates the Directionalities defined in the defined in the Unicode standard.

GeneralCategorySource Code
shared abstract GeneralCategory

Enumerates the major classes of General Category defined in the Unicode standard

LetterSource Code
shared abstract Letter

Enumerates the general categories in the Letter major class

MarkSource Code
shared abstract Mark

Enumerates the general categories in the Mark major class

NumberSource Code
shared abstract Number

Enumerates the general categories in the Number major class

OtherSource Code
shared abstract Other

Enumerates the general categories in the Other major class

PunctuationSource Code
shared abstract Punctuation

Enumerates the general categories in the Punctuation major class

SeparatorSource Code
shared abstract Separator

Enumerates the general categories in the Separator major class

SymbolSource Code
shared abstract Symbol

Enumerates the general categories in the Symbol major class

arabicNumberSource Code
boundaryNeutralSource Code
commonNumberSeparatorSource Code
europeanNumberSource Code
europeanNumberSeparatorSource Code
europeanNumberTerminatorSource Code
leftToRightSource Code
leftToRightEmbeddingSource Code
leftToRightOverrideSource Code
letterLowercaseSource Code

The General category for Ll

letterModifierSource Code

The General category for Lm

letterOtherSource Code

The General category for Lo

letterTitlecaseSource Code

The General category for Lt

letterUppercaseSource Code

The General category for Lu

markCombiningSpacingSource Code

The General category for Mc

markEnclosingSource Code

The General category for Me

markNonspacingSource Code

The General category for Mn

nonspacingMarkSource Code
numberDecimalDigitSource Code

The General category for Nd

numberLetterSource Code

The General category for Nl

numberOtherSource Code

The General category for No

otherControlSource Code

The General category for Cc

otherFormatSource Code

The General category for Cf

otherNeutralsSource Code
otherPrivateUseSource Code

The General category for Co

otherSurrogateSource Code

The General category for Cs

otherUnassignedSource Code

The General category for Cn

paragraphSeparatorSource Code
popDirectionalFormatSource Code
punctuationCloseSource Code

The General category for Pe

punctuationConnectorSource Code

The General category for Pc

punctuationDashSource Code

The General category for Pd

punctuationFinalQuoteSource Code

The General category for Pf

punctuationInitialQuoteSource Code

The General category for Pi

punctuationOpenSource Code

The General category for Ps

punctuationOtherSource Code

The General category for Po

rightToLeftSource Code
rightToLeftArabicSource Code
rightToLeftEmbeddingSource Code
rightToLeftOverrideSource Code
segmentSeparatorSource Code
separatorLineSource Code

The General category for Zl

separatorParagraphSource Code

The General category for Zp

separatorSpaceSource Code

The General category for Zs

symbolCurrencySource Code

The General category for Sc

symbolMathSource Code
shared symbolMath

The General category for Sm

symbolModifierSource Code

The General category for Sk

symbolOtherSource Code

The General category for So

undefinedSource Code
shared undefined
whitespaceSource Code
shared whitespace