mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-28 19:50:53 +07:00
17 lines
457 B
Java
17 lines
457 B
Java
class X {
|
|
|
|
public static void buildRegexp(String pattern, int exactPrefixLen, boolean forCompletion) {
|
|
System.out.println(!forCompletion && pattern.endsWith(" "));
|
|
System.out.println(exactPrefixLen == 0);
|
|
boolean prevIsUppercase = false;
|
|
for (int i = 0; i < pattern.length(); i++) {
|
|
final char c = pattern.charAt(i);
|
|
if (c == '*') { }
|
|
else if (c == ' ') { }
|
|
else if (c == ':' || prevIsUppercase) { }
|
|
}
|
|
|
|
}
|
|
|
|
}
|