31 enum class Disposition { KEEP, DEACTIVATE, DISCARD } disposition;
44 void TrimPunctuation(
string &text)
const;
45 void RemoveNoisePatterns(
string& text)
const;
46 void NormalizeCopyright(
string& text)
const;
47 void StripSuffixes(
string& text)
const;
62 regSpdxCopyright, regRemoveFileStmt, regStripLicenseTrail, regStripTrademarkTrail, regStripAllRightReserveTrail, regExceptionVerbFollow, regExceptionAdjectivePrefix, regExceptionTemplate, regExceptionPassive, regStripCopySymNonYear, regExceptionBinaryNoise, regExceptionMeta, regExceptionCharNameRun;
Implementation of scanner class for copyright.
void ScanString(const string &s, list< match > &results) const
Scan a given string for copyright statements.
rx::regex regSpdxCopyright
hCopyrightScanner()
Constructor for default hCopyrightScanner.
rx::regex regSimpleCopyright
Abstract class to provide interface to scanners.
int s
The socket that the CLI will use to communicate.
Utilities to help scanners.
Outcome of the Cleanup() function.
std::string content
Cleaned text; empty when the copyright was removed.
list_t type structure used to keep various lists. (e.g. there are multiple lists).