天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
字符串
>
多语言支持函数
CharLength
复制链接
简述
指定位置的字符所包含的字节数。
定义
CharLength(const S: String; Index: Integer): Integer;
参数
名称
类型
说明
S
String
字符串,源串
Index
Integer
整数,字符位置
返回
Integer
整数,字节数
范例
//第2个字符‘软’的字节数
S:= "天软Tinysoft Statistical analysis Language";
return CharLength(s,2);
//返回:2
相关
AnsiPos
ByteType
ByteToCharLen
CharToByteLen
ByteToCharIndex
CharToByteIndex
CharLength
NextCharIndex
AnsiQuotedStr
AnsiDequotedStr
AnsiToUTF8
UTF8ToAnsi
UnicodeESC
unUnicodeESC
MultibyteToUnicode
UnicodeToMultiByte
LCMapString
MakeLCID
unUnicodeESC2
unUnicodeESC2w
UnicodeESC2
unUnicodeESCw
Strw
CurrtoStrw
FloattoStrw
MultibytetoUnicodew
UnicodetoUTF8
UTF8toUnicode
Inttohexw
Inttostrw
Ifwstring
Booltostrw2
Booltostrw
Exportjsonstring
Importjsonstring
ExportJsonStringUTF8
ExportJSONStringMBCS