commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject svn commit: r1008161 [16/44] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/class-use/ apidocs/org/apache/commons/text/diff/ apidocs/org/apache/commons/text/di...
Date Sun, 12 Mar 2017 02:08:05 GMT
Modified: websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeEscaper.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeEscaper.html
(original)
+++ websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeEscaper.html
Sun Mar 12 02:08:01 2017
@@ -34,115 +34,118 @@
 <span class="sourceLineNo">026</span> */<a name="line.26"></a>
 <span class="sourceLineNo">027</span>public class UnicodeEscaper extends CodePointTranslator
{<a name="line.27"></a>
 <span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span>    private final int below;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>    private final int above;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>    private final boolean between;<a
name="line.31"></a>
-<span class="sourceLineNo">032</span><a name="line.32"></a>
-<span class="sourceLineNo">033</span>    /**<a name="line.33"></a>
-<span class="sourceLineNo">034</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
for all characters. &lt;/p&gt;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>     */<a name="line.35"></a>
-<span class="sourceLineNo">036</span>    public UnicodeEscaper(){<a name="line.36"></a>
-<span class="sourceLineNo">037</span>        this(0, Integer.MAX_VALUE, true);<a
name="line.37"></a>
-<span class="sourceLineNo">038</span>    }<a name="line.38"></a>
-<span class="sourceLineNo">039</span><a name="line.39"></a>
-<span class="sourceLineNo">040</span>    /**<a name="line.40"></a>
-<span class="sourceLineNo">041</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
for the specified range. This is<a name="line.41"></a>
-<span class="sourceLineNo">042</span>     * the underlying method for the other
constructors/builders. The &lt;code&gt;below&lt;/code&gt;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>     * and &lt;code&gt;above&lt;/code&gt;
boundaries are inclusive when &lt;code&gt;between&lt;/code&gt; is<a name="line.43"></a>
-<span class="sourceLineNo">044</span>     * &lt;code&gt;true&lt;/code&gt;
and exclusive when it is &lt;code&gt;false&lt;/code&gt;. &lt;/p&gt;<a
name="line.44"></a>
-<span class="sourceLineNo">045</span>     *<a name="line.45"></a>
-<span class="sourceLineNo">046</span>     * @param below int value representing
the lowest codepoint boundary<a name="line.46"></a>
-<span class="sourceLineNo">047</span>     * @param above int value representing
the highest codepoint boundary<a name="line.47"></a>
-<span class="sourceLineNo">048</span>     * @param between whether to escape
between the boundaries or outside them<a name="line.48"></a>
-<span class="sourceLineNo">049</span>     */<a name="line.49"></a>
-<span class="sourceLineNo">050</span>    protected UnicodeEscaper(final int below,
final int above, final boolean between) {<a name="line.50"></a>
-<span class="sourceLineNo">051</span>        this.below = below;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>        this.above = above;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>        this.between = between;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>    }<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span>    /**<a name="line.56"></a>
-<span class="sourceLineNo">057</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
below the specified value (exclusive). &lt;/p&gt;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>     *<a name="line.58"></a>
-<span class="sourceLineNo">059</span>     * @param codepoint below which to escape<a
name="line.59"></a>
-<span class="sourceLineNo">060</span>     * @return the newly created {@code
UnicodeEscaper} instance<a name="line.60"></a>
-<span class="sourceLineNo">061</span>     */<a name="line.61"></a>
-<span class="sourceLineNo">062</span>    public static UnicodeEscaper below(final
int codepoint) {<a name="line.62"></a>
-<span class="sourceLineNo">063</span>        return outsideOf(codepoint, Integer.MAX_VALUE);<a
name="line.63"></a>
-<span class="sourceLineNo">064</span>    }<a name="line.64"></a>
-<span class="sourceLineNo">065</span><a name="line.65"></a>
-<span class="sourceLineNo">066</span>    /**<a name="line.66"></a>
-<span class="sourceLineNo">067</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
above the specified value (exclusive). &lt;/p&gt;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>     *<a name="line.68"></a>
-<span class="sourceLineNo">069</span>     * @param codepoint above which to escape<a
name="line.69"></a>
-<span class="sourceLineNo">070</span>     * @return the newly created {@code
UnicodeEscaper} instance<a name="line.70"></a>
-<span class="sourceLineNo">071</span>     */<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    public static UnicodeEscaper above(final
int codepoint) {<a name="line.72"></a>
-<span class="sourceLineNo">073</span>        return outsideOf(0, codepoint);<a
name="line.73"></a>
-<span class="sourceLineNo">074</span>    }<a name="line.74"></a>
-<span class="sourceLineNo">075</span><a name="line.75"></a>
-<span class="sourceLineNo">076</span>    /**<a name="line.76"></a>
-<span class="sourceLineNo">077</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
outside of the specified values (exclusive). &lt;/p&gt;<a name="line.77"></a>
-<span class="sourceLineNo">078</span>     *<a name="line.78"></a>
-<span class="sourceLineNo">079</span>     * @param codepointLow below which to
escape<a name="line.79"></a>
-<span class="sourceLineNo">080</span>     * @param codepointHigh above which
to escape<a name="line.80"></a>
-<span class="sourceLineNo">081</span>     * @return the newly created {@code
UnicodeEscaper} instance<a name="line.81"></a>
-<span class="sourceLineNo">082</span>     */<a name="line.82"></a>
-<span class="sourceLineNo">083</span>    public static UnicodeEscaper outsideOf(final
int codepointLow, final int codepointHigh) {<a name="line.83"></a>
-<span class="sourceLineNo">084</span>        return new UnicodeEscaper(codepointLow,
codepointHigh, false);<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    }<a name="line.85"></a>
-<span class="sourceLineNo">086</span><a name="line.86"></a>
-<span class="sourceLineNo">087</span>    /**<a name="line.87"></a>
-<span class="sourceLineNo">088</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
between the specified values (inclusive). &lt;/p&gt;<a name="line.88"></a>
-<span class="sourceLineNo">089</span>     *<a name="line.89"></a>
-<span class="sourceLineNo">090</span>     * @param codepointLow above which to
escape<a name="line.90"></a>
-<span class="sourceLineNo">091</span>     * @param codepointHigh below which
to escape<a name="line.91"></a>
-<span class="sourceLineNo">092</span>     * @return the newly created {@code
UnicodeEscaper} instance<a name="line.92"></a>
-<span class="sourceLineNo">093</span>     */<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    public static UnicodeEscaper between(final
int codepointLow, final int codepointHigh) {<a name="line.94"></a>
-<span class="sourceLineNo">095</span>        return new UnicodeEscaper(codepointLow,
codepointHigh, true);<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    }<a name="line.96"></a>
-<span class="sourceLineNo">097</span><a name="line.97"></a>
-<span class="sourceLineNo">098</span>    /**<a name="line.98"></a>
-<span class="sourceLineNo">099</span>     * {@inheritDoc}<a name="line.99"></a>
-<span class="sourceLineNo">100</span>     */<a name="line.100"></a>
-<span class="sourceLineNo">101</span>    @Override<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    public boolean translate(final int codepoint,
final Writer out) throws IOException {<a name="line.102"></a>
-<span class="sourceLineNo">103</span>        if (between) {<a name="line.103"></a>
-<span class="sourceLineNo">104</span>            if (codepoint &lt; below
|| codepoint &gt; above) {<a name="line.104"></a>
-<span class="sourceLineNo">105</span>                return false;<a name="line.105"></a>
-<span class="sourceLineNo">106</span>            }<a name="line.106"></a>
-<span class="sourceLineNo">107</span>        } else {<a name="line.107"></a>
-<span class="sourceLineNo">108</span>            if (codepoint &gt;= below
&amp;&amp; codepoint &lt;= above) {<a name="line.108"></a>
+<span class="sourceLineNo">029</span>    /** int value representing the lowest
codepoint boundary. */<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    private final int below;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>    /** int value representing the highest
codepoint boundary. */<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    private final int above;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    /** whether to escape between the boundaries
or outside them. */<a name="line.33"></a>
+<span class="sourceLineNo">034</span>    private final boolean between;<a
name="line.34"></a>
+<span class="sourceLineNo">035</span><a name="line.35"></a>
+<span class="sourceLineNo">036</span>    /**<a name="line.36"></a>
+<span class="sourceLineNo">037</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
for all characters.<a name="line.37"></a>
+<span class="sourceLineNo">038</span>     * &lt;/p&gt;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>     */<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    public UnicodeEscaper() {<a name="line.40"></a>
+<span class="sourceLineNo">041</span>        this(0, Integer.MAX_VALUE, true);<a
name="line.41"></a>
+<span class="sourceLineNo">042</span>    }<a name="line.42"></a>
+<span class="sourceLineNo">043</span><a name="line.43"></a>
+<span class="sourceLineNo">044</span>    /**<a name="line.44"></a>
+<span class="sourceLineNo">045</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
for the specified range. This is<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     * the underlying method for the other
constructors/builders. The &lt;code&gt;below&lt;/code&gt;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     * and &lt;code&gt;above&lt;/code&gt;
boundaries are inclusive when &lt;code&gt;between&lt;/code&gt; is<a name="line.47"></a>
+<span class="sourceLineNo">048</span>     * &lt;code&gt;true&lt;/code&gt;
and exclusive when it is &lt;code&gt;false&lt;/code&gt;. &lt;/p&gt;<a
name="line.48"></a>
+<span class="sourceLineNo">049</span>     *<a name="line.49"></a>
+<span class="sourceLineNo">050</span>     * @param below int value representing
the lowest codepoint boundary<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     * @param above int value representing
the highest codepoint boundary<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     * @param between whether to escape
between the boundaries or outside them<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     */<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    protected UnicodeEscaper(final int below,
final int above, final boolean between) {<a name="line.54"></a>
+<span class="sourceLineNo">055</span>        this.below = below;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>        this.above = above;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>        this.between = between;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    }<a name="line.58"></a>
+<span class="sourceLineNo">059</span><a name="line.59"></a>
+<span class="sourceLineNo">060</span>    /**<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
below the specified value (exclusive). &lt;/p&gt;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     *<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     * @param codepoint below which to escape<a
name="line.63"></a>
+<span class="sourceLineNo">064</span>     * @return the newly created {@code
UnicodeEscaper} instance<a name="line.64"></a>
+<span class="sourceLineNo">065</span>     */<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    public static UnicodeEscaper below(final
int codepoint) {<a name="line.66"></a>
+<span class="sourceLineNo">067</span>        return outsideOf(codepoint, Integer.MAX_VALUE);<a
name="line.67"></a>
+<span class="sourceLineNo">068</span>    }<a name="line.68"></a>
+<span class="sourceLineNo">069</span><a name="line.69"></a>
+<span class="sourceLineNo">070</span>    /**<a name="line.70"></a>
+<span class="sourceLineNo">071</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
above the specified value (exclusive). &lt;/p&gt;<a name="line.71"></a>
+<span class="sourceLineNo">072</span>     *<a name="line.72"></a>
+<span class="sourceLineNo">073</span>     * @param codepoint above which to escape<a
name="line.73"></a>
+<span class="sourceLineNo">074</span>     * @return the newly created {@code
UnicodeEscaper} instance<a name="line.74"></a>
+<span class="sourceLineNo">075</span>     */<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    public static UnicodeEscaper above(final
int codepoint) {<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        return outsideOf(0, codepoint);<a
name="line.77"></a>
+<span class="sourceLineNo">078</span>    }<a name="line.78"></a>
+<span class="sourceLineNo">079</span><a name="line.79"></a>
+<span class="sourceLineNo">080</span>    /**<a name="line.80"></a>
+<span class="sourceLineNo">081</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
outside of the specified values (exclusive). &lt;/p&gt;<a name="line.81"></a>
+<span class="sourceLineNo">082</span>     *<a name="line.82"></a>
+<span class="sourceLineNo">083</span>     * @param codepointLow below which to
escape<a name="line.83"></a>
+<span class="sourceLineNo">084</span>     * @param codepointHigh above which
to escape<a name="line.84"></a>
+<span class="sourceLineNo">085</span>     * @return the newly created {@code
UnicodeEscaper} instance<a name="line.85"></a>
+<span class="sourceLineNo">086</span>     */<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    public static UnicodeEscaper outsideOf(final
int codepointLow, final int codepointHigh) {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>        return new UnicodeEscaper(codepointLow,
codepointHigh, false);<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    }<a name="line.89"></a>
+<span class="sourceLineNo">090</span><a name="line.90"></a>
+<span class="sourceLineNo">091</span>    /**<a name="line.91"></a>
+<span class="sourceLineNo">092</span>     * &lt;p&gt;Constructs a &lt;code&gt;UnicodeEscaper&lt;/code&gt;
between the specified values (inclusive). &lt;/p&gt;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>     *<a name="line.93"></a>
+<span class="sourceLineNo">094</span>     * @param codepointLow above which to
escape<a name="line.94"></a>
+<span class="sourceLineNo">095</span>     * @param codepointHigh below which
to escape<a name="line.95"></a>
+<span class="sourceLineNo">096</span>     * @return the newly created {@code
UnicodeEscaper} instance<a name="line.96"></a>
+<span class="sourceLineNo">097</span>     */<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    public static UnicodeEscaper between(final
int codepointLow, final int codepointHigh) {<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        return new UnicodeEscaper(codepointLow,
codepointHigh, true);<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    }<a name="line.100"></a>
+<span class="sourceLineNo">101</span><a name="line.101"></a>
+<span class="sourceLineNo">102</span>    /**<a name="line.102"></a>
+<span class="sourceLineNo">103</span>     * {@inheritDoc}<a name="line.103"></a>
+<span class="sourceLineNo">104</span>     */<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    @Override<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    public boolean translate(final int codepoint,
final Writer out) throws IOException {<a name="line.106"></a>
+<span class="sourceLineNo">107</span>        if (between) {<a name="line.107"></a>
+<span class="sourceLineNo">108</span>            if (codepoint &lt; below
|| codepoint &gt; above) {<a name="line.108"></a>
 <span class="sourceLineNo">109</span>                return false;<a name="line.109"></a>
 <span class="sourceLineNo">110</span>            }<a name="line.110"></a>
-<span class="sourceLineNo">111</span>        }<a name="line.111"></a>
-<span class="sourceLineNo">112</span><a name="line.112"></a>
-<span class="sourceLineNo">113</span>        // TODO: Handle potential + sign
per various Unicode escape implementations<a name="line.113"></a>
-<span class="sourceLineNo">114</span>        if (codepoint &gt; 0xffff) {<a
name="line.114"></a>
-<span class="sourceLineNo">115</span>            out.write(toUtf16Escape(codepoint));<a
name="line.115"></a>
-<span class="sourceLineNo">116</span>        } else {<a name="line.116"></a>
-<span class="sourceLineNo">117</span>          out.write("\\u");<a name="line.117"></a>
-<span class="sourceLineNo">118</span>          out.write(HEX_DIGITS[(codepoint
&gt;&gt; 12) &amp; 15]);<a name="line.118"></a>
-<span class="sourceLineNo">119</span>          out.write(HEX_DIGITS[(codepoint
&gt;&gt; 8) &amp; 15]);<a name="line.119"></a>
-<span class="sourceLineNo">120</span>          out.write(HEX_DIGITS[(codepoint
&gt;&gt; 4) &amp; 15]);<a name="line.120"></a>
-<span class="sourceLineNo">121</span>          out.write(HEX_DIGITS[(codepoint)
&amp; 15]);<a name="line.121"></a>
-<span class="sourceLineNo">122</span>        }<a name="line.122"></a>
-<span class="sourceLineNo">123</span>        return true;<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    }<a name="line.124"></a>
-<span class="sourceLineNo">125</span><a name="line.125"></a>
-<span class="sourceLineNo">126</span>    /**<a name="line.126"></a>
-<span class="sourceLineNo">127</span>     * Converts the given codepoint to a
hex string of the form {@code "\\uXXXX"}<a name="line.127"></a>
-<span class="sourceLineNo">128</span>     * <a name="line.128"></a>
-<span class="sourceLineNo">129</span>     * @param codepoint<a name="line.129"></a>
-<span class="sourceLineNo">130</span>     *            a Unicode code point<a
name="line.130"></a>
-<span class="sourceLineNo">131</span>     * @return the hex string for the given
codepoint<a name="line.131"></a>
-<span class="sourceLineNo">132</span>     *<a name="line.132"></a>
-<span class="sourceLineNo">133</span>     */<a name="line.133"></a>
-<span class="sourceLineNo">134</span>    protected String toUtf16Escape(final
int codepoint) {<a name="line.134"></a>
-<span class="sourceLineNo">135</span>        return "\\u" + hex(codepoint);<a
name="line.135"></a>
-<span class="sourceLineNo">136</span>    }<a name="line.136"></a>
-<span class="sourceLineNo">137</span>}<a name="line.137"></a>
+<span class="sourceLineNo">111</span>        } else {<a name="line.111"></a>
+<span class="sourceLineNo">112</span>            if (codepoint &gt;= below
&amp;&amp; codepoint &lt;= above) {<a name="line.112"></a>
+<span class="sourceLineNo">113</span>                return false;<a name="line.113"></a>
+<span class="sourceLineNo">114</span>            }<a name="line.114"></a>
+<span class="sourceLineNo">115</span>        }<a name="line.115"></a>
+<span class="sourceLineNo">116</span><a name="line.116"></a>
+<span class="sourceLineNo">117</span>        if (codepoint &gt; 0xffff) {<a
name="line.117"></a>
+<span class="sourceLineNo">118</span>            out.write(toUtf16Escape(codepoint));<a
name="line.118"></a>
+<span class="sourceLineNo">119</span>        } else {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>          out.write("\\u");<a name="line.120"></a>
+<span class="sourceLineNo">121</span>          out.write(HEX_DIGITS[(codepoint
&gt;&gt; 12) &amp; 15]);<a name="line.121"></a>
+<span class="sourceLineNo">122</span>          out.write(HEX_DIGITS[(codepoint
&gt;&gt; 8) &amp; 15]);<a name="line.122"></a>
+<span class="sourceLineNo">123</span>          out.write(HEX_DIGITS[(codepoint
&gt;&gt; 4) &amp; 15]);<a name="line.123"></a>
+<span class="sourceLineNo">124</span>          out.write(HEX_DIGITS[(codepoint)
&amp; 15]);<a name="line.124"></a>
+<span class="sourceLineNo">125</span>        }<a name="line.125"></a>
+<span class="sourceLineNo">126</span>        return true;<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    }<a name="line.127"></a>
+<span class="sourceLineNo">128</span><a name="line.128"></a>
+<span class="sourceLineNo">129</span>    /**<a name="line.129"></a>
+<span class="sourceLineNo">130</span>     * Converts the given codepoint to a
hex string of the form {@code "\\uXXXX"}.<a name="line.130"></a>
+<span class="sourceLineNo">131</span>     *<a name="line.131"></a>
+<span class="sourceLineNo">132</span>     * @param codepoint<a name="line.132"></a>
+<span class="sourceLineNo">133</span>     *            a Unicode code point<a
name="line.133"></a>
+<span class="sourceLineNo">134</span>     * @return the hex string for the given
codepoint<a name="line.134"></a>
+<span class="sourceLineNo">135</span>     *<a name="line.135"></a>
+<span class="sourceLineNo">136</span>     */<a name="line.136"></a>
+<span class="sourceLineNo">137</span>    protected String toUtf16Escape(final
int codepoint) {<a name="line.137"></a>
+<span class="sourceLineNo">138</span>        return "\\u" + hex(codepoint);<a
name="line.138"></a>
+<span class="sourceLineNo">139</span>    }<a name="line.139"></a>
+<span class="sourceLineNo">140</span>}<a name="line.140"></a>
 
 
 

