Added methods supporting a case-sensitive flag to choose between case-sensitive and insensitive comparisons.

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