摘要: 经测算 findkey比findkey2效率高 阅读全文
posted @ 2018-07-03 16:47 微风v5 阅读(238) 评论(0) 推荐(0) 编辑
摘要: //将串s1中的子串s2替换成串s3 char* replace(char*s1,char*s2,char*s3=NULL) { char *p,*from,*to,*begin=s1; int c1,c2,c3,c; //串长度及计数 c2=strlen(s2); c3=(s3!=NULL)?strlen(s3):0; if(c2==0)... 阅读全文
posted @ 2018-07-03 16:43 微风v5 阅读(2257) 评论(0) 推荐(0) 编辑
摘要: bool IsUTF8Text(const void* pBuffer, long size) { bool IsUTF8 = true; unsigned char* start = (unsigned char*)pBuffer; unsigned char* end = (unsigned char*)pBuffer + size; while (start... 阅读全文
posted @ 2018-07-03 16:41 微风v5 阅读(478) 评论(0) 推荐(0) 编辑
摘要: URLencode URLdecode 阅读全文
posted @ 2018-07-03 16:39 微风v5 阅读(152) 评论(0) 推荐(0) 编辑