Modified: websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeUnescaper.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeUnescaper.html
(original)
+++ websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeUnescaper.html
Sun Mar 12 02:08:01 2017
@@ -13,9 +13,9 @@
 <span class="sourceLineNo">005</span> * The ASF licenses this file to You under
the Apache License, Version 2.0<a name="line.5"></a>
 <span class="sourceLineNo">006</span> * (the "License"); you may not use this
file except in compliance with<a name="line.6"></a>
 <span class="sourceLineNo">007</span> * the License.  You may obtain a copy of
the License at<a name="line.7"></a>
-<span class="sourceLineNo">008</span> * <a name="line.8"></a>
+<span class="sourceLineNo">008</span> *<a name="line.8"></a>
 <span class="sourceLineNo">009</span> *      http://www.apache.org/licenses/LICENSE-2.0<a
name="line.9"></a>
-<span class="sourceLineNo">010</span> * <a name="line.10"></a>
+<span class="sourceLineNo">010</span> *<a name="line.10"></a>
 <span class="sourceLineNo">011</span> * Unless required by applicable law or
agreed to in writing, software<a name="line.11"></a>
 <span class="sourceLineNo">012</span> * distributed under the License is distributed
on an "AS IS" BASIS,<a name="line.12"></a>
 <span class="sourceLineNo">013</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.<a name="line.13"></a>
