Package org.omegat.core.statistics
Class StatCount
- java.lang.Object
-
- org.omegat.core.statistics.StatCount
-
public class StatCount extends java.lang.Object
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>Acme</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>Acme</m0>" - 1 word.
StatisticsSettings.isCountingProtectedText()
property.
-
-
Field Summary
Fields Modifier and Type Field Description int
charsWithoutSpaces
int
charsWithSpaces
int
files
int
segments
int
words
-
Constructor Summary
Constructors Constructor Description StatCount()
Initialize counts with zeros.StatCount(SourceTextEntry ste)
Initialize counters with counts from entry's source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatCount
add(StatCount c)
void
addFiles(int count)
-
-
-
Constructor Detail
-
StatCount
public StatCount()
Initialize counts with zeros.
-
StatCount
public StatCount(SourceTextEntry ste)
Initialize counters with counts from entry's source.
-
-