Class SegmentationRule
Inheritance
System.Object
SegmentationRule
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
public class SegmentationRule : ICloneable
Constructors
Declaration
public SegmentationRule()
Declaration
public SegmentationRule(SegmentationRule other)
Parameters
SegmentationRule(String, SegmentationContext)
Declaration
public SegmentationRule(string description, SegmentationContext matchingContext)
Parameters
SegmentationRule(String, SegmentationContext, List<SegmentationContext>)
Declaration
public SegmentationRule(string description, SegmentationContext matchingContext, List<SegmentationContext> exceptions)
Parameters
Properties
Declaration
public LocalizedString Description { get; set; }
Property Value
Declaration
public List<SegmentationContext> Exceptions { get; set; }
Property Value
Declaration
public bool IsEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
MatchingContext
Declaration
public SegmentationContext MatchingContext { get; set; }
Property Value
Declaration
public int MinimumChars { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public int MinimumWords { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public RuleOrigin Origin { get; set; }
Property Value
Declaration
public RuleType Type { get; set; }
Property Value
Methods
AddException(SegmentationContext)
Declaration
public void AddException(SegmentationContext context)
Parameters
Declaration
Returns
Type |
Description |
System.Object |
|
Declaration
public int FindFirstMatch(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.Int32 |
|
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 |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.ICloneable