コード例 #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));
        }
コード例 #2
0
 public int getEncodedStringWordLength()
 {
     return(SingleCaptionBuilder.encode(this).Split(' ').Length);
 }