EastAsianWidthDotNet  1.0.0
Public Member Functions | Static Public Attributes | List of all members
EastAsianWidthDotNet.EastAsianWidth Class Reference

EastAsianWidth of Unicode. http://www.unicode.org/reports/tr11/ More...

Inheritance diagram for EastAsianWidthDotNet.EastAsianWidth:
EastAsianWidthDotNet.IEastAsianWidth

Public Member Functions

int GetWidth (string value)
 Get the width of the string with respect to EastAsianWidth, according to CultureInfo.CurrentUICulture. More...
 
int GetWidth (string value, CultureInfo cultureInfo)
 Gets the width of the string considering EastAsianWidth by specifying CultureInfo. More...
 
int GetWidth (string value, bool isEastAsia)
 Get the width of the string considering EastAsianWidth by specifying whether it is East Asia. More...
 
bool IsFullWidth (char value)
 Indicates whether this character is Full Width. More...
 
bool IsFullWidth (char value, CultureInfo cultureInfo)
 Indicates whether this character is Full Width by specifying CultureInfo. More...
 
bool IsFullWidth (char value, bool isEastAsia)
 Indicates whether this character is Full Width by specifying whether it is East Asia. More...
 
EastAsianWidthKind GetKind (char value)
 Get the EastAsianWidthKind of the character. More...
 

Static Public Attributes

static readonly IEastAsianWidth Instance = new EastAsianWidth(new EastAsianWidthRangesProvider())
 Only one instance. More...
 

Detailed Description

EastAsianWidth of Unicode. http://www.unicode.org/reports/tr11/

Member Function Documentation

◆ GetKind()

EastAsianWidthKind EastAsianWidthDotNet.EastAsianWidth.GetKind ( char  value)

Get the EastAsianWidthKind of the character.

Parameters
value
Returns

Implements EastAsianWidthDotNet.IEastAsianWidth.

◆ GetWidth() [1/3]

int EastAsianWidthDotNet.EastAsianWidth.GetWidth ( string  value)

Get the width of the string with respect to EastAsianWidth, according to CultureInfo.CurrentUICulture.

Parameters
value
Returns

Implements EastAsianWidthDotNet.IEastAsianWidth.

◆ GetWidth() [2/3]

int EastAsianWidthDotNet.EastAsianWidth.GetWidth ( string  value,
bool  isEastAsia 
)
inline

Get the width of the string considering EastAsianWidth by specifying whether it is East Asia.

Parameters
value
isEastAsia
Returns

Implements EastAsianWidthDotNet.IEastAsianWidth.

◆ GetWidth() [3/3]

int EastAsianWidthDotNet.EastAsianWidth.GetWidth ( string  value,
CultureInfo  cultureInfo 
)

Gets the width of the string considering EastAsianWidth by specifying CultureInfo.

Parameters
value
cultureInfo
Returns

Implements EastAsianWidthDotNet.IEastAsianWidth.

◆ IsFullWidth() [1/3]

bool EastAsianWidthDotNet.EastAsianWidth.IsFullWidth ( char  value)

Indicates whether this character is Full Width.

Parameters
value
Returns

Implements EastAsianWidthDotNet.IEastAsianWidth.

◆ IsFullWidth() [2/3]

bool EastAsianWidthDotNet.EastAsianWidth.IsFullWidth ( char  value,
bool  isEastAsia 
)
inline

Indicates whether this character is Full Width by specifying whether it is East Asia.

Parameters
value
isEastAsia
Returns

Implements EastAsianWidthDotNet.IEastAsianWidth.

◆ IsFullWidth() [3/3]

bool EastAsianWidthDotNet.EastAsianWidth.IsFullWidth ( char  value,
CultureInfo  cultureInfo 
)

Indicates whether this character is Full Width by specifying CultureInfo.

Parameters
value
cultureInfo
Returns

Implements EastAsianWidthDotNet.IEastAsianWidth.

Member Data Documentation

◆ Instance

readonly IEastAsianWidth EastAsianWidthDotNet.EastAsianWidth.Instance = new EastAsianWidth(new EastAsianWidthRangesProvider())
static

Only one instance.


The documentation for this class was generated from the following file: