Class SegmentationContext
Inheritance
System.Object
SegmentationContext
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class SegmentationContext : ICloneable
Constructors
SegmentationContext()
Declaration
public SegmentationContext()
SegmentationContext(SegmentationContext)
Declaration
public SegmentationContext(SegmentationContext other)
Parameters
SegmentationContext(String, String, Context, Context)
Declaration
public SegmentationContext(string description, string triggerChars, Context precedingContext, Context followingContext)
Parameters
Type |
Name |
Description |
System.String |
description |
|
System.String |
triggerChars |
|
Context |
precedingContext |
|
Context |
followingContext |
|
Properties
ContextType
Declaration
public ContextType ContextType { get; set; }
Property Value
Description
Declaration
public LocalizedString Description { get; set; }
Property Value
FollowingContext
Declaration
public Context FollowingContext { get; set; }
Property Value
IsEnabled
Declaration
public bool IsEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
PrecedingContext
Declaration
public Context PrecedingContext { get; set; }
Property Value
Requires
Declaration
public string Requires { get; set; }
Property Value
Type |
Description |
System.String |
|
TriggerChars
Declaration
public string TriggerChars { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Clone()
Declaration
Returns
Type |
Description |
System.Object |
|
FindAllMatches(String, Int32, Boolean, Boolean)
Declaration
public List<int> FindAllMatches(string input, int startOffset, bool assumeEof, bool followedByWordBreak)
Parameters
Type |
Name |
Description |
System.String |
input |
|
System.Int32 |
startOffset |
|
System.Boolean |
assumeEof |
|
System.Boolean |
followedByWordBreak |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Int32> |
|
MatchesAt(String, Int32, Boolean, Boolean)
Declaration
public bool MatchesAt(string input, int position, bool assumeEof, bool followedByWordBreak)
Parameters
Type |
Name |
Description |
System.String |
input |
|
System.Int32 |
position |
|
System.Boolean |
assumeEof |
|
System.Boolean |
followedByWordBreak |
|
Returns
Type |
Description |
System.Boolean |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.ICloneable