public class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static NodeAttribute |
addAttributes(TagNode node,
String attributesString)
Scan the attributes string and add the attributes to the given node
|
static Map<String,String> |
getAttributes(String attributesString) |
static List<NodeAttribute> |
getNodeAttributes(String attributesString) |
static int |
indexOfIgnoreCase(String searchableString,
String startPattern,
String endPattern,
int fromIndex)
Returns the index within the searchable string of the first occurrence of
the concatenated start and end substring.
|
static int |
indexOfNestedIgnoreCase(String searchableString,
String endPattern,
int fromIndex)
Returns the nested index within the searchable string of the first
occurrence of
< and the end string. |
static int |
indexOfTemplateParsing(CharSequence rawWikitext)
Get the first position of the
rawWikitext string, which
contains a character requiring template parsing. |
static boolean |
isInvalidTemplateName(CharSequence templateName)
Check if the template name contains an invalid (ISO Control) character.
|
static String |
trimNewlineRight(String str)
Trim whitespace characters from the left and right side of the string,
until we find a non whitespace character or a new line character on the
righ side.
|
public static NodeAttribute addAttributes(TagNode node, String attributesString)
node - attributesString - public static List<NodeAttribute> getNodeAttributes(String attributesString)
public static int indexOfIgnoreCase(String searchableString, String startPattern, String endPattern, int fromIndex)
searchableString - the searchable stringstartPattern - the start string which should be searched in exact case modeendPattern - the end string which should be searched in ignore case modefromIndex - the index from which to start the search.public static int indexOfNestedIgnoreCase(String searchableString, String endPattern, int fromIndex)
< and the end string. The end string
is matched ignoring case considerations.searchableString - the searchable stringendPattern - the end string which should be searched in ignore case modefromIndex - the index from which to start the search.public static String trimNewlineRight(String str)
str - public static boolean isInvalidTemplateName(CharSequence templateName)
templateName - public static int indexOfTemplateParsing(CharSequence rawWikitext)
rawWikitext string, which
contains a character requiring template parsing.rawWikitext - the raw wiki text-1 if character is found, which requires template
parsing.Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.