25 string Cleanup(
const string &raw)
const;
26 void TrimPunctuation(
string &text)
const;
27 void RemoveNoisePatterns(
string& text)
const;
28 void NormalizeCopyright(
string& text)
const;
29 void StripSuffixes(
string& text)
const;
44 regSpdxCopyright, regRemoveFileStmt, regStripLicenseTrail, regStripTrademarkTrail, regStripAllRightReserveTrail;
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.
list_t type structure used to keep various lists. (e.g. there are multiple lists).