天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
字符串
>
多语言支持函数
AnsiPos
复制链接
简述
判断子串在字符串源串中的位置,从1开始计起,第1个即找到子串,则返回1。如果没有找到对应的子串,则返回0。其中,汉字占一个字符。
定义
AnsiPos(const Substr; S: string): Integer;
参数
名称
类型
说明
Const
字符串,子串
S
string
字符串,源串
返回
Integer
整数
范例
return AnsiPos("tinysoft","2011 tinysoft");
//6
相关
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