svn commit: r1012782 - in /websites/production/commons/content: ./ dormant/ proper/ sandbox/
Author: chtompki Date: Tue May 23 18:01:38 2017 New Revision: 1012782 Log: Update commons-text version Added: websites/production/commons/content/ - copied from r1012780, websites/staging/commons/trunk/content/ websites/production/commons/content/dormant/ - copied from r1012780, websites/production/commons/content/dormant/ websites/production/commons/content/proper/ - copied from r1012780, websites/production/commons/content/proper/ websites/production/commons/content/sandbox/ - copied from r1012780, websites/production/commons/content/sandbox/
svn commit: r1012775 - in /websites/staging/commons/trunk/content: ./ .htaccess
Author: buildbot Date: Tue May 23 16:10:59 2017 New Revision: 1012775 Log: Staging update by buildbot for commons Modified: websites/staging/commons/trunk/content/ (props changed) websites/staging/commons/trunk/content/.htaccess Propchange: websites/staging/commons/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue May 23 16:10:59 2017 @@ -1 +1 @@ -1795132 +1795927 Modified: websites/staging/commons/trunk/content/.htaccess == --- websites/staging/commons/trunk/content/.htaccess (original) +++ websites/staging/commons/trunk/content/.htaccess Tue May 23 16:10:59 2017 @@ -41,7 +41,6 @@ Redirect /dbcp /proper/commons-dbcp Redirect /dbutils /proper/commons-dbutils Redirect /discovery /proper/commons-discovery Redirect /digester /proper/commons-digester -Redirect /el /proper/commons-el Redirect /email /proper/commons-email Redirect /exec /proper/commons-exec Redirect /fileupload /proper/commons-fileupload @@ -63,10 +62,10 @@ Redirect /numbers /proper/commons-number Redirect /ognl /proper/commons-ognl Redirect /pool /proper/commons-pool Redirect /proxy /proper/commons-proxy +Redirect /rdf /proper/commons-rdf Redirect /rng /proper/commons-rng Redirect /scxml /proper/commons-scxml Redirect /text /proper/commons-text -Redirect /transaction /proper/commons-transaction Redirect /validator /proper/commons-validator Redirect /vfs /proper/commons-vfs Redirect /weaver /proper/commons-weaver @@ -95,7 +94,9 @@ Redirect /sandbox/weaver /proper/commons #dormant Redirect /betwixt /dormant/commons-betwixt +Redirect /el /dormant/commons-el Redirect /primitives /dormant/commons-primitives +Redirect /transaction /dormant/commons-transaction #javadocs generic redirect a pattern was to use api-release/ or apix.x.x. #RedirectMatch /proper/commons-(.*)/api-release(.*) http://commons.apache.org/proper/commons-$1/javadocs/api-release/$2
svn commit: r1012770 [7/7] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/class-use/ apidocs/org/apache/com
Modified: websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/similarity/package-summary.html == --- websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/similarity/package-summary.html (original) +++ websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/similarity/package-summary.html Tue May 23 13:58:47 2017 @@ -3,7 +3,7 @@ - Apache Commons Text 1.1 Reference Package org.apache.commons.text.similarity + Apache Commons Text 1.2-SNAPSHOT Reference Package org.apache.commons.text.similarity Modified: websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/translate/package-frame.html == --- websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/translate/package-frame.html (original) +++ websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/translate/package-frame.html Tue May 23 13:58:47 2017 @@ -3,7 +3,7 @@ - Apache Commons Text 1.1 Reference Package org.apache.commons.text.translate + Apache Commons Text 1.2-SNAPSHOT Reference Package org.apache.commons.text.translate Modified: websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/translate/package-summary.html == --- websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/translate/package-summary.html (original) +++ websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/translate/package-summary.html Tue May 23 13:58:47 2017 @@ -3,7 +3,7 @@ - Apache Commons Text 1.1 Reference Package org.apache.commons.text.translate + Apache Commons Text 1.2-SNAPSHOT Reference Package org.apache.commons.text.translate Modified: websites/production/commons/content/proper/commons-text/xref-test/overview-frame.html == --- websites/production/commons/content/proper/commons-text/xref-test/overview-frame.html (original) +++ websites/production/commons/content/proper/commons-text/xref-test/overview-frame.html Tue May 23 13:58:47 2017 @@ -3,7 +3,7 @@ - Apache Commons Text 1.1 Reference + Apache Commons Text 1.2-SNAPSHOT Reference Modified: websites/production/commons/content/proper/commons-text/xref-test/overview-summary.html == --- websites/production/commons/content/proper/commons-text/xref-test/overview-summary.html (original) +++ websites/production/commons/content/proper/commons-text/xref-test/overview-summary.html Tue May 23 13:58:47 2017 @@ -3,7 +3,7 @@ - Apache Commons Text 1.1 Reference + Apache Commons Text 1.2-SNAPSHOT Reference @@ -24,7 +24,7 @@ - Apache Commons Text 1.1 Reference + Apache Commons Text 1.2-SNAPSHOT Reference Modified: websites/production/commons/content/proper/commons-text/xref/index.html == --- websites/production/commons/content/proper/commons-text/xref/index.html (original) +++ websites/production/commons/content/proper/commons-text/xref/index.html Tue May 23 13:58:47 2017 @@ -4,7 +4,7 @@ - Apache Commons Text 1.1 Reference + Apache Commons Text 1.2-SNAPSHOT Reference Modified: websites/production/commons/content/proper/commons-text/xref/org/apache/commons/text/diff/package-frame.html == --- websites/production/commons/content/proper/commons-text/xref/org/apache/commons/text/diff/package-frame.html (original) +++ websites/production/commons/content/proper/commons-text/xref/org/apache/commons/text/diff/package-frame.html Tue May 23 13:58:47 2017 @@ -3,7 +3,7 @@ - Apache Commons Text 1.1 Reference Package org.apache.commons.text.diff + Apache Commons Text 1.2-SNAPSHOT Reference Package org.apache.commons.text.diff
svn commit: r1012767 [21/39] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/class-use/ apidocs/org/apache/c
Added: websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator$Builder.html == --- websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator$Builder.html (added) +++ websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator$Builder.html Tue May 23 13:12:41 2017 @@ -0,0 +1 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>http://www.w3.org/1999/xhtml; lang="en">RandomStringGenerator.BuilderSessionsApache Commons Text org.apache.commons.text RandomStringGenerator.BuilderRandomStringGenerator.BuilderElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsTotal0 of 119100%1 of 1492%11202205withinRange(int, int)100%100%040701filteredBy(CharacterPredicate[])100%87%150901build()100%n/a010101RandomStringGenerator.Builder()100%n/a010301usingRandom(TextRandomProvider)100%n/a010201Created with http://www.jacoco.org/jacoco;>JaCoCo 0.7.8.201612092310 \ No newline at end of file Added: websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator.html == --- websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator.html (added) +++ websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator.html Tue May 23 13:12:41 2017 @@ -0,0 +1 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>http://www.w3.org/1999/xhtml; lang="en">RandomStringGeneratorSessionsApache Commons Text org.apache.commons.text RandomStringGeneratorRandomStringGeneratorElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsTotal0 of 110100%0 of 18100%01203003generate(int)100%100%0902101generateRandomNumber(int, int)10 0%100%020301RandomStringGenerator(int, int, Set, TextRandomProvider)100%n/a010601Created with http://www.jacoco.org/jacoc o">JaCoCo 0.7.8.201612092310 \ No newline at end of file Added: websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator.java.html == --- websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator.java.html (added) +++ websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/RandomStringGenerator.java.html Tue May 23 13:12:41 2017 @@ -0,0 +1,348 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>http://www.w3.org/1999/xhtml; lang="en">RandomStringGenerator.javaSessionsApache Commons Text org.apache.commons.text RandomStringGenerator.javaRandomStringGenerator.java/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the License); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.text; + +import java.util.HashSet; +import java.util.Set; +import java.util.concurrent.ThreadLocalRandom; + +import org.apache.commons.lang3.Validate; + +/** + * p + * Generates random Unicode strings containing the specified number of code points. + * Instances are created using a builder class, which allows the + * callers to define the properties of the generator. See the documentation for the + * {@link Builder} class to see available properties. + * /p + * pre + * // Generates a 20 code point string, using only the letters a-z + * RandomStringGenerator generator = new RandomStringGenerator.Builder() + * .withinRange('a', 'z').build(); + * String randomLetters = generator.generate(20); + * /pre + * pre + * // Using Apache Commons RNG for randomness + * UniformRandomProvider rng = RandomSource.create(...); + * // Generates a 20 code point string, using only the letters a-z + * RandomStringGenerator generator = new RandomStringGenerator.Builder() + * .withinRange('a', 'z') + * .usingRandom(rng::nextInt) // uses Java 8 syntax + * .build(); + * String randomLetters = generator.generate(20); + * /pre + * p + * {@code RandomStringBuilder} instances are immutable and
svn commit: r1012767 [22/39] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/class-use/ apidocs/org/apache/c
Modified: websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/StrBuilder.html == --- websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/StrBuilder.html (original) +++ websites/production/commons/content/proper/commons-text/jacoco/org.apache.commons.text/StrBuilder.html Tue May 23 13:12:41 2017 @@ -1 +1 @@ -http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>http://www.w3.org/1999/xhtml; lang="en">StrBuilderSessionsApache Commons Text org.apache.commons.text StrBuilderStrBuilderElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsTotal77 of 3,57297%22 of 53295%24415187612149append(CharSequence)45%50%5651101append(CharBuffer, int, int)72%50%6741501append(CharBuffer)82%50%2321101insert(int, int)0%n/a11appendln(char)< /td>0%n/a11appendTo(Appendable)92%87%1 511001append(StringBuilder, int, int)94%91%1711201append(StringBuilder)91%75%131901append(CharSequence, int, int)75%50%121301equalsIgnoreCase(StrBuilder)95%90%1611201append(boolean)100%100%0201301readFrom(Readable)100%100%0502201insert(int, boolean)100%100%0201801insert(int, char[], int, int)100%100%0701301appendFixedWidthPadLeft(Object, int, char)100%100%0601401indexOf(String, int)100%100%01001801appendFixedWidthPadRight(Object, int, char)100%100%0601401lastIndexOf(String, int)100%100%011< td class="ctr1" id="h17">01501append(char[], int, int)100%100%0701201replaceImpl(StrMatcher, String, int, int, int)100%100%0801301append(String, int, int)100%100%0701201append(StringBuffer, int, int)100%100%0701201append(StrBuilder, int, int)100%1 00%0701201trim()100%100%0801401insert(int, char[])100%100%0301001insert(int, String)100%83%1401201setLength(int)100%100%0501201deleteAll(char)100%100%0501001replaceAll(String, String)100%100%050801reverse()100%100%030901endsWith(String)100%100%0601201equals(StrBuilder)100%100%0601201lastIndexOf(StrMatcher, int)100%100%060901replaceImpl(int, int, int, String, int)100%100%030801indexOf(StrMatcher, int)100%100%060901midString(int, int)100%100%050701getChars(int, int, char[], int)100%100%050801insert(int, char)100%n/a010601startsWith(String)100%100%0601101append(StrBuilder)100%100%030901appendWithSeparators(Object[], String)100%100%040701append(String)100%100%030901append(StringBuffer)100%100%030901append(char[])100%100%030901replaceFirst(String, String) 100%100%050701indexOf(char, int)100%100%050801deleteAll(String)100%100%040701subSequence(int, int)100%100%040701lastIndexOf(char, int)100%100%050701a ppendPadding(int, char)100%100%030501rightString(int)100%100%030501appendAll(Object[])100%100%040401appendWithSeparators(Iterable, String)100%100%040801toCharArray(int, int)100%100%020701deleteFirst(String)100%100%040601replaceFirst(char, char)100%100%040601leftString(int)100%100%030501ensureCapacity(int)100%100%020501minimizeCapacity()100%50%120501appendWithSeparators(Iterator, String)100%100%040701deleteFirst(char)100%100%030501replaceAll(char, char)100%100%040501hashCode()100%100%020501validateRange(int, int)100%100%040701replace(int, int, String)100%100%020401append(char)100%n /a010401StrBuilder(String)100%100%020601getChars(char[])100%100%030501deleteCharAt(int)100%75%130401toCharArray()100%100%020501contains(char)100%100%030501setCharAt(int, char)100%100%030401append(Object)100%100%030501appendAll(Iterable)100%100%030501deleteImpl(int, int, int)100%n/a010301delete(int, int)100%100%< /td>020501charAt(int)100%100%030301appendNewLine()100%100%020401appendSeparator(String, String)100%100%030401substring(int, int)100%n/a010201appendSeparator(char, char)100%100%020401insert(int, Object)100%100%020301appendAll(Iterator)100%100%030401replace(StrMatcher, String, int, int, int)100%n/a010201setNullText(String)< img src="../jacoco-resources/greenbar.gif" width="12" height="10" title="12" alt="12"/>100%100%030401equals(Object)100%100%0302 01toStringBuffer()100%n/a010101toStringBuilder()100%n/a010101validateIndex(int)100%100%030301StrBuilder(int)100%100%020501appendNull()100%100%020301appendSeparator(String, int) 100%75%130301appendSeparator(char)100%100%020301deleteAll(StrMatcher)100%n/a010101deleteFirst(StrMatcher)100%n/a010101replaceAll(StrMatcher, String)100%n/a010101replaceFirst(StrMatcher, String)100%n/a010101contains(String)100%100%020101contains(StrMatcher)100%100%020101toString()100%n/a010101appendSeparator(char, int)100%100%020301lastIndexOf(char)100%n/a010101lastIndexOf(String)100%n/a010101isEmpty()100%100% 020101appendln(String, int, int)100%n/a010101appendln(StringBuilder, int, int)100%n/a010101appendln(StringBuffer, int, int)100%n/a010101appendln(StrBuilder, int, int)100%n/a010101appendln(char[], int, int)100%n/a010101appendFixedWidthPadLeft(int, int, char)100%n/a010101appendFixedWidthPadRight(int, int, char)100%n/a010101append(Str ing, Object[])100%n/a010101appendln(String,
svn commit: r1012767 [10/39] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/class-use/ apidocs/org/apache/c
Modified: websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrBuilder.html == --- websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrBuilder.html (original) +++ websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrBuilder.html Tue May 23 13:12:41 2017 @@ -480,7 +480,7 @@ 472 */ 473public StrBuilder appendNewLine() { 474if (newLine == null) { -475 append(System.getProperty("line.separator")); +475 append(System.lineSeparator()); 476return this; 477} 478return append(newLine); @@ -2623,7 +2623,7 @@ 2615 * changed on the tokenizer class, before retrieving the tokens. 2616 * p 2617 * The returned tokenizer is linked to this builder. You may intermix -2618 * calls to the buider and tokenizer within certain limits, however +2618 * calls to the builder and tokenizer within certain limits, however 2619 * there is no synchronization. Once the tokenizer has been used once, 2620 * it must be {@link StrTokenizer#reset() reset} to pickup the latest 2621 * changes in the builder. For example: @@ -2724,380 +2724,349 @@ 2716} 2717} 2718 -2719 //--- -2720///** -2721// * Gets a String version of the string builder by calling the internal -2722// * constructor of String by reflection. -2723// * p -2724// * WARNING: You must not use the StrBuilder after calling this method -2725// * as the buffer is now shared with the String object. To ensure this, -2726// * the internal character array is set to null, so you will get -2727// * NullPointerExceptions on all method calls. -2728// * -2729// * @return the builder as a String -2730// */ -2731//public String toSharedString() { -2732//try { -2733//Constructor con = String.class.getDeclaredConstructor( -2734//new Class[] {int.class, int.class, char[].class}); -2735//con.setAccessible(true); -2736//char[] buffer = buf; -2737//buf = null; -2738//size = -1; -2739//nullText = null; -2740//return (String) con.newInstance( -2741//new Object[] {Integer.valueOf(0), Integer.valueOf(size), buffer}); -2742// -2743//} catch (Exception ex) { -2744//ex.printStackTrace(); -2745//throw new UnsupportedOperationException("StrBuilder.toSharedString is unsupported: " + ex.getMessage()); -2746//} -2747//} -2748 -2749 //--- -2750/** -2751 * Checks the contents of this builder against another to see if they -2752 * contain the same character content ignoring case. -2753 * -2754 * @param other the object to check, null returns false -2755 * @return true if the builders contain the same characters in the same order -2756 */ -2757public boolean equalsIgnoreCase(final StrBuilder other) { -2758if (this == other) { -2759return true; -2760} -2761if (this.size != other.size) { -2762return false; -2763} -2764final char[] thisBuf = this.buffer; -2765final char[] otherBuf = other.buffer; -2766for (int i = size - 1; i = 0; i--) { -2767final char c1 = thisBuf[i]; -2768final char c2 = otherBuf[i]; -2769if (c1 != c2 Character.toUpperCase(c1) != Character.toUpperCase(c2)) { -2770return false; -2771} -2772} -2773return true; -2774} -2775 -2776/** -2777 * Checks the contents of this builder against another to see if they -2778 * contain the same character content. -2779 * -2780 * @param other the object to check, null returns false -2781 * @return true if the builders contain the same characters in the same order -2782 */ -2783public boolean equals(final StrBuilder other) { -2784if (this == other) { -2785return true; -2786} -2787if (other == null) { -2788return false; -2789} -2790if (this.size != other.size) { -2791return false; -2792} -2793final char[] thisBuf = this.buffer; -2794final char[] otherBuf = other.buffer; -2795for (int i = size - 1; i = 0; i--) { -2796if (thisBuf[i] != otherBuf[i]) { -2797return false; -2798} -2799} -2800return true; -2801} -2802 -2803/** -2804 * Checks the contents of this builder against another to see if they -2805 * contain the same character
svn commit: r1012767 [38/39] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/class-use/ apidocs/org/apache/c
Added: websites/production/commons/content/proper/commons-text/xref/org/apache/commons/text/WordUtils.html == --- websites/production/commons/content/proper/commons-text/xref/org/apache/commons/text/WordUtils.html (added) +++ websites/production/commons/content/proper/commons-text/xref/org/apache/commons/text/WordUtils.html Tue May 23 13:12:41 2017 @@ -0,0 +1,879 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +WordUtils xref + + + +View Javadoc +1 /* +2* Licensed to the Apache Software Foundation (ASF) under one or more +3* contributor license agreements. See the NOTICE file distributed with +4* this work for additional information regarding copyright ownership. +5* The ASF licenses this file to You under the Apache License, Version 2.0 +6* (the "License"); you may not use this file except in compliance with +7* the License. You may obtain a copy of the License at +8* +9* http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +10 * +11 * Unless required by applicable law or agreed to in writing, software +12 * distributed under the License is distributed on an "AS IS" BASIS, +13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +14 * See the License for the specific language governing permissions and +15 * limitations under the License. +16 */ +17 package org.apache.commons.text; +18 +19 import java.util.regex.Matcher; +20 import java.util.regex.Pattern; +21 +22 import org.apache.commons.lang3.ArrayUtils; +23 import org.apache.commons.lang3.StringUtils; +24 import org.apache.commons.lang3.Validate; +25 +26 /** +27 * pOperations on Strings that contain words./p +28 * +29 * pThis class tries to handle codenull/code input gracefully. +30 * An exception will not be thrown for a codenull/code input. +31 * Each method documents its behaviour in more detail./p +32 * +33 * @since 1.1 +34 */ +35 public class WordUtils { +36 +37 /** +38 * pcodeWordUtils/code instances should NOT be constructed in +39 * standard programming. Instead, the class should be used as +40 * codeWordUtils.wrap("foo bar", 20);/code./p +41 * +42 * pThis constructor is public to permit tools that require a JavaBean +43 * instance to operate./p +44 */ +45 public WordUtils() { +46super(); +47 } +48 +49 // Wrapping +50 //-- +51 /** +52 * pWraps a single line of text, identifying words by code' '/code./p +53 * +54 * pNew lines will be separated by the system property line separator. +55 * Very long words, such as URLs will inot/i be wrapped./p +56 * +57 * pLeading spaces on a new line are stripped. +58 * Trailing spaces are not stripped./p +59 * +60 * table border="1" summary="Wrap Results" +61 * tr +62 * thinput/th +63 * thwrapLength/th +64 * thresult/th +65 * /tr +66 * tr +67 * tdnull/td +68 * td*/td +69 * tdnull/td +70 * /tr +71 * tr +72 * td""/td +73 * td*/td +74 * td""/td +75 * /tr +76 * tr +77 * td"Here is one line of text that is going to be wrapped after 20 columns."/td +78 * td20/td +79 * td"Here is one line of\ntext that is going\nto be wrapped after\n20 columns."/td +80 * /tr +81 * tr +82 * td"Click here to jump to the commons website - http://commons.apache.org; target="alexandria_uri">http://commons.apache.org"/td +83 * td20/td +84 * td"Click here to jump\nto the commons\nwebsite -\nhttp://commons.apache.org; target="alexandria_uri">http://commons.apache.org"/td +85 * /tr +86 * tr +87 * td"Click here, http://commons.apache.org,; target="alexandria_uri">http://commons.apache.org, to jump to the commons website"/td +88 * td20/td +89 * td"Click here,\nhttp://commons.apache.org,; target="alexandria_uri">http://commons.apache.org,\nto jump to the\ncommons website"/td +90 * /tr +91 * /table +92 * +93 * (assuming that '\n' is the systems line separator) +94 * +95 * @param str the String to be word wrapped, may be null +96 * @param wrapLength the column to wrap the words at, less than 1 is treated as 1 +97 * @return a line with newlines inserted, codenull/code if null input +98 */ +99 public static String wrap(final String str, final int wrapLength) { +100 return wrap(str, wrapLength, null, false); +101 } +102 +103 /** +104 * pWraps a single line of text, identifying words by code'
svn commit: r1012767 [7/39] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/class-use/ apidocs/org/apache/co
Modified: websites/production/commons/content/proper/commons-text/apidocs/overview-summary.html == --- websites/production/commons/content/proper/commons-text/apidocs/overview-summary.html (original) +++ websites/production/commons/content/proper/commons-text/apidocs/overview-summary.html Tue May 23 13:12:41 2017 @@ -4,7 +4,7 @@ -Overview (Apache Commons Text 1.1-SNAPSHOT API) +Overview (Apache Commons Text 1.1 API) @@ -12,7 +12,7 @@-Apache Commons Text 1.1-SNAPSHOT API
+Apache Commons Text 1.1 API
Modified: websites/production/commons/content/proper/commons-text/apidocs/overview-tree.html == --- websites/production/commons/content/proper/commons-text/apidocs/overview-tree.html (original) +++ websites/production/commons/content/proper/commons-text/apidocs/overview-tree.html Tue May 23 13:12:41 2017 @@ -4,7 +4,7 @@ -
Class Hierarchy (Apache Commons Text 1.1-SNAPSHOT API) +Class Hierarchy (Apache Commons Text 1.1 API)