资源描述:
《Halcon保留字和函数》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、7.6 保留字absacosandasinassignatanatan2bandbnotborbreakbxorcatchceilchrchrtcommentcontinuecoscoshcumuldegdeviationelseelseifendforendifendtryendwhileenvironmentexitexpexport_deffabsfalsefindfloorfmodforgen_tuple_constglobalH_MSG_FAILH_MSG_FALSEH_MSG_TRUEH_MSG_VOIDififelseinsertintinver
2、seis_numberldexploglog10lshmaxmax2meanmedianminmin2notnumberorordordspowradrandrealregexp_matchregexp_replaceregexp_selectregexp_testremoverepeatreturnroundrshselect_ranksgnsinsinhsortsort_indexsplitsqrtstopstrchrstrlenstrrchrstrrstrstrstrsubsetsumtantanhthrowtruetryuniquntilwhilexor7
3、.9SummaryofHDevelopoperationsTuple为笛卡尔积中的元素FunctionalityHDevelopOperationHALCONoperatorConcatenation连接[t1,t2]tuple_concatnumberofelements元素个数
4、t
5、tuple_lengthselecttupleelement选择元素t[i]tuple_selectselecttupleslice选择部分元素t[i1:i2]tuple_select_rangeselectelements选择元素subset(t,i)tuple_selectre
6、movetupleelements清除元素remove(t,i)tuple_removelookuptuplevalues查找元素find(t1,t2)tuple_findunifytupleelements去掉连续重复元素uniq(t)tuple_uniqtuplecreation创建数组gen_tuple_const(i1,i2)tuple_gen_constDivision除a1/a2tuple_divMultiplication乘a1*a2tuple_multModulo取模a1%a2tuple_modAddition加a1+a2tuple_addSubt
7、raction减a1-a2tuple_subNegation求负数-atuple_negleftshift左移lsh(i1,i2)tuple_lshrightshift右移rsh(i1,i2)tuple_rshbitwiseand按位与i1bandi2tuple_bandbitwisexor按位异或i1bxori2tuple_bxorbitwiseo按位或i1bori2tuple_borbitwisecomplement按位求补i+bnoti=-1bnotituple_bnotstringconversion转换字符串v$stuple_stringstringco
8、ncatenation连接字符串v1+v2tuple_concatsearchcharacter搜索字符strchr(s1,s2)tuple_strchrsearchcharacter(reverse)向后搜索字符strrchr(s1,s2)tuple_strrchrSearchstring搜索字符串strstr(s1,s2)tuple_strstrsearchstring(reverse)向后搜索字符串strrstr(s1,s2)tuple_strrstrlengthofstring字符串长度strlen(s)tuple_strlenselectcharacte
9、r选择字符s{i}tuple_str_bit_selectselectsubstring选择字符串s{i1:i2}tuple_str_bit_selectsplitstring分割字符串split(s1,s2)tuple_splitregularexpressionmatchregexp_match(s1,s2)tuple_regexp_matchregularexpressionreplaceregexp_replace(s1,s2,s3)tuple_regexp_replaceregularexpressionselectregexp_select(s1,s2
10、)tupl