//返回下一个字符 function TCodeColor.GetNextChar: Char; begin inc(FPosition); result:=FSource[FPosition]; end;
//判断是否是字母 function TCodeColor.IsAlpha(const ch: Char): Boolean; var i: Integer; begin i:=ord(ch); if( ((i>=65)and(i<=90)) or ((i>=97)and(i<=122)) ) then result:=true else result:=false; end;
//判断字符是否为多字节字符 function TCodeColor.IsMBCSChar(const ch: Char): Boolean; begin Result := (ByteType(ch, 1) <> mbSingleByte); end;
//判断是否是数字 function TCodeColor.IsNumberic(const ch: Char): Boolean; var i: Integer; begin i:=ord(ch); if(i>57) or (i<48) then result:=false else result:=true; end;