Escapes a Unicode code point according to Turtle / N-Triples format.
Escapes a Unicode code point according to Turtle / N-Triples format.
must not be null
if true, non-ASCII characters are not escaped (allowed by Turtle); if false, non-ASCII characters are escaped (required by N-Triples / N-Quads).
Escapes a Unicode string according to Turtle / N-Triples format.
Escapes a Unicode string according to Turtle / N-Triples format.
must not be null
must not be null
if true, non-ASCII characters are not escaped (allowed by Turtle); if false, non-ASCII characters are escaped (required by N-Triples / N-Quads).
Escapes a Unicode string according to Turtle / N-Triples format.
Escapes a Unicode string according to Turtle / N-Triples format.
must not be null
if true, non-ASCII characters are not escaped (allowed by Turtle); if false, non-ASCII characters are escaped (required by N-Triples / N-Quads).
Helper methods to escape / unescape Turtle / N-Triples.
TODO: most of these methods could be much more efficient - they should only create a StringBuffer if the input actually needs to be changed. Otherwise, they should simply return the input string. See StringUtils.escape.