@Override
protected Expression evaluate(List<Expression> splitParameters, ProblemsHandler problemsHandler, FunctionExpression functionCall, HiddenTokenAwareTree token) {
String mimetype = null;
String filename = null;
if (splitParameters.size() == 1) {
CssString filenameArg = (CssString) splitParameters.get(0);
filename = filenameArg.getValue();
} else {
CssString mimetypeArg = (CssString) splitParameters.get(0);
mimetype = mimetypeArg.getValue();
CssString filenameArg = (CssString) splitParameters.get(1);
filename = filenameArg.getValue();
}
String[] filenameParts = filename.split("#", 2);
filename = filenameParts[0];
String fragments = filenameParts.length > 1 ? "#" + filenameParts[1] : "";