你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StringIndexType Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Conversations.Models.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. |