|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2008-2016 the original author or authors. |
|
|
|
|
* Copyright 2008-2017 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -47,8 +47,8 @@ public class PartTree implements Iterable<OrPart> {
@@ -47,8 +47,8 @@ public class PartTree implements Iterable<OrPart> {
|
|
|
|
|
* OR |
|
|
|
|
* any other letter NOT in the BASIC_LATIN Uni-code Block \\P{InBASIC_LATIN} (like Chinese, Korean, Japanese, etc.). |
|
|
|
|
* |
|
|
|
|
* @see http://www.regular-expressions.info/unicode.html
|
|
|
|
|
* @see http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#ubc
|
|
|
|
|
* @see <a href="http://www.regular-expressions.info/unicode.html">http://www.regular-expressions.info/unicode.html</a>
|
|
|
|
|
* @see <a href="http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#ubc">Pattern</a> |
|
|
|
|
*/ |
|
|
|
|
private static final String KEYWORD_TEMPLATE = "(%s)(?=(\\p{Lu}|\\P{InBASIC_LATIN}))"; |
|
|
|
|
private static final String QUERY_PATTERN = "find|read|get|query|stream"; |
|
|
|
|
|