--返回值 true有中文和中文符号
function UIBase:judgeHasWord(string, displayCenter)
local hasWord = false
local lenInByte = #string
for i=1, lenInByte do
local curByte = string.byte(string, i)
-- local byteCount = 1
if curByte<=0 or curByte>127 then
hasWord = true
end
end
if hasWord then
-- print("has chinese **************")
--self:inputSysTips(InputHasWord, displayCenter)
end
return hasWord
end
function UIBase:judgeHasWord(string, displayCenter)
local hasWord = false
local lenInByte = #string
for i=1, lenInByte do
local curByte = string.byte(string, i)
-- local byteCount = 1
if curByte<=0 or curByte>127 then
hasWord = true
end
end
if hasWord then
-- print("has chinese **************")
--self:inputSysTips(InputHasWord, displayCenter)
end
return hasWord
end