Click or drag to resize
CharacterProperties Class
Proides methods that check for certain properties of strings and characters.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.CoreCharacterProperties

Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public static class CharacterProperties

The CharacterProperties type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberUppercaseCharacters
Gets a collection of all characters in the range [U+0020, U+00FB] for which IsUpper(Char) is true.
Top
Methods
  NameDescription
Public methodStatic memberGetCase(Char)
Determines the case of a character. Only upper and lower case characters are distinguished, in all other cases or for non-letter characters, Other is returned.
Public methodStatic memberGetCase(String)
Determines the case of the string, if it is consistent.
Public methodStatic memberGetCase(String, Int32)
Determines the case of the string, if it is consistent. The string is only scanned up to the specified length.
Public methodStatic memberGetPrefixLength
Computes and returns the length of the prefix of the provided string s where each character satisfies the provided predicate.
Public methodStatic memberGetUnicodeBlock
Attempts to identify the UnicodeBlock for the provided character.
Public methodStatic memberGetUnicodeCategoryFromName
Maps Unicode category names as they are used in CharacterSets to the corresponding UnicodeCategory. The lookup is case-insensitive.
Public methodStatic memberGetUnicodeCategoryName
Maps from UnicodeCategory to class names as they are used in CharacterSets.
Public methodStatic memberIsAll(String, PredicateChar)
Evaluates the predicate on all characters in the string and returns true if all characters fulfill the predicate, and false otherwise. Note that the method will always return true for the empty string.
Public methodStatic memberIsAll(String, Int32, PredicateChar)
Evaluates the predicate on all characters in the string, starting from position start, and returns true if all characters fulfill the predicate, and false otherwise. Note that the method will always return true for the empty string or if the start position exceeds the string length.
Public methodStatic memberIsApostrophe
Determines whether the specified character is an apostrophe.
Public methodStatic memberIsBlank
Determines whether the specified character is a blank.

This test does not cover format characters.

Public methodStatic memberIsBrace
Determines whether the specified character is a brace.
Public methodStatic memberIsBracket
Determines whether the specified character is an opening or a closing bracket.
Public methodStatic memberIsCJKChar
Tests whether c is a CJK (Chinese/Japanese/Korean) character
Public methodStatic memberIsCJKPunctuation
Tests whether the provided character c is a CJK (Chinese/Japanese/Korean) punctuation characater.
Public methodStatic memberIsClosingBracket
Determines whether the specified character is a closing bracket.
Public methodStatic memberIsClosingParenthesis
Determines whether the specified character is a closing paranthesis.
Public methodStatic memberIsClosingQuote
Determines whether the specified character is a closing quote.
Public methodStatic memberIsColon
Determines whether the specified character is a colon.
Public methodStatic memberIsComma
Determines whether the specified character is a comma.
Public methodStatic memberIsDash
Determines whether the specified character is a dash.
Public methodStatic memberIsDot
Determines whether the specified character is a dor.
Public methodStatic memberIsDoubleQuote
Determines whether the specified character is a double quote.
Public methodStatic memberIsExclamation
Determines whether the specified character is an exclamation mark.
Public methodStatic memberIsHyphen
Determines whether the specified character is a hyphen.
Public methodStatic memberIsInBlock
Tests whether c is contained in the UnicodeBlockb.
Public methodStatic memberIsOpeningBracket
Determines whether the specified character is an opening bracket.
Public methodStatic memberIsOpeningParenthesis
Determines whether the specified character is an opening paranthesis.
Public methodStatic memberIsOpeningQuote
Determines whether the specified character is an opening quote.
Public methodStatic memberIsParagraph
Determines whether the specified character is a paragraph separator.
Public methodStatic memberIsParenthesis
Determines whether the specified character is an opening or a closing paranthesis.
Public methodStatic memberIsPercent
Determines whether the specified character is a percent character.
Public methodStatic memberIsQuestion
Determines whether the specified character is a question mark.
Public methodStatic memberIsQuote
Determines whether the specified character is a quote.
Public methodStatic memberIsSemicolon
Determines whether the specified character is a semicolon.
Public methodStatic memberIsSequenceOf
Determines whether the specified string is a sequence of characters of the specified unicode category c.
Public methodStatic memberIsSingleQuote
Determines whether the specified character is a single quote.
Public methodStatic memberIsStop
Determines whether the specified character is a stop character such as colon, dot, exclamation mark, question mark or semicolon.
Public methodStatic memberIsSurrounder
Determines whether the specified character is any of the known surrounder characters, such as bracket, paranthesis, quote, apostrophe or a special surrounder.
Public methodStatic memberIsTabulator
Determines whether the specified character is a tabulator.
Public methodStatic memberIsUpperOrLower
Returns true if c is upper or lower case, and false otherwise.
Public methodStatic memberIsVowel
Determines whether the specified character is a vowel (Western or Far East).
Public methodStatic memberIsWhitespace
Determines whether the specified character is a whitespace.

This test does not cover format characters.

Remarks
This method is no longer required since IsWhiteSpace(char) has been fixed in .Net 3.5 to return the correct information.
Public methodStatic memberToBase(Char)
Returns a new character which is the normalized version of the input character, using full canonical decomposition.
Public methodStatic memberToBase(String)
Returns a new string with the same textual value as the input string, but whose binary representation is normalized using full canonical decomposition ignoring any characters that belong to the following Unicode categories: Format, ModifierLetter, NonSpacingMark, OtherNotAssigned, ParagraphSeparator, PrivateUse, SpaceSeparator, SpacingCombiningMark.
Public methodStatic memberToCase(Char, CharacterPropertiesCase)
Applies the specified casing to the provided character.
Public methodStatic memberToCase(String, CharacterPropertiesCase)
Applies the specified casing to the provided string.
Top
Fields
  NameDescription
Public fieldStatic memberBlanks
Contains a set of known blank characters of various widths from different languages. This should be a subset of WhitespaceCharacters.
Public fieldStatic memberWhitespaceCharacters
Contains a set of known whitespace characters from different languages. This should be equivalent to the set of characters for which IsWhiteSpace(Char) returns true, which however is incomplete in earlier .Net versions.

The elements of the array are sorted in ascending order, so binary search can be used.

Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments