java.lang.Object
org.apache.jena.riot.lang.extra.LangParserLib
Support function for language parsing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
stripChars
(String s, int n) Remove the first n characters from the stringstatic String
Remove first and last characters (e.g. ' or "") from a stringstatic String
Remove first 3 and last 3 characters (e.g. ''' or """) from a stringstatic void
static void
throwParseException
(String msg, int line, int column) static String
unescapePName
(String s, int line, int column) Unescape a prefix name (or part of).static String
unescapeStr
(String s, int line, int column) Unescape \t, \n etc.static String
unescapeUnicode
(String s, int line, int column) Unescape \t, \n etc. and also unicode \ u and \U
-
Constructor Details
-
LangParserLib
public LangParserLib()
-
-
Method Details
-
stripChars
Remove the first n characters from the string -
stripQuotes
Remove first and last characters (e.g. ' or "") from a string -
stripQuotes3
Remove first 3 and last 3 characters (e.g. ''' or """) from a string -
unescapeStr
Unescape \t, \n etc. -
unescapeUnicode
Unescape \t, \n etc. and also unicode \ u and \U -
unescapePName
Unescape a prefix name (or part of). This applies the Turtle/SPARQL PLX rule -
throwParseException
-
throwParseException
-