public bool Equals(BoundaryDefinition other) { if (other == null) { return(false); } return(m_strRep == other.m_strRep && m_charDefTable == other.m_charDefTable); }
PhoneticShapeNode GetPhoneticShapeNode(string strRep, ModeType mode) { PhoneticShapeNode node = null; SegmentDefinition segDef = GetSegmentDefinition(strRep); if (segDef != null) { Segment seg = new Segment(segDef, mode == ModeType.SYNTHESIS ? segDef.SynthFeatures.Clone() : segDef.AnalysisFeatures.Clone()); if (!Morpher.PhoneticFeatureSystem.HasFeatures) { seg.InstantiateSegment(segDef); } node = seg; } else { BoundaryDefinition bdryDef = GetBoundaryDefinition(strRep); if (bdryDef != null) { node = new Boundary(bdryDef); } } return(node); }
/// <summary> /// Initializes a new instance of the <see cref="Boundary"/> class. /// </summary> /// <param name="strRep">The string representation.</param> /// <param name="charDefTable">The character definition table.</param> /// <param name="morpher">The morpher.</param> public Boundary(BoundaryDefinition bdryDef) { m_bdryDef = bdryDef; }
/// <summary> /// Initializes a new instance of the <see cref="BoundaryContext"/> class from a boundary /// object. /// </summary> /// <param name="bdry">The bdry.</param> public BoundaryContext(Boundary bdry) { m_bdryDef = bdry.BoundaryDefinition; }
/// <summary> /// Copy constructor. /// </summary> /// <param name="ctxt">The boundary context.</param> public BoundaryContext(BoundaryContext ctxt) : base(ctxt) { m_bdryDef = ctxt.m_bdryDef; }
/// <summary> /// Initializes a new instance of the <see cref="BoundaryContext"/> class. /// </summary> /// <param name="strRep">The string representation.</param> /// <param name="charDefTable">The character definition table.</param> /// <param name="morpher">The morpher.</param> public BoundaryContext(BoundaryDefinition bdryDef) { m_bdryDef = bdryDef; }
/// <summary> /// Adds the boundary definition. /// </summary> /// <param name="strRep">The string representation.</param> public void AddBoundaryDefinition(string strRep) { m_bdryDefs[strRep] = new BoundaryDefinition(strRep, this); }
public bool Equals(BoundaryDefinition other) { if (other == null) return false; return m_strRep == other.m_strRep && m_charDefTable == other.m_charDefTable; }
/// <summary> /// Copy constructor. /// </summary> /// <param name="bdry">The bdry.</param> public Boundary(Boundary bdry) : base(bdry) { m_bdryDef = bdry.m_bdryDef; }
/// <summary> /// Initializes a new instance of the <see cref="Boundary"/> class from a boundary /// context. /// </summary> /// <param name="ctxt">The boundary context.</param> public Boundary(BoundaryContext ctxt) { m_bdryDef = ctxt.BoundaryDefinition; }