void FormatHtml(CString &str)
来源:互联网 发布:徐娇的淘宝店叫什么 编辑:程序博客网 时间:2024/05/16 17:45
void FormatHtml(CString &str)
{
CString tmp(str);
int index = -1;
int i=0;
while (index < str.GetLength())
{
index ++;
index = str.Find(">", index);
if (index == -1)
break;
if (str.GetAt(index + 1) == '<')
continue;
tmp.Insert(index+1 + i*2, "/r/n");
i++;
}
str = tmp;
index = -1;
i=0;
while (index < str.GetLength())
{
index ++;
index = str.Find("<", index);
if (index == -1)
break;
tmp.Insert(index + i*2, "/r/n");
i++;
}
str = tmp;
}
{
CString tmp(str);
int index = -1;
int i=0;
while (index < str.GetLength())
{
index ++;
index = str.Find(">", index);
if (index == -1)
break;
if (str.GetAt(index + 1) == '<')
continue;
tmp.Insert(index+1 + i*2, "/r/n");
i++;
}
str = tmp;
index = -1;
i=0;
while (index < str.GetLength())
{
index ++;
index = str.Find("<", index);
if (index == -1)
break;
tmp.Insert(index + i*2, "/r/n");
i++;
}
str = tmp;
}
- void FormatHtml(CString &str)
- void CXX::OutputMsg01(CString tag, CString str, BOOL clean)
- char p转CString str
- CString参数用于const void*的理解
- apache PyString_FromString: Assertion `str != ((void *)0)' failed. 错误处理
- @implementation NSString (NSStringDebug) -(void) objectForKey:(NSString*) str { assert(NO);
- stdlib.h——void abort ( void ); int atoi ( const char * str );
- wchar_t *str转换为CString 类型---VC新手学习
- str
- str()
- str
- str
- str
- 向系统发送英文汉字混合消息的函数void SendKeys(char * str)
- void *
- void
- void
- void
- Tangram 截图(一)
- 什么是RSS
- RSS的历史
- 第N次来CSDN逛,第一次开通自己的BLOG。
- RSS阅读器
- void FormatHtml(CString &str)
- Cutting Edge:为ASP.NET控件加入快捷菜单(1)
- 2004十大启迪故事
- 由C#风潮想起的-给初学编程者的忠告
- What is RSS?
- RDF makes life difficult
- What is RDF?
- 英语作文不可不背的35个短语
- 又上班了~今天应该心情会好点吧!