Home | History | Annotate | Download | only in util

Lines Matching refs:source

5  * Redistribution and use in source and binary forms, with or without
9 * * Redistributions of source code must retain the above copyright
42 public static String normalizeNewlines(@Nonnull String source) {
43 return normalizeNewlines(source, newline);
47 public static String normalizeNewlines(@Nonnull String source, String newlineValue) {
48 return source.replace("\r", "").replace("\n", newlineValue);
52 public static String normalizeWhitespace(@Nonnull String source) {
54 source = normalizeNewlines(source);
58 Matcher matcher = pattern.matcher(source);
59 source = matcher.replaceAll("");
63 Matcher matcher2 = pattern2.matcher(source);
64 source = matcher2.replaceAll("");
68 Matcher matcher3 = pattern3.matcher(source);
69 source = matcher3.replaceAll("");
72 source = normalizeNewlines(source, "\n");
73 return source;
77 public static String stripComments(@Nonnull String source) {
79 Matcher matcher = pattern.matcher(source);