Package org.omegat.core.statistics
Class StatCount
java.lang.Object
org.omegat.core.statistics.StatCount
Bean for store counts in statistics.
OmegaT has two possible words calculation modes:
- 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.
- Protected texts are counted, but related tags are not counted in the word count. For example: "<i1> - 0 words, "<m0></m0> - 1 word.
StatisticsSettings.isCountingProtectedText() property.-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintintint -
Constructor Summary
ConstructorsConstructorDescriptionInitialize counts with zeros.StatCount(SourceTextEntry ste) Initialize counters with counts from entry's source. -
Method Summary
-
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
Initialize counters with counts from entry's source.
-
-
Method Details
-
add
-
addFiles
public void addFiles(int count)
-