Location:
Search - strmatch
Search list
Description: 字符串比较程序。 能够比较两个字符串的相似程度。采用动态规划算法实现。-string comparison procedures. To compare two string of similar extent. Using dynamic programming algorithm.
Platform: |
Size: 1196 |
Author: qingwei_zhao |
Hits:
Description: 字符串比较程序。 能够比较两个字符串的相似程度。采用动态规划算法实现。-string comparison procedures. To compare two string of similar extent. Using dynamic programming algorithm.
Platform: |
Size: 1024 |
Author: qingwei_zhao |
Hits:
Description: 一个简单的字符串匹配的操作,是在JBuilder9环境下编译过的。-a simple string-matching operation, the compiler JBuilder9 environment before.
Platform: |
Size: 28672 |
Author: dgsag |
Hits:
Description: 采用编辑距离计算词语相似度方法程序,可以嵌入其它程序-Edit the word using a distance-based similarity method of procedure, can be embedded in other programs
Platform: |
Size: 1024 |
Author: 刘翔 |
Hits:
Description: 一个字符串匹配查询算法。程序在文件中读取字符串。可以采用正则表达式来实现字符串匹配功能。一种简单的正则表达式是由英文字母(区分大小写)、数字及通配符“*”和“?”任意组合而成的。“?”代表任意一个字符,“*”代表零个或任意多个字符。根据输入的表达式,输出文件中符合的字符串-A query string matching algorithm. The program read in the file string. You can use regular expressions to achieve string matching. A simple regular expression by letters (case sensitive), numbers and wildcard "*" and "?" Any combination. "?" Represents any one character, "*" represents zero or any number of characters. Expression according to the input and output files match the string
Platform: |
Size: 1024 |
Author: 城管111 |
Hits:
Description: 字节流的快速模式匹配算法, 具有比较详细的注释, 供开发时参考. 速度高于 strstr, 且支持字节流. -Byte stream of fast pattern matching algorithms, with detailed notes for reference when developers faster than strstr, support byte stream.
Platform: |
Size: 3072 |
Author: zzz654321 |
Hits:
Description: 在开发子函数时,matlab存在正则方法和非正则方法,正则方法非常适合一个子函数功能的不断扩展与完善,此函数为辅助函数,增加子函数的可读性
例如一个函数drawfun(x,y,z,5,6),5表示用第5种方法插值,6表示markersize为6,它显然没有drawfun(x,y,z, kriging , markersize ,6)好看懂与理解。 kriging 如何就是5可以用optionchoose(varargin{4},{ linear , spline , inverse , regression , kriging })判断。
再如一个结构体中有很多人的名字和各门课的成绩,想查看张三的所有分数就可以:
student(optionchoose( 张三 ,{student.name}))
如果没有张三这个人,optionchoose会出错退出,用optionchoose( 张三 ,{student.name},1)则返回-1,optionchoose( 张三 ,{student.name},1)在返回-1的同时显示可有的一些选项。
optionchoose( John ,{student.name},1, -case )会强制区分大小写,与john将不是同一个人- check the input option , output the value of option style
Usage:
och=optionchoose(oi,ostyle,|[restrain_error],|[ -case ])
when design functions, string option is apt to read and operate
oi is one option of character, you can write in short only when this
option distinguish other options
ostyle means all possible options, it can be strings or string cell
restrain_error =0 by default setting. if equal other, mean program will
not interrupt, but return-1. restrain>=2, return possible option
(when no match option), when 2, display option mesg.
Notice: uppercase and lowercase of oi(ostyle) seemed same, not
to distinguish, only when -case , then distinguish UPPERCASE
and lowercase of characters
och is numeric opposite to ostyle order, if not in ostyle, return-1
For example:
i=optionchoose( pos ,{ position , potential , pocket }) i=1
See also STRCMP, STRNCMP, STRMATCH
Platform: |
Size: 1024 |
Author: zhoudg |
Hits:
Description: UnicodeFunctor API. Cast this to a UnicodeReplacer pointer and return the pointer.
-UnicodeFunctor API. Cast this to a UnicodeReplacer pointer and return the pointer.
Platform: |
Size: 5120 |
Author: fkxafj |
Hits: