76 static void CountToken(
const char *pszToken,
int nCount);
108 return sRecords.get();
113 return sTokenCounts.get();
123 sTokenCounts.reset();
129 std::list<SingleError> mErrors;
137 static std::unique_ptr<std::list<LocalizeErrors>> sRecords;
145 static std::unique_ptr<std::map<String, int>> sTokenCounts;
LocalizeErrors(int nType)
Construct an empty record with no file.
Definition localizeerrors.h:48
void Store()
Keep a copy of the record for the report.
const std::list< SingleError > & GetErrors() const
Definition localizeerrors.h:102
Type
What a record lists, the values of mType.
Definition localizeerrors.h:20
@ kTypeMissing
Definition localizeerrors.h:21
@ kTypeUnused
Definition localizeerrors.h:22
static std::map< String, int > * GetTokenCounts()
Definition localizeerrors.h:112
LocalizeErrors(const char *pszFile)
Construct an empty record of a file's missing tokens.
Definition localizeerrors.h:38
std::list< SingleError > & GetErrors()
Definition localizeerrors.h:97
static void ClearRecords()
Delete the records Store() retained.
Definition localizeerrors.h:117
static std::list< LocalizeErrors > * GetRecords()
Definition localizeerrors.h:107
static void ClearTokenCounts()
Delete the counts of the uses of each token.
Definition localizeerrors.h:122
const String & GetFile() const
Definition localizeerrors.h:87
int GetType() const
Definition localizeerrors.h:92
LocalizeErrors(const LocalizeErrors &other)=default
Copy another record.
static void CountLocaleTokens()
Enter every token of the locale in the counts, with no uses added.
static void CountToken(const char *pszToken, int nCount)
Add to the number of times a token was used.
Growable text buffer that is also a PrnStream.
Definition string.h:19
One token of a record.
Definition localizeerrors.h:26
String mText
Definition localizeerrors.h:28
String mObject
Definition localizeerrors.h:27