@@ -28,8 +28,8 @@
 <span class="sourceLineNo">020</span>import java.io.Writer;<a name="line.20"></a>
 <span class="sourceLineNo">021</span><a name="line.21"></a>
 <span class="sourceLineNo">022</span>/**<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * Translates escaped Unicode values of
the form \\u+\d\d\d\d back to <a name="line.23"></a>
-<span class="sourceLineNo">024</span> * Unicode. It supports multiple 'u' characters
and will work with or <a name="line.24"></a>
+<span class="sourceLineNo">023</span> * Translates escaped Unicode values of
the form \\u+\d\d\d\d back to<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * Unicode. It supports multiple 'u' characters
and will work with or<a name="line.24"></a>
 <span class="sourceLineNo">025</span> * without the +.<a name="line.25"></a>
 <span class="sourceLineNo">026</span> *<a name="line.26"></a>
 <span class="sourceLineNo">027</span> * @since 1.0<a name="line.27"></a>
@@ -64,12 +64,13 @@
 <span class="sourceLineNo">056</span>                }<a name="line.56"></a>
 <span class="sourceLineNo">057</span>                return i + 4;<a name="line.57"></a>
 <span class="sourceLineNo">058</span>            }<a name="line.58"></a>
-<span class="sourceLineNo">059</span>            throw new IllegalArgumentException("Less
than 4 hex digits in unicode value: '" + input.subSequence(index, input.length())<a name="line.59"></a>
-<span class="sourceLineNo">060</span>                    + "' due to end of CharSequence");<a
name="line.60"></a>
-<span class="sourceLineNo">061</span>        }<a name="line.61"></a>
-<span class="sourceLineNo">062</span>        return 0;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>    }<a name="line.63"></a>
-<span class="sourceLineNo">064</span>}<a name="line.64"></a>
+<span class="sourceLineNo">059</span>            throw new IllegalArgumentException("Less
than 4 hex digits in unicode value: '"<a name="line.59"></a>
+<span class="sourceLineNo">060</span>                    + input.subSequence(index,
input.length())<a name="line.60"></a>
+<span class="sourceLineNo">061</span>                    + "' due to end of CharSequence");<a
name="line.61"></a>
+<span class="sourceLineNo">062</span>        }<a name="line.62"></a>
+<span class="sourceLineNo">063</span>        return 0;<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    }<a name="line.64"></a>
+<span class="sourceLineNo">065</span>}<a name="line.65"></a>
 
 
 

Modified: websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemover.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemover.html
(original)
+++ websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemover.html
Sun Mar 12 02:08:01 2017
@@ -34,7 +34,7 @@
 <span class="sourceLineNo">026</span> */<a name="line.26"></a>
 <span class="sourceLineNo">027</span>public class UnicodeUnpairedSurrogateRemover
