You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2009/12/24 08:13:21 UTC

svn commit: r893703 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang3/WordUtils.java

Author: bayard
Date: Thu Dec 24 07:13:17 2009
New Revision: 893703

URL: http://svn.apache.org/viewvc?rev=893703&view=rev
Log:
Removing commented out code. 

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang3/WordUtils.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang3/WordUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang3/WordUtils.java?rev=893703&r1=893702&r2=893703&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang3/WordUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang3/WordUtils.java Thu Dec 24 07:13:17 2009
@@ -46,80 +46,6 @@
 
     // Wrapping
     //--------------------------------------------------------------------------
-//    /**
-//     * <p>Wraps a block of text to a specified line length using '\n' as
-//     * a newline.</p>
-//     *
-//     * <p>This method takes a block of text, which might have long lines in it
-//     * and wraps the long lines based on the supplied lineLength parameter.</p>
-//     * 
-//     * <p>If a single word is longer than the line length (eg. a URL), it will
-//     * not be broken, and will display beyond the expected width.</p>
-//     * 
-//     * <p>If there are tabs in inString, you are going to get results that are
-//     * a bit strange. Tabs are a single character but are displayed as 4 or 8
-//     * spaces. Remove the tabs.</p>
-//     *
-//     * @param str  text which is in need of word-wrapping, may be null
-//     * @param lineLength  the column to wrap the words at
-//     * @return the text with all the long lines word-wrapped
-//     *  <code>null</code> if null string input
-//     */
-//    public static String wrapText(String str, int lineLength) {
-//        return wrap(str, null, lineLength);
-//    }
-    
-//    /**
-//     * <p>Wraps a block of text to a specified line length.</p>
-//     *
-//     * <p>This method takes a block of text, which might have long lines in it
-//     * and wraps the long lines based on the supplied lineLength parameter.</p>
-//     * 
-//     * <p>If a single word is longer than the wrapColumn (eg. a URL), it will
-//     * not be broken, and will display beyond the expected width.</p>
-//     * 
-//     * <p>If there are tabs in inString, you are going to get results that are
-//     * a bit strange. Tabs are a single character but are displayed as 4 or 8
-//     * spaces. Remove the tabs.</p>
-//     *
-//     * @param str  text which is in need of word-wrapping, may be null
-//     * @param newLineChars  the characters that define a newline, null treated as \n
-//     * @param lineLength  the column to wrap the words at
-//     * @return the text with all the long lines word-wrapped
-//     *  <code>null</code> if null string input
-//     */
-//    public static String wrapText(String str, String newLineChars, int lineLength) {
-//        if (str == null) {
-//            return null;
-//        }
-//        if (newLineChars == null) {
-//            newLineChars = "\n";
-//        }
-//        StringTokenizer lineTokenizer = new StringTokenizer(str, newLineChars, true);
-//        StringBuffer stringBuffer = new StringBuffer();
-//
-//        while (lineTokenizer.hasMoreTokens()) {
-//            try {
-//                String nextLine = lineTokenizer.nextToken();
-//
-//                if (nextLine.length() > lineLength) {
-//                    // This line is long enough to be wrapped.
-//                    nextLine = wrapLine(nextLine, null, lineLength, false);
-//                }
-//
-//                stringBuffer.append(nextLine);
-//
-//            } catch (NoSuchElementException nsee) {
-//                // thrown by nextToken(), but I don't know why it would
-//                break;
-//            }
-//        }
-//
-//        return stringBuffer.toString();
-//    }
-
-    // Wrapping
-    //-----------------------------------------------------------------------
     /**
      * <p>Wraps a single line of text, identifying words by <code>' '</code>.</p>
      *