Java String Quote quotePlainText(final String textContent)

Here you can find the source of quotePlainText(final String textContent)

Description

quote Plain Text

License

Open Source License

Parameter

Parameter Description
textContent a parameter

Declaration

private static String quotePlainText(final String textContent) 

Method Source Code

//package com.java2s;
/* MessageTextUtil.java/*from w  w  w. j  av  a  2s.com*/
    
   Copyright (c) 2009 Juergen Schlierf, All Rights Reserved
       
   This file is part of Cubusmail (http://code.google.com/p/cubusmail/).
       
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 3 of the License, or (at your option) any later version.
       
   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.
       
   You should have received a copy of the GNU Lesser General Public
   License along with Cubusmail. If not, see <http://www.gnu.org/licenses/>.
       
 */

public class Main {
    /**
     * @param textContent
     * @return
     */
    private static String quotePlainText(final String textContent) {

        return textContent.replaceAll("(?m)^", "> ");
    }
}

Related

  1. quoteOutputName(String name)
  2. quoteParameter(String param)
  3. quotePath(String path)
  4. quotePattern(String pattern)
  5. quotePattern(String s)
  6. quoteQuery(String query)
  7. quoteReference(final String reference)
  8. quoteRegexMeta(final String input)
  9. quoteRegexMeta(String str)