mirror of
https://github.com/openharmony/js_util_module.git
synced 2026-07-01 04:16:08 -04:00
Fix codex
issues:https://gitee.com/openharmony/js_util_module/issues/I5HJRN Signed-off-by: wangben <wangben15@huawei.com>
This commit is contained in:
@@ -392,7 +392,7 @@ namespace OHOS::Util {
|
||||
return retVal;
|
||||
}
|
||||
|
||||
static bool CheckEncodingFormat(std::string &encoding)
|
||||
static bool CheckEncodingFormat(const std::string &encoding)
|
||||
{
|
||||
const std::string conventFormat("utf8-t,UTF-8,gbk,GBK,GB2312,gb2312,GB18030,gb18030");
|
||||
if (conventFormat.find(encoding.c_str()) != conventFormat.npos) {
|
||||
|
||||
Reference in New Issue
Block a user