mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
16.00.2011 61be60eef8694b2c28386faf6dd2d7c4e842addd
opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/StaticUtils.java
@@ -1773,6 +1773,25 @@
  /**
   * Indicates whether the provided character is a keychar.
   *
   * @param c
   *          The character for which to make the determination.
   * @param allowCompatChars
   *          {@code true} if certain illegal characters should be allowed for
   *          compatibility reasons.
   * @return <CODE>true</CODE> if the provided character represents a
   *         keychar, or <CODE>false</CODE> if not.
   */
  public static boolean isKeyChar(final char c, final boolean allowCompatChars)
  {
    final ASCIICharProp cp = ASCIICharProp.valueOf(c);
    return cp != null ? cp.isKeyChar(allowCompatChars) : false;
  }
  /**
   * Returns a string whose content is the string representation of the objects
   * contained in the provided collection concatenated together using the
   * provided separator.