摘要:
如果按照普通的定义字符串就会出现以下错误:解决方法如下:将双引号改成单引号:lr_searchReplace(abc,"test",' ','+');Action也可以这些写:voidlr_searchReplace(char*inputStr,char*outputStr,charlookupCh... 阅读全文
posted @ 2015-11-08 16:25
Agoly
阅读(1764)
评论(0)
推荐(1)
摘要:
voidlr_custom_string_delim_save(charinputStr[500],char*outputStr,char*delim,intoccrNo,intstringSide){char*temp,*temp2;chartemp3[500]={0};inti=0;inti2;... 阅读全文
posted @ 2015-11-08 16:25
Agoly
阅读(419)
评论(0)
推荐(0)
摘要:
ftoa(floatfloatNum,char*convFloatString){ charnew[10]; floatnumber,dTemp,temp_val; intbase,floatVal,radxFlag; char*token; char*temp; charcfloatVal[10]... 阅读全文
posted @ 2015-11-08 13:56
Agoly
阅读(898)
评论(0)
推荐(0)
摘要:
/****** *函数名称:strcut *函数说明:通过左边界、右边界,从字符串中截取子字符串 *注意事项:会申请新的内存,需要手动释放 ******/ void strcut(char *strSrc, char* str, char *leftStr, char *rightStr) { ch 阅读全文
posted @ 2015-11-08 13:55
Agoly
阅读(2572)
评论(1)
推荐(1)
摘要:
voidstrLastOccr(charinputStr[100],char*outputStr,char*delim){ charvalue[100],*temp,*temp2; inti=0; temp=""; while(temp!=NULL){ if(i==0){ temp2=temp... 阅读全文
posted @ 2015-11-08 13:54
Agoly
阅读(537)
评论(0)
推荐(0)
摘要:
char*replace_str(char*str,char*orig,char*rep){ staticcharbuffer[9096]; char*p; if(!(p=(char*)strstr(str,orig)))//Is'orig'evenin'str'? returnstr; ... 阅读全文
posted @ 2015-11-08 13:53
Agoly
阅读(796)
评论(0)
推荐(1)