4 Tokens
*factory(string type
)
9 DBG("factory(" << type
<< ") - ret: " << (long)ret
);
14 Tokens::Tokens(const char *f_tok
,
25 Tokens::token
Tokens::match(QString
&line
) const
27 if (file_tok
.indexIn(line
) != -1){
29 }else if (hunk_tok
.indexIn(line
) != -1){
31 }else if (context_tok
.indexIn(line
) != -1){
33 }else if (added_tok
.indexIn(line
) != -1){
35 }else if (deleted_tok
.indexIn(line
) != -1){
42 /* CONCRETE TOKENS: */
43 TokensGit::TokensGit() : Tokens::Tokens("^diff --git a/([^ ]+) b/.*$",
44 "^@@ -([0-9]+),.* \\+([0-9]+),.*$",