Class StatCount


  • public class StatCount
    extends java.lang.Object
    Bean for store counts in statistics.

    OmegaT has two possible words calculation modes:

    1. All protected parts(including tags, placeholders, protected text and related tags) are not counted in the word count (default). For example: "<i1>", "<m0>Acme</m0>" will produce 0 words.
    2. Protected texts are counted, but related tags are not counted in the word count. For example: "<i1>" - 0 words, "<m0>Acme</m0>" - 1 word.
    The mode is stored in the StatisticsSettings.isCountingProtectedText() property.
    • Field Detail

      • segments

        public int segments
      • words

        public int words
      • charsWithoutSpaces

        public int charsWithoutSpaces
      • charsWithSpaces

        public int charsWithSpaces
      • files

        public int files
    • Constructor Detail

      • StatCount

        public StatCount()
        Initialize counts with zeros.
      • StatCount

        public StatCount​(SourceTextEntry ste)
        Initialize counters with counts from entry's source.
    • Method Detail

      • addFiles

        public void addFiles​(int count)