extends CodePointTranslator {<a name="line.27"></a>
 <span class="sourceLineNo">028</span>    /**<a name="line.28"></a>
-<span class="sourceLineNo">029</span>     * Implementation of translate that
throws out unpaired surrogates. <a name="line.29"></a>
+<span class="sourceLineNo">029</span>     * Implementation of translate that
throws out unpaired surrogates.<a name="line.29"></a>
 <span class="sourceLineNo">030</span>     * {@inheritDoc}<a name="line.30"></a>
 <span class="sourceLineNo">031</span>     */<a name="line.31"></a>
 <span class="sourceLineNo">032</span>    @Override<a name="line.32"></a>

Modified: websites/production/commons/content/proper/commons-text/changes-report.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/changes-report.html (original)
+++ websites/production/commons/content/proper/commons-text/changes-report.html Sun Mar 12
02:08:01 2017
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 14 February 2017
+ | Generated by Apache Maven Doxia at 11 March 2017
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20170214" />
+    <meta name="Date-Revision-yyyymmdd" content="20170311" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Commons Text &#x2013; Apache Commons Text Changes</title>
 
@@ -38,8 +38,8 @@
           <a class="brand" href="http://commons.apache.org/proper/commons-text/">Apache
Commons Text &trade;</a>
           <ul class="nav">      
                     
-            <li id="publishDate">Last Published: 14 February 2017</li>
-      <li class="divider">|</li> <li id="projectVersion">Version: 1.0-SNAPSHOT</li>
+            <li id="publishDate">Last Published: 11 March 2017</li>
+      <li class="divider">|</li> <li id="projectVersion">Version: 1.1-SNAPSHOT</li>
   </ul>
                     <div class="pull-right">  <ul class="nav">
             <li>
@@ -302,15 +302,15 @@
 <th>Date</th>
 <th>Description</th></tr>
 <tr class="b">
-<td><a href="#TBA">TBA</a></td>
-<td>TBA</td>
-<td>TBA</td></tr>
+<td><a href="#a1.0">1.0</a></td>
+<td>2017-03-04</td>
+<td>Incompatible changes    ====================    All package names changed from
org.apache.commons.text.beta in 1.0-beta-1 to    org.apache.commons.text in 1.0.     Methods
StringEscapeUtils#escapeHtml3Once and StringEscapeUtils#escapeHtml4Once    have been removed;
see TEXT-40</td></tr>
 <tr class="a">
 <td><a href="#a1.0-beta-1">1.0-beta-1</a></td>
 <td>2017-01-30</td>
 <td>First release (beta) of Commons Text</td></tr></table></div>
 <div class="section">
-<h3 id="TBA">Release TBA &#x2013; TBA</h3>
+<h3 id="a1.0">Release 1.0 &#x2013; 2017-03-04</h3>
 <table border="0" class="bodyTable">
 <tr class="b">
 <th>Type</th>
@@ -318,6 +318,22 @@
 <th>By</th></tr>
 <tr class="a">
 <td><img src="images/fix.gif" alt="Fix" title="Fix" /></td>
+<td>Investigate locale issue in ExtendedMessageFormatTest. Fixes <a class="externalLink"
href="http://issues.apache.org/jira/browse/TEXT-64">TEXT-64</a>. Thanks to chtompki.</td>
+<td><a href="team-list.html#kinow">kinow</a></td></tr>
+<tr class="b">
+<td><img src="images/fix.gif" alt="Fix" title="Fix" /></td>
+<td>Resolve PMD/CMD Violations. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/TEXT-69">TEXT-69</a>.</td>
+<td><a href="team-list.html#chtompki">chtompki</a></td></tr>
+<tr class="a">
+<td><img src="images/remove.gif" alt="Remove" title="Remove" /></td>
+<td>Escape HTML characters only once: revert. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/TEXT-40">TEXT-40</a>.</td>
+<td><a href="team-list.html#sebb">sebb</a></td></tr>
+<tr class="b">
+<td><img src="images/fix.gif" alt="Fix" title="Fix" /></td>
+<td>Fixing the 200 checkstyle errors present in 1.0-beta-1. Fixes <a class="externalLink"
href="http://issues.apache.org/jira/browse/TEXT-65">TEXT-65</a>.</td>
+<td><a href="team-list.html#chtompki">chtompki</a></td></tr>
+<tr class="a">
+<td><img src="images/fix.gif" alt="Fix" title="Fix" /></td>
 <td>Mutable fields should be private. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/TEXT-63">TEXT-63</a>.</td>
 <td><a href="team-list.html#sebb">sebb</a></td></tr></table></div>
 <div class="section">



Mime
View raw message