o Added a method to check if a char is an alphanumeric or '-'
o Some code formating

git-svn-id: https://svn.apache.org/repos/asf/directory/shared/trunk@1622455 13f79535-47bb-0310-9956-ffa450edef68
Small speedup

git-svn-id: https://svn.apache.org/repos/asf/directory/shared/trunk@1622456 13f79535-47bb-0310-9956-ffa450edef68