本文整理匯總了Java中weka.core.Utils.unbackQuoteChars方法的典型用法代碼示例。如果您正苦於以下問題:Java Utils.unbackQuoteChars方法的具體用法?Java Utils.unbackQuoteChars怎麽用?Java Utils.unbackQuoteChars使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類weka.core.Utils
的用法示例。
在下文中一共展示了Utils.unbackQuoteChars方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setFieldSeparator
import weka.core.Utils; //導入方法依賴的package包/類
/**
* Sets the character used as column separator.
*
* @param value the character to use
*/
public void setFieldSeparator(String value) {
m_FieldSeparator = Utils.unbackQuoteChars(value);
/*
* if (m_FieldSeparator.length() != 1) { m_FieldSeparator = ","; System.err
* .println(
* "Field separator can only be a single character (exception being '\t'), "
* + "defaulting back to '" + m_FieldSeparator + "'!"); }
*/
}
示例2: setFieldSeparator
import weka.core.Utils; //導入方法依賴的package包/類
/**
* Sets the character used as column separator.
*
* @param value the character to use
*/
public void setFieldSeparator(String value) {
m_FieldSeparator = Utils.unbackQuoteChars(value);
if (m_FieldSeparator.length() != 1) {
m_FieldSeparator = ",";
System.err
.println("Field separator can only be a single character (exception being '\t'), "
+ "defaulting back to '" + m_FieldSeparator + "'!");
}
}
示例3: setDelimiters
import weka.core.Utils; //導入方法依賴的package包/類
/**
* Set the value of delimiters. For convenienve, the strings "\r", "\n", "\t",
* "\'", "\\" get automatically translated into their character
* representations '\r', '\n', '\t', '\'', '\\'. This means, one can either
* use <code>setDelimiters("\r\n\t\\");</code> or
* <code>setDelimiters("\\r\\n\\t\\\\");</code>.
*
* @param value Value to assign to delimiters.
* @see Utils#unbackQuoteChars(String)
*/
public void setDelimiters(String value) {
m_Delimiters = Utils.unbackQuoteChars(value);
}