Class StatCount

java.lang.Object
org.omegat.core.statistics.StatCount

public class StatCount extends 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></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></m0> - 1 word.
The mode is stored in the StatisticsSettings.isCountingProtectedText() property.
  • Field Details

    • segments

      public int segments
    • words

      public int words
    • charsWithoutSpaces

      public int charsWithoutSpaces
    • charsWithSpaces

      public int charsWithSpaces
    • files

      public int files
  • Constructor Details

    • StatCount

      public StatCount()
      Initialize counts with zeros.
    • StatCount

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