net.sf.okapi.common.Util.trimEnd()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(184)

本文整理了Java中net.sf.okapi.common.Util.trimEnd()方法的一些代码示例,展示了Util.trimEnd()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.trimEnd()方法的具体详情如下:
包路径:net.sf.okapi.common.Util
类名称:Util
方法名:trimEnd

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);

相关文章