mirror of
https://github.com/houbb/sensitive-word.git
synced 2026-03-22 08:27:36 +08:00
release branch 0.0.2
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.github.houbb</groupId>
|
||||
<artifactId>sensitive-word</artifactId>
|
||||
<version>0.0.2-SNAPSHOT</version>
|
||||
<version>0.0.2</version>
|
||||
|
||||
<properties>
|
||||
<!--============================== All Plugins START ==============================-->
|
||||
@@ -25,7 +25,7 @@
|
||||
<project.compiler.level>1.7</project.compiler.level>
|
||||
|
||||
<!--============================== INTER ==============================-->
|
||||
<heaven.version>0.1.67-SNAPSHOT</heaven.version>
|
||||
<heaven.version>0.1.67</heaven.version>
|
||||
<!--============================== OTHER ==============================-->
|
||||
<junit.version>4.12</junit.version>
|
||||
</properties>
|
||||
|
||||
@@ -10,9 +10,9 @@ ECHO "============================= RELEASE START..."
|
||||
|
||||
:: 版本号信息(需要手动指定)
|
||||
:::: 旧版本名称
|
||||
SET version=0.0.1
|
||||
SET version=0.0.2
|
||||
:::: 新版本名称
|
||||
SET newVersion=0.0.2
|
||||
SET newVersion=0.0.3
|
||||
:::: 组织名称
|
||||
SET groupName=com.github.houbb
|
||||
:::: 项目名称
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
//package com.github.houbb.sensitive.word.util;
|
||||
//
|
||||
//import com.github.houbb.heaven.annotation.CommonEager;
|
||||
//import com.github.houbb.heaven.util.lang.StringUtil;
|
||||
//
|
||||
///**
|
||||
// * @author binbin.hou
|
||||
// * @since 0.0.1
|
||||
// */
|
||||
//@CommonEager
|
||||
//public class CharsetUtils {
|
||||
//
|
||||
// /**
|
||||
// * 是否为中文字符
|
||||
// * @param c char
|
||||
// * @return 是否
|
||||
// * @since 0.0.1
|
||||
// */
|
||||
// public static boolean isChinese(char c) {
|
||||
// boolean result = false;
|
||||
// // 汉字范围 \u4e00-\u9fa5 (中文)
|
||||
// if (c >= 19968 && c <= 171941) {
|
||||
// result = true;
|
||||
// }
|
||||
// return result;
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 是否包含中文
|
||||
// * @param string 字符串
|
||||
// * @return 是否
|
||||
// * @since 0.0.1
|
||||
// */
|
||||
// public static boolean isContainsChinese(String string) {
|
||||
// if(StringUtil.isEmpty(string)) {
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// char[] chars = string.toCharArray();
|
||||
// for(char c : chars) {
|
||||
// if(isChinese(c)) {
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 是否全是中文
|
||||
// * @param string 字符串
|
||||
// * @return 是否
|
||||
// * @since 0.0.1
|
||||
// */
|
||||
// public static boolean isAllChinese(String string) {
|
||||
// if(StringUtil.isEmpty(string)) {
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// char[] chars = string.toCharArray();
|
||||
// for(char c : chars) {
|
||||
// if(!isChinese(c)) {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// return true;
|
||||
// }
|
||||
//
|
||||
//}
|
||||
@@ -1,72 +0,0 @@
|
||||
//package com.github.houbb.sensitive.word.util;
|
||||
//
|
||||
//import com.github.houbb.heaven.annotation.CommonEager;
|
||||
//import com.github.houbb.heaven.constant.CharsetConst;
|
||||
//import com.github.houbb.heaven.util.lang.StringUtil;
|
||||
//import com.github.houbb.sensitive.word.exception.SensitiveWordException;
|
||||
//
|
||||
//import java.io.BufferedReader;
|
||||
//import java.io.IOException;
|
||||
//import java.io.InputStream;
|
||||
//import java.io.InputStreamReader;
|
||||
//import java.nio.charset.Charset;
|
||||
//import java.util.*;
|
||||
//
|
||||
///**
|
||||
// * 流工具类
|
||||
// * @author binbin.hou
|
||||
// * @since 0.0.1
|
||||
// */
|
||||
//@CommonEager
|
||||
//public final class StreamUtils {
|
||||
//
|
||||
// private StreamUtils(){}
|
||||
//
|
||||
// /**
|
||||
// * 构建数据集合
|
||||
// *
|
||||
// * 后期考虑:是否允许用户自定义字典?
|
||||
// * 目前不支持这些操作。后期如果需要,再把这些限制放开。
|
||||
// * @param path 文件路径
|
||||
// * @return 返回数据集合
|
||||
// * @since 0.0.1
|
||||
// */
|
||||
// public static List<String> readAllLines(final String path) {
|
||||
// return readAllLines(path, CharsetConst.UTF8, true);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 构建数据集合
|
||||
// *
|
||||
// * 后期考虑:是否允许用户自定义字典?
|
||||
// * 目前不支持这些操作。后期如果需要,再把这些限制放开。
|
||||
// * @param path 文件路径
|
||||
// * @param charset 文件编码
|
||||
// * @param ignoreEmpty 是否忽略空白行
|
||||
// * @return 返回数据集合
|
||||
// * @since 0.0.1
|
||||
// */
|
||||
// public static List<String> readAllLines(final String path,
|
||||
// final String charset,
|
||||
// final boolean ignoreEmpty) {
|
||||
// try {
|
||||
// List<String> lines = new ArrayList<>();
|
||||
// InputStream is = StreamUtils.class.getResourceAsStream(path);
|
||||
// BufferedReader e = new BufferedReader(new InputStreamReader(is,
|
||||
// Charset.forName(charset)));
|
||||
//
|
||||
// while (e.ready()) {
|
||||
// String entry = e.readLine();
|
||||
// if (StringUtil.isEmpty(entry)
|
||||
// && ignoreEmpty) {
|
||||
// continue;
|
||||
// }
|
||||
// lines.add(entry);
|
||||
// }
|
||||
// return lines;
|
||||
// } catch (IOException e) {
|
||||
// throw new SensitiveWordException("dict init failed!", e);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
@@ -1,6 +0,0 @@
|
||||
/**
|
||||
* 工具类
|
||||
* 后期都移动到 heaven 模块。
|
||||
* @since 0.0.1
|
||||
*/
|
||||
package com.github.houbb.sensitive.word.util;
|
||||
Reference in New Issue
Block a user