return substring(v1, v2, null) ;
}
public static NodeValue substring(NodeValue nvString, NodeValue nvStart, NodeValue nvLength)
{
Node n = checkAndGetStringLiteral("substring", nvString) ;
RDFDatatype dt = n.getLiteralDatatype() ;
String lang = n.getLiteralLanguage() ;
// A string of some kind.
// XSD F&O:
try {
// NaN, float and double.
String string = n.getLiteralLexicalForm() ;
int start = intValueStr(nvStart, string.length()+1) ;
int length ;
if ( nvLength != null )
length = intValueStr(nvLength, 0) ;