Parses the "NCName" rule. @param error optional error message @param qnmPfx allow NCName as a QName prefix @return name (empty if no token was found) @throws QueryException query exception
(final QueryError error, final boolean qnmPfx)
| 4410 | * @throws QueryException query exception |
| 4411 | */ |
| 4412 | private byte[] ncName(final QueryError error, final boolean qnmPfx) throws QueryException { |
| 4413 | token.reset(); |
| 4414 | if(ncName(qnmPfx)) return token.toArray(); |
| 4415 | if(error != null) throw error(error, currentAsString()); |
| 4416 | return EMPTY; |
| 4417 | } |
| 4418 | |
| 4419 | /** |
| 4420 | * Parses the "EQName" rule. |
no test coverage detected