public class TextBreaker
extends java.lang.Object
Constructor and Description |
---|
TextBreaker(int _lineLength,
java.lang.String _linePrefix,
java.lang.String _linePostfix) |
Modifier and Type | Method and Description |
---|---|
void |
appendIfNotNull(java.lang.StringBuilder sb,
java.lang.String s) |
java.lang.String |
breakText(java.lang.String s) |
java.lang.String |
breakText(java.lang.String s,
boolean breakOnAnyWhiteSpaceChar) |
int |
getFirstLineLength() |
java.lang.String |
getFirstLinePostfix() |
java.lang.String |
getFirstLinePrefix() |
java.lang.String |
getLengthForLine(int n) |
int |
getLineLength() |
java.lang.String |
getLinePostfix() |
java.lang.String |
getLinePostfixForLine(int n) |
java.lang.String |
getLinePrefix() |
java.lang.String |
getLinePrefixForLine(int n) |
java.lang.String |
getNewParagraphChar() |
java.lang.String |
getWhitespaceChars() |
boolean |
isSplitWordsLongerThanLine() |
int |
longestSubWord(netrexx.lang.Rexx s,
int w,
netrexx.lang.Rexx line)
Gets a long word "s", e.g. trichotillomania (an abnormal desire to pull out one's hair -
might explain the baldness of some programmers ;)) and specifies the substring position
of the "whitespaceChars" separator, where you have to cut the word at the latest for it
to be no longer than w.
|
void |
setFirstLineLength(int $19) |
void |
setFirstLinePostfix(java.lang.String $17) |
void |
setFirstLinePrefix(java.lang.String $15) |
void |
setLineLength(int $20) |
void |
setLinePostfix(java.lang.String $18) |
void |
setLinePrefix(java.lang.String $16) |
void |
setNewParagraphChar(java.lang.String $22) |
void |
setSplitWordsLongerThanLine(boolean $23) |
void |
setWhitespaceChars(java.lang.String $21) |
public TextBreaker(int _lineLength, java.lang.String _linePrefix, java.lang.String _linePostfix)
public java.lang.String breakText(java.lang.String s)
public java.lang.String breakText(java.lang.String s, boolean breakOnAnyWhiteSpaceChar)
public void appendIfNotNull(java.lang.StringBuilder sb, java.lang.String s)
public java.lang.String getLengthForLine(int n)
public java.lang.String getLinePrefixForLine(int n)
public java.lang.String getLinePostfixForLine(int n)
public int longestSubWord(netrexx.lang.Rexx s, int w, netrexx.lang.Rexx line)
public java.lang.String getFirstLinePrefix()
public void setFirstLinePrefix(java.lang.String $15)
public java.lang.String getLinePrefix()
public void setLinePrefix(java.lang.String $16)
public java.lang.String getFirstLinePostfix()
public void setFirstLinePostfix(java.lang.String $17)
public java.lang.String getLinePostfix()
public void setLinePostfix(java.lang.String $18)
public int getFirstLineLength()
public void setFirstLineLength(int $19)
public int getLineLength()
public void setLineLength(int $20)
public java.lang.String getWhitespaceChars()
public void setWhitespaceChars(java.lang.String $21)
public java.lang.String getNewParagraphChar()
public void setNewParagraphChar(java.lang.String $22)
public boolean isSplitWordsLongerThanLine()
public void setSplitWordsLongerThanLine(boolean $23)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.