Share via


StringIndexType Struct

Definition

Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets.

public readonly struct StringIndexType : IEquatable<Azure.AI.Language.Text.StringIndexType>
type StringIndexType = struct
Public Structure StringIndexType
Implements IEquatable(Of StringIndexType)
Inheritance
StringIndexType
Implements

Constructors

StringIndexType(String)

Initializes a new instance of StringIndexType.

Properties

TextElementsV8

Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo.

UnicodeCodePoint

Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python.

Utf16CodeUnit

Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript.

Methods

Equals(StringIndexType)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(StringIndexType, StringIndexType)

Determines if two StringIndexType values are the same.

Implicit(String to StringIndexType)

Converts a string to a StringIndexType.

Inequality(StringIndexType, StringIndexType)

Determines if two StringIndexType values are not the same.

Applies to