On Mon 17 Mar 2025 at 17:45 +0100, Emmanuel Lecharny wrote:

> Actually, putting the PostAddress class in utils would be better, I think.

OK, then the updated proposal now looks like this:


package org.apache.directory.api.util;

/**
 * Create unescapers and escapers for the RFC 4517 Postal Address syntax.
 *
 * <pre>
 * PostalAddress = line *( DOLLAR line )
 * line          = 1*line-char
 * line-char     = %x00-23
 *                 / (%x5C "24")  ; escaped "$"
 *                 / %x25-5B
 *                 / (%x5C "5C")  ; escaped "\"
 *                 / %x5D-7F
 *                 / UTFMB
 * </pre>
 */
public final class PostalAddress
{
    /**
     * Create an unescaper that uses the specified line separator.
     *
     * @param separator the separator to output between address lines
     * @return a commons-text translator object for unescaping
     */
    public static CharSequenceTranslator createUnescaper( String separator );

    /**
     * Create an escaper that uses the specified line separator.
     *
     * @param separator the separator used between address lines
     * @return a commons-text translator object for escaping
     */
    public static CharSequenceTranslator createEscaper( String separator );
}


Cheers // Fredrik Roubert

-- 
Forsterstrasse 64  |  +41 78 8170377
CH-8044 Zürich     |  https://roubert.name/fredrik/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org

Reply via email to