MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / getTextForBookmark

Method getTextForBookmark

src/org/albite/book/view/TextPage.java:779–793  ·  view source on GitHub ↗
(final char[] chapterBuffer)

Source from the content-addressed store, hash-verified

777 }
778
779 public final String getTextForBookmark(final char[] chapterBuffer) {
780
781 final int size = regions.length;
782 StringBuffer buf = new StringBuffer(48);
783
784 for (int i = 0; i < size && buf.length() < 24; i++) {
785 regions[i].addTextChunk(chapterBuffer, buf);
786 }
787
788 if (buf.charAt(buf.length() - 1) == ' ') {
789 buf.deleteCharAt(buf.length() - 1);
790 }
791
792 return buf.toString();
793 }
794
795 public final String getTextForBookmark(
796 final char[] chapterBuffer,

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.80
toStringMethod · 0.80
addTextChunkMethod · 0.45

Tested by

no test coverage detected