C# 클래스 Lucene.Net.Support.Character

Mimics Java's Character class.
파일 보기 프로젝트 열기: apache/lucenenet

공개 프로퍼티들

프로퍼티 타입 설명
MIN_SUPPLEMENTARY_CODE_POINT int

공개 메소드들

메소드 설명
CharCount ( int codePoint ) : int
CodePointAt ( ICharSequence seq, int index ) : int
CodePointAt ( char high, char low ) : int
CodePointAt ( char a, int index, int limit ) : int
CodePointAt ( string seq, int index ) : int
CodePointCount ( char a, int offset, int count ) : int
CodePointCount ( string seq, int beginIndex, int endIndex ) : int
ForDigit ( int digit, int radix ) : char

GetType ( int codePoint ) : UnicodeCategory

LUCENENET safe way to get unicode category. The .NET char.ConvertFromUtf32(int) method should be used first to be safe for surrogate pairs. However, if the value falls between 0x00d800 and 0x00dfff, that method throws an exception. So this is a wrapper that converts the codepoint to a char in those cases. This mimics the behavior of the Java Character.GetType class, but returns the .NET UnicodeCategory enumeration for easy consumption.

IsLetter ( int c ) : bool
OffsetByCodePoints ( char a, int start, int count, int index, int codePointOffset ) : int

Copy of the implementation from Character class in Java http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b27/java/lang/Character.java

OffsetByCodePoints ( string seq, int index, int codePointOffset ) : int

Copy of the implementation from Character class in Java http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b27/java/lang/Character.java

ToChars ( int codePoint ) : char[]
ToChars ( int codePoint, char dst, int dstIndex ) : int
ToCodePoint ( char high, char low ) : int
ToLowerCase ( int codePoint ) : int
ToUpperCase ( int codePoint ) : int

비공개 메소드들

메소드 설명
CodePointAtImpl ( char a, int index, int limit ) : int
CodePointCountImpl ( char a, int offset, int count ) : int
OffsetByCodePointsImpl ( char a, int start, int count, int index, int codePointOffset ) : int

메소드 상세

CharCount() 공개 정적인 메소드

public static CharCount ( int codePoint ) : int
codePoint int
리턴 int

CodePointAt() 공개 정적인 메소드

public static CodePointAt ( ICharSequence seq, int index ) : int
seq ICharSequence
index int
리턴 int

CodePointAt() 공개 정적인 메소드

public static CodePointAt ( char high, char low ) : int
high char
low char
리턴 int

CodePointAt() 공개 정적인 메소드

public static CodePointAt ( char a, int index, int limit ) : int
a char
index int
limit int
리턴 int

CodePointAt() 공개 정적인 메소드

public static CodePointAt ( string seq, int index ) : int
seq string
index int
리턴 int

CodePointCount() 공개 정적인 메소드

public static CodePointCount ( char a, int offset, int count ) : int
a char
offset int
count int
리턴 int

CodePointCount() 공개 정적인 메소드

public static CodePointCount ( string seq, int beginIndex, int endIndex ) : int
seq string
beginIndex int
endIndex int
리턴 int

ForDigit() 공개 정적인 메소드

public static ForDigit ( int digit, int radix ) : char
digit int
radix int
리턴 char

GetType() 공개 정적인 메소드

LUCENENET safe way to get unicode category. The .NET char.ConvertFromUtf32(int) method should be used first to be safe for surrogate pairs. However, if the value falls between 0x00d800 and 0x00dfff, that method throws an exception. So this is a wrapper that converts the codepoint to a char in those cases. This mimics the behavior of the Java Character.GetType class, but returns the .NET UnicodeCategory enumeration for easy consumption.
public static GetType ( int codePoint ) : UnicodeCategory
codePoint int
리턴 UnicodeCategory

IsLetter() 공개 정적인 메소드

public static IsLetter ( int c ) : bool
c int
리턴 bool

OffsetByCodePoints() 공개 정적인 메소드

Copy of the implementation from Character class in Java http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b27/java/lang/Character.java
public static OffsetByCodePoints ( char a, int start, int count, int index, int codePointOffset ) : int
a char
start int
count int
index int
codePointOffset int
리턴 int

OffsetByCodePoints() 공개 정적인 메소드

Copy of the implementation from Character class in Java http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b27/java/lang/Character.java
public static OffsetByCodePoints ( string seq, int index, int codePointOffset ) : int
seq string
index int
codePointOffset int
리턴 int

ToChars() 공개 정적인 메소드

public static ToChars ( int codePoint ) : char[]
codePoint int
리턴 char[]

ToChars() 공개 정적인 메소드

public static ToChars ( int codePoint, char dst, int dstIndex ) : int
codePoint int
dst char
dstIndex int
리턴 int

ToCodePoint() 공개 정적인 메소드

public static ToCodePoint ( char high, char low ) : int
high char
low char
리턴 int

ToLowerCase() 공개 정적인 메소드

public static ToLowerCase ( int codePoint ) : int
codePoint int
리턴 int

ToUpperCase() 공개 정적인 메소드

public static ToUpperCase ( int codePoint ) : int
codePoint int
리턴 int

프로퍼티 상세

MIN_SUPPLEMENTARY_CODE_POINT 공개적으로 정적으로 프로퍼티

public static int MIN_SUPPLEMENTARY_CODE_POINT
리턴 int