static String toStr(HSLFHyperlink link, String rawText) { //in ppt end index is inclusive String formatStr = "title: %1$s, address: %2$s" + (rawText == null ? "" : ", start: %3$s, end: %4$s, substring: %5$s"); return String.format(Locale.ROOT, formatStr, link.getLabel(), link.getAddress(), link.getStartIndex(), link.getEndIndex(), rawText); } }
HSLFTextRun run = runs.get(rIdx); rlen = run.getLength(); if (csIdx < h.getEndIndex() && h.getStartIndex() < csIdx+rlen) { String rawText = run.getRawText(); int startIdx = h.getStartIndex()-csIdx; if (startIdx > 0) { continue; int endIdx = Math.min(rlen, h.getEndIndex()-h.getStartIndex()); if (endIdx < rlen) {