本文整理了Java中net.sf.okapi.common.Util.trimEnd()
方法的一些代码示例,展示了Util.trimEnd()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.trimEnd()
方法的具体详情如下:
包路径:net.sf.okapi.common.Util
类名称:Util
方法名:trimEnd
[英]Removes from the end of a string any of the specified characters.
[中]从字符串末尾删除任何指定字符。
代码示例来源:origin: net.sf.okapi.filters/okapi-filter-yaml
line = Util.trimEnd(line, "\r\n");
if (lastLine) return line;
代码示例来源:origin: net.sf.okapi.filters/okapi-filter-yaml
currentLine = Util.trimStart(currentLine, " ");
if (!line.endContinuation) {
currentLine = Util.trimEnd(currentLine, " ");
currentLine += " ";
代码示例来源:origin: net.sf.okapi.filters/okapi-filter-yaml
firstLine = Util.trimEnd(firstLine, " ");
firstLine = firstLine + " ";
代码示例来源:origin: net.sf.okapi.filters/okapi-filter-versifiedtxt
filterBuffer.setLength(filterBuffer.length() - 1);
currentLine = filterBuffer.toString();
currentLine = Util.trimEnd(currentLine, "\r\n");
filterBuffer = new StringBuilder(BUFFER_SIZE - 1);
modifiedTarget = Util.trimEnd(modifiedTarget, "\n");
} else {
modifiedSource = Util.trimEnd(modifiedSource, "\n");
代码示例来源:origin: net.sf.okapi.filters/okapi-filter-versifiedtxt
filterBuffer.setLength(filterBuffer.length() - 1);
currentLine = filterBuffer.toString();
currentLine = Util.trimEnd(currentLine, "\r\n");
filterBuffer = new StringBuilder(BUFFER_SIZE-1);
内容来源于网络,如有侵权,请联系作者删除!