C# 클래스 StarryEyes.Anomaly.Utils.TextSurrogateHelper

파일 보기 프로젝트 열기: karno/StarryEyes

공개 메소드들

메소드 설명
SurrogatedLength ( [ str ) : int

Get length considered surrogate pairs.

SurrogatedSubstring ( [ str, int startIndex, int length = -1 ) : string

Get substring with considering surrogate pairs.

This method cuts string with surrogate-pair considered parameters.

UnsurrogatedLength ( [ str ) : int

Get decode length considered surrogate pairs.

메소드 상세

SurrogatedLength() 공개 정적인 메소드

Get length considered surrogate pairs.
public static SurrogatedLength ( [ str ) : int
str [ source string
리턴 int

SurrogatedSubstring() 공개 정적인 메소드

Get substring with considering surrogate pairs.
This method cuts string with surrogate-pair considered parameters.
public static SurrogatedSubstring ( [ str, int startIndex, int length = -1 ) : string
str [ source string
startIndex int surrogate-pair considered start index
length int surrogate-pair considered length
리턴 string

UnsurrogatedLength() 공개 정적인 메소드

Get decode length considered surrogate pairs.
public static UnsurrogatedLength ( [ str ) : int
str [ source string
리턴 int