字符串匹配
精确:
indexOf(String str); -- strstr(), O(mn)。
lastIndexOf(String str); -- continue 的别样用法。
matches(String regex); -- Regex.compile()/match()。
模糊:
java package?
Spell Checker -- 两个字符串的相似程度...
分类:
编程语言 时间:
2014-06-20 11:00:18
阅读次数:
287
今天遇到了一个这样的问题,一个.net framework 4.0 的web
application ,下面有一个App_Code文件夹,里面的一些公共类的build action 是
Compile,并且类中的namespace不是预设的,结果在执行的时候,App_Code中的类, 不知道是来自B...
分类:
移动开发 时间:
2014-06-16 07:39:14
阅读次数:
286
最近在使用静态库时,总是出现这个问题。下面总结一下我得解决方法:1. .m文件没有导入 在Build Phases里的Compile Sources 中添加报错的文件2. .framework文件没有导入静态库编译时往往需要一些库的支持,查看你是否有没有导入的库文件同样是在Build Phases里...
分类:
其他好文 时间:
2014-06-15 22:43:45
阅读次数:
131995
[size=16px][b][color=#FF0000]求助 Eclipse + NDK error: stray '\24' in program[/color][b][/b][/b][/size]
最近在研究JNI采用Eclipse+NDKR7B搭建环境 按照网上教的步骤build 什么都配好了写了个最简单的例子,clean以后就出现该异常很是头疼;异常信息:
"Compile thu...
分类:
系统相关 时间:
2014-06-15 18:46:06
阅读次数:
429
1.#error Directive (C/C++)The #error directive
emits a user-specified error message at compile time and then terminates the
compilation.#error toke...
分类:
编程语言 时间:
2014-06-11 08:34:39
阅读次数:
347
1. add maven commons-beanutils
commons-beanutils 1.9.2 compile 2. 参数赋值取值PropertyUtils.getSimpleProperty(Object,
String...
分类:
其他好文 时间:
2014-06-10 17:11:31
阅读次数:
283
前面的步骤按说明书上就没有问题,但在移植内核时,当进行到
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
出现以下错误:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuco...
分类:
其他好文 时间:
2014-06-08 10:40:46
阅读次数:
184
For convenience of discussion, assume our
android executable name is hello-exe.1. Compile debug version of android
executable file, use following comm...
分类:
移动开发 时间:
2014-06-06 19:30:02
阅读次数:
335
关于JavaScript继承,方式非常多,包含compile-to-javascript的语言TypeScript, CoffeeScript以及站点MDN,
GitHub,Modernizr各种polyfill都给出了稳妥的实现方案。从ES5的角度看,这当中一些方案在功能上OK,但在语义上却不尽如...
分类:
编程语言 时间:
2014-06-06 19:09:12
阅读次数:
311
1. matches() 匹配全部Pattern p =
Pattern.compile("reg");Matcher m =
p.matcher("String");System.out.println(m.matches());2:(matches
和find不要一起用,用reset()吐出来)...
分类:
编程语言 时间:
2014-06-02 10:19:32
阅读次数:
390