weka.core.Utils.lineWrap()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(130)

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

Utils.lineWrap介绍

[英]Implements simple line breaking. Reformats the given string by introducing line breaks so that, ideally, no line exceeds the given number of characters. Line breaks are assumed to be indicated by newline characters. Existing line breaks are left in the input text.
[中]

代码示例

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

result.append(Utils.lineWrap(firstLine.toString(), lineWidth));
result.append(Utils.lineWrap(gi, lineWidth).replace("\n", "<br>"));
result.append("<br>");
   "<font color=red>CAPABILITIES</font>",
   ((CapabilitiesHandler) object).getCapabilities());
 caps = Utils.lineWrap(caps, lineWidth).replace("\n", "<br>");
 result.append(caps);
   ((MultiInstanceCapabilitiesHandler) object)
    .getMultiInstanceCapabilities());
 caps = Utils.lineWrap(caps, lineWidth).replace("\n", "<br>");
 result.append(caps);

代码示例来源:origin: Waikato/weka-trunk

result.append(Utils.lineWrap(firstLine.toString(), lineWidth));
result.append(Utils.lineWrap(gi, lineWidth).replace("\n", "<br>"));
result.append("<br>");
   "<font color=red>CAPABILITIES</font>",
   ((CapabilitiesHandler) object).getCapabilities());
 caps = Utils.lineWrap(caps, lineWidth).replace("\n", "<br>");
 result.append(caps);
   ((MultiInstanceCapabilitiesHandler) object)
    .getMultiInstanceCapabilities());
 caps = Utils.lineWrap(caps, lineWidth).replace("\n", "<br>");
 result.append(caps);

相关文章