Chinaunix首页 | 论坛 | 博客
  • 博客访问: 394535
  • 博文数量: 112
  • 博客积分: 4535
  • 博客等级: 上校
  • 技术积分: 1120
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-12 10:57
文章分类

全部博文(112)

文章存档

2014年(1)

2013年(1)

2012年(18)

2011年(10)

2010年(16)

2009年(48)

2008年(9)

2007年(9)

我的朋友

分类: C/C++

2007-06-20 10:41:00

双引号内的字符串中支持转义字符

Escape Sequence Description
\a Bell (beep)
\b Backspace
\cn The Ctrl+n character
\e Escape
\E Ends the effect of \L, \U or \Q
\f Form feed
\l Forces the next letter into lowercase
\L All following letters are lowercase
\n Newline
\r Carriage return
\Q Do not look for special pattern characters
\t Tab
\u Force next letter into uppercase
\U All following letters are uppercase
\v Vertical tab

\L、\U、\Q功能可以由\E关闭掉,如:
$a = "T\LHIS IS A \ESTRING"; # same as "This is a STRING"

以上内容摘自:
 
可以使用UE(可以,不是唯一)软件查看文件的内容(文本格式、二进制格式);
 
文本文档的换行符
window下用\r\n表示行的结束(如果文档是linux格式,UE会提示是否转换为dos格式;前提是ue设置为检测文档格式)
linux使用\n表示行的结束;
 
 
 
阅读(862) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~