java.lang.Object
org.apache.jena.riot.lang.extra.LangParserLib
Support function for language parsing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringstripChars(String s, int n) Remove the first n characters from the stringstatic StringRemove first and last characters (e.g. ' or "") from a stringstatic StringRemove first 3 and last 3 characters (e.g. ''' or """) from a stringstatic voidstatic voidthrowParseException(String msg, int line, int column) static StringunescapePName(String s, int line, int column) Unescape a prefix name (or part of).static StringunescapeStr(String s, int line, int column) Unescape \t, \n etc.static StringunescapeUnicode(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
-