摘要:
经测算 findkey比findkey2效率高 阅读全文
摘要:
//将串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)... 阅读全文
摘要:
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... 阅读全文
摘要:
URLencode URLdecode 阅读全文