Ejemplo n.º 1
0
        /// <summary>
        /// Returns this caption in its encoded form.
        /// </summary>
        /// <returns>Returns this caption in its encoded form.</returns>
        public override string ToString()
        {
            if (DisplayStr.Equals("{clear}"))
            {
                return(MakeFinalizedTimestamp(this, true).ToString() + "\t" + getProperParityBytes(commandCodes["ClearScreen"]));
            }

            return(MakeFinalizedTimestamp(this, true) + "\t" + SingleCaptionBuilder.encode(this));
        }
Ejemplo n.º 2
0
 public int getEncodedStringWordLength()
 {
     return(SingleCaptionBuilder.encode(this).Split(' ').Length);
 }