linux 中\r
2016-06-29 14:50
239 查看
工作中遇到的一个处理\r和\n的问题,看了一下\r是啥。。。
void File_translater::EspEntr(string& strSrc){
int iPos;
while((iPos = strSrc.find("\r")) != string::npos)
{
strSrc.replace(iPos,1,"");
}
while((iPos = strSrc.find("\n")) != string::npos)
{
strSrc.replace(iPos,1,"");
}
}
\r \r\n \t的区别,是什么意思
|
相关文章推荐
- Linux内核移植 part4:总线设备模型
- 在CentOS上安装phpMyAdmin
- 查找文件位置的方法-find,grep,locate
- Linux下bash:command not found提示
- Linux 中的防火墙 端口记录
- linux top命令
- linux去除邮件提醒
- 深入浅出:Linux设备驱动中的阻塞和非阻塞I/O
- Linux常用命令--wc
- Linux用户和用户组
- linux lsof命令
- Linux随笔
- linux route命令的使用详解
- 一个修改linux hosts文件上google的脚本
- 每天一个linux命令(36):free 命令
- Linux查看程序端口占用情况
- 每天一个linux命令(35):top命令
- 每天一个linux命令(34):du 命令
- 每天一个linux命令(33):df 命令
- redhat rhel 7中如何切换中英文输入法。