public BrailleWord() { m_Text = ""; m_Language = BrailleLanguage.Neutral; m_CellList = new BrailleCellList(); m_PhoneticCodes = new List <string>(); m_ActivePhoneticIndex = -1; m_DontBreakLineHere = false; m_IsContextTag = false; m_NoDigitCell = false; m_IsEngPhonetic = false; }
private bool m_IsEngPhonetic; // 是否為英語音標(用來判斷不要加空方). //private bool m_QuotationResolved; // 是否已經識別出左右引號(英文的單引號和雙引號都是同一個符號,但點字不同) public BrailleWord(string text) { Text = text; OriginalText = text; Language = BrailleLanguage.Neutral; CellList = new BrailleCellList(); m_PhoneticCodes = new List <string>(); m_ActivePhoneticIndex = -1; DontBreakLineHere = false; ContextNames = String.Empty; m_IsContextTag = false; m_NoDigitCell = false; m_IsEngPhonetic = false; }
/// <summary> /// 跟傳入的點字串列比較,兩者的內容是否相同。 /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { if (base.Equals(obj)) { return(true); } BrailleCellList cells2 = (BrailleCellList)obj; if (this.Count != cells2.Count) { return(false); } for (int i = 0; i < m_Cells.Count; i++) { if (!m_Cells[i].Equals(cells2[i])) { return(false); } } return(true); }
public void Assign(BrailleCellList aCellList) { m_Cells.Clear(); m_Cells.AddRange(aCellList.m_Cells); }