ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 组件源码 ``` /** * <b>方法描述:</b> 是否包含全角字符 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2018-04-13 09:41:16 <br/> * * @param String * 入参|输入字符|{@link java.lang.String} * @param res * 出参|是否包含全角|boolean * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "是否包含全角字符", style = "判断型", type = "同步组件", comment = "判断输入的字符串是否包含全角字符", version = "1.0.0", deprecated = false, author = "admin", date = "2018-04-13 09:41:16") @InParams(param = { @Param(name = "String", comment = "输入字符", type = java.lang.String.class) }) @OutParams(param = { @Param(name = "res", comment = "是否包含全角", type = boolean.class) }) @Returns(returns = { @Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功") }) public static ResultBase P_hasFullChar(String str) { if (str != null && str.length() < str.getBytes().length) { return ResultBase.newSuccessResult(true); } return ResultBase.newFailureResult("TPTS1012", "不包含全角字符"); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/6b/0a/6b0ad6021a059be86b1f56c326899674_1869x891.png) # 参数说明及示例 ## 入口参数 输入字符:输入一串字符串,示例: `"dasdasfdsdsds"` ## 出口参数 是否包含全角:判断是否包含全角字符,示例: `__INNER__["result"]`