C# Class StarryEyes.Anomaly.Utils.TextSurrogateHelper

Exibir arquivo Open project: karno/StarryEyes

Public Methods

Method Description
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.

Method Details

SurrogatedLength() public static method

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

SurrogatedSubstring() public static method

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
return string

UnsurrogatedLength() public static method

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