normalize() public static method

Returns the DN normalized by removal of non-significant space characters as per RFC 2253, section4.
public static normalize ( System dn ) : System.String
dn System
return System.String
示例#1
0
 /// <summary> Compares this object with the specified object for order.
 ///
 /// Ordering is determined by comparing normalized DN values
 /// (see {@link LdapEntry#getDN() } and
 /// {@link LdapDN#normalize(java.lang.String)}) using the
 /// compareTo method of the String class.
 ///
 /// </summary>
 /// <param name="entry">    Entry to compare to
 ///
 /// </param>
 /// <returns>          A negative integer, zero, or a positive integer as this
 /// object is less than, equal to, or greater than the specified object.
 /// </returns>
 public virtual int CompareTo(System.Object entry)
 {
     return(LdapDN.normalize(this.dn).CompareTo(LdapDN.normalize(((LdapEntry)entry).dn)));
 }
示例#2
0
 /// <summary>
 ///     Compares this object with the specified object for order.
 ///     Ordering is determined by comparing normalized DN values
 ///     (see {@link LdapEntry#getDN() } and
 ///     {@link LdapDN#normalize(java.lang.String)}) using the
 ///     compareTo method of the String class.
 /// </summary>
 /// <param name="entry">
 ///     Entry to compare to
 /// </param>
 /// <returns>
 ///     A negative integer, zero, or a positive integer as this
 ///     object is less than, equal to, or greater than the specified object.
 /// </returns>
 public virtual int CompareTo(object entry)
 {
     return(LdapDN.normalize(dn).CompareTo(LdapDN.normalize(((LdapEntry)entry).dn)));
 }