Checks if the specified character is a valid character for a database name. @param ch the character to be checked @param firstLast character is first or last @return result of check
(final int ch, final boolean firstLast)
| 169 | * @return result of check |
| 170 | */ |
| 171 | public static boolean validChar(final int ch, final boolean firstLast) { |
| 172 | return Token.letterOrDigit(ch) || DBCHARS.indexOf(ch) != -1 || !firstLast && ch == '.'; |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * Checks if the specified string is a valid database name. |
no test coverage detected