📄 string_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>string.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
<hr><h1>string.h</h1><div class="fragment"><pre>00001 <font class="comment">/*************************************************************************</font>
00002 <font class="comment"> * *</font>
00003 <font class="comment"> * This program is free software; you can redistribute it and/or modify *</font>
00004 <font class="comment"> * it under the terms of the GNU General Public License as published by *</font>
00005 <font class="comment"> * the Free Software Foundation; either version 2 of the License, or *</font>
00006 <font class="comment"> * (at your option) any later version. *</font>
00007 <font class="comment"> * *</font>
00008 <font class="comment"> *************************************************************************/</font>
00009
00010 <font class="preprocessor">#ifndef _STRING_H__</font>
00011 <font class="preprocessor"></font><font class="preprocessor">#define _STRING_H__</font>
00012 <font class="preprocessor"></font>
00013 <font class="preprocessor">#include "global.h"</font>
00014 <font class="preprocessor">#include <stdio.h></font>
00015 <font class="preprocessor">#include <string></font>
00016 <font class="preprocessor">#include <vector></font>
00017 <font class="preprocessor">#include <ctype.h></font>
00018
00019 <font class="keyword">using</font> <font class="keyword">namespace </font>std;
00020
<a name="l00026"></a><a class="code" href="classString.html">00026</a> <font class="keyword">class </font><a class="code" href="classString.html">String</a>
00027 {
00028 <font class="keyword">public</font>:
00036 <font class="keyword">static</font> string <a class="code" href="classString.html#d0">wrap</a> (string str, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> width);
00037
00044 <font class="keyword">static</font> string <a class="code" href="classString.html#d1">to_lower</a> (string str);
00045
00052 <font class="keyword">static</font> string <a class="code" href="classString.html#d2">to_upper</a> (string str);
00053
00060 <font class="keyword">static</font> vector<string> <a class="code" href="classString.html#d3">string2lines</a> (<font class="keyword">const</font> string &str);
00061
00071 <font class="keyword">static</font> vector<string> <a class="code" href="classString.html#d4">string2tokens</a> (<font class="keyword">const</font> string &str);
00072
00082 <font class="keyword">static</font> vector<string> <a class="code" href="classString.html#d4">string2tokens</a> (<font class="keyword">const</font> string &str, <font class="keywordtype">char</font> delim);
00083
00095 <font class="keyword">static</font> string <a class="code" href="classString.html#d6">trim</a> (string str);
00096
00103 <font class="keyword">static</font> string <a class="code" href="classString.html#d7">itoa</a> (<font class="keywordtype">int</font> i);
00104 };
00105
00106 <font class="preprocessor">#endif</font>
</pre></div><hr><address align="right"><small>Generated on Tue Jan 28 17:09:58 2003 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -