Commit b675b357 by 王明范

pass word with tag

parent e8646980
...@@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONObject;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.nio.channels.Pipe;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.security.MessageDigest; import java.security.MessageDigest;
...@@ -2121,6 +2122,7 @@ public abstract class StringUtils { ...@@ -2121,6 +2122,7 @@ public abstract class StringUtils {
} }
public static void main(String[] arg) { public static void main(String[] arg) {
Set<String> spWordSet = new HashSet<>(Arrays.asList("靴子","鞋子","裤子","袜子","裙子","帽子","杯子","箱子","包包","包袋","包袋"));
String word = "ab c "; String word = "ab c ";
String word1 = "ab c 中文"; String word1 = "ab c 中文";
int wordLen = StringUtils.getByteLength(word); int wordLen = StringUtils.getByteLength(word);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment