我正在尝试在 igor pro 中查找字符串操作的文档。特别是对于从字符串中附加和剥离元素的函数。igor pro 是否有这样的内置函数,是否有某个地方列出了 igor pro 中的所有字符串操作函数?
1998 次
1 回答
1
基本字符串操作:
string str = "abcd"
print str[1,inf] // prints bcd
string suffix = "1234"
str += suffix
print str // prints abcd1234
字符串函数:
cmpstr: Compare two strings for equality
strlen: Length of a string
str2num/num2str/num2istr: Convert from/to strings
LowerStr/UpperStr: Change case
strsearch: Search inside a string
StringMatch/GrepString: Fancy string matching using wildcards/regexps
RemoveEnding: Removes a known suffix from a string
PDF 手册的 V-10 中列出了所有字符串函数。
伊戈尔专长:
strswitch是字符串的 switch 语句- 三元运算符 (
? :) 不能与字符串一起使用,请使用SelectString - 字符串列表是带有单个字符分隔符的纯字符串
- 键值对通过以下方式管理
StringByKey/ReplaceStringByKey/NumberByKey
于 2015-08-04T09:04:14.703 回答