public class ParserUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
appendOrAddNewComment(MailComment comment,
List<MailComment> comments)
When parsing mail content, we need to append comments prematurely since we are parsing
block-by-block and never know what comes next.
|
static String |
filePath(String changeUrl,
Comment comment)
Generate the fully qualified filepath
|
static boolean |
isCommentUrl(String str,
String changeUrl,
Comment comment)
Check if string is an inline comment url on a patch set or the base
|
static String |
trimQuotation(String comment)
Trims the quotation that email clients add Example: On Sun, Nov 20, 2016 at 10:33 PM,
|
public static String trimQuotation(String comment)
comment
- Comment parsed from an email.public static boolean isCommentUrl(String str, String changeUrl, Comment comment)
public static String filePath(String changeUrl, Comment comment)
public static void appendOrAddNewComment(MailComment comment, List<MailComment> comments)