C# Class SILUBS.SharedScrUtils.CharacterCategorizer

Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Public Properties

Property Type Description
SingleCharacterWords char[]

Public Methods

Method Description
CharacterCategorizer ( ) : System

Use this constructor to default to Unicode character semantics.

CharacterCategorizer ( string _wordFormingCharacters, string wordMedialPunct, string _diacriticCharacters ) : System

This constructor allows overriding Unicode character semantics for use with hacked fonts.

DiacriticsFollowBaseCharacters ( ) : bool

Diacritics always follow base characters in Unicode. In hacked fonts this may not be true.

IsDiacritic ( char cc ) : bool

Determines whether the specified cc is diacritic.

IsLower ( char ch ) : bool

Determines whether the specified ch is lower.

IsPunctuation ( char cc ) : bool

Determines whether the specified cc is punctuation.

IsSingleCharacterWord ( char cc ) : bool

Determines whether the specified character is a single character word.

IsTitle ( char ch ) : bool

Determines whether the specified ch is title.

IsUpper ( char ch ) : bool

Determines whether the specified ch is upper.

IsWordFormingCharacter ( char cc ) : bool

Determines whether a character is a word forming character.

IsWordMedialPunctuation ( char cc ) : bool

Determines whether [is word medial punctuation] [the specified cc].

ToLower ( string str ) : string

Toes the lower.

ToUpper ( string str ) : string

Toes the upper.

WordAndPuncts ( string text ) : List

Method Details

CharacterCategorizer() public method

Use this constructor to default to Unicode character semantics.
public CharacterCategorizer ( ) : System
return System

CharacterCategorizer() public method

This constructor allows overriding Unicode character semantics for use with hacked fonts.
public CharacterCategorizer ( string _wordFormingCharacters, string wordMedialPunct, string _diacriticCharacters ) : System
_wordFormingCharacters string The _word forming characters.
wordMedialPunct string The word medial punct.
_diacriticCharacters string The _diacritic characters.
return System

DiacriticsFollowBaseCharacters() public method

Diacritics always follow base characters in Unicode. In hacked fonts this may not be true.
public DiacriticsFollowBaseCharacters ( ) : bool
return bool

IsDiacritic() public method

Determines whether the specified cc is diacritic.
public IsDiacritic ( char cc ) : bool
cc char The cc.
return bool

IsLower() public method

Determines whether the specified ch is lower.
public IsLower ( char ch ) : bool
ch char The ch.
return bool

IsPunctuation() public method

Determines whether the specified cc is punctuation.
public IsPunctuation ( char cc ) : bool
cc char The cc.
return bool

IsSingleCharacterWord() public method

Determines whether the specified character is a single character word.
public IsSingleCharacterWord ( char cc ) : bool
cc char The specified character.
return bool

IsTitle() public method

Determines whether the specified ch is title.
public IsTitle ( char ch ) : bool
ch char The ch.
return bool

IsUpper() public method

Determines whether the specified ch is upper.
public IsUpper ( char ch ) : bool
ch char The ch.
return bool

IsWordFormingCharacter() public method

Determines whether a character is a word forming character.
public IsWordFormingCharacter ( char cc ) : bool
cc char The specified character.
return bool

IsWordMedialPunctuation() public method

Determines whether [is word medial punctuation] [the specified cc].
public IsWordMedialPunctuation ( char cc ) : bool
cc char The cc.
return bool

ToLower() public method

Toes the lower.
public ToLower ( string str ) : string
str string The STR.
return string

ToUpper() public method

Toes the upper.
public ToUpper ( string str ) : string
str string The STR.
return string

WordAndPuncts() public method

public WordAndPuncts ( string text ) : List
text string
return List

Property Details

SingleCharacterWords public_oe static_oe property

public static char[] SingleCharacterWords
return char[]