public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static int |
atoi(String s) |
static int |
atoi(String s,
int base) |
static String |
emptyToNull(String s) |
static String |
escapeHTML(String s) |
static boolean |
isEmpty(String s) |
static boolean |
isLatinLetterOrDigit(char c) |
static boolean |
isUrlChar(char c) |
static String |
noNull(String s) |
static String |
noNull(String s,
String val) |
static String |
preprocessWikiText(String text)
Filters text so there are no '\r' chars in it ("\r\n" -> "\n"; then "\r" -> "\n").
|
static String |
replaceString(String str,
String from,
String to) |
static String[] |
split(String s,
char separator) |
static String |
translit(String s)
Translates all non-basic-latin-letters characters into latin ones for use in URLs etc.
|
static String |
unescapeHTML(String value) |
public static boolean isUrlChar(char c)
public static boolean isLatinLetterOrDigit(char c)
public static String preprocessWikiText(String text)
text
- public static int atoi(String s)
public static int atoi(String s, int base)
public static String translit(String s)
s
- string to be translatedpublic static boolean isEmpty(String s)
Copyright © 2019 City of Paris. All rights reserved.