Package ru.org.linux.util.formatter

Examples of ru.org.linux.util.formatter.RuTypoChanger


    return title.replaceAll(ToHtmlFormatter.MDASH_REGEX, ToHtmlFormatter.MDASH_REPLACE);
  }

  public static String makeTitle(String title) {
    if (title != null && !title.trim().isEmpty()) {
      return new RuTypoChanger().format(title);
    }
    return "Без заглавия";
  }
View Full Code Here


        lorCodeService.parseComment("http://www.linux.org.ru/ -- русская информация об ос линукс", false, false));
  }

  @Test
  public void quoteChangerTest() {
    RuTypoChanger changer = new RuTypoChanger();
    assertEquals("Машааааа, открываааай. Открыыыто - " + RuTypoChanger.QUOTE_OUT_OPEN_HTML +"пщщ...",
        changer.format("Машааааа, открываааай. Открыыыто - \"пщщ..."));
    assertEquals("щпщпщщщ"+ RuTypoChanger.QUOTE_OUT_CLOSE_HTML +". Закрыылося",
        changer.format("щпщпщщщ\". Закрыылося"));
  }
View Full Code Here

TOP

Related Classes of ru.org.linux.util.formatter.RuTypoChanger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.