Sophie

Sophie

distrib > Mandriva > current > i586 > by-pkgid > 98920281af4e2e96d5ea984cee4f9e2f > files > 3496

clanlib0.8-docs-0.8.1-5mdv2010.1.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_String - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>Class CL_String</h1>
<p>  ClanLib string class. <a href="#description">More...</a></p>
<p>Derived from:
<i>none</i>
<br>
Derived by:
<i>none</i>
<br>Group: Core (System)</p>
<p>
#include &lt;ClanLib/core.h&gt;
<p>
<table border=0 width=100%>
</table>
<p><b>Operations:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_String__load.html">load</a></p></td><td valign=top><p>  Loads a string from a resource.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__left.html">left</a></p></td><td valign=top><p>  Returns the first n characters of the string</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__right.html">right</a></p></td><td valign=top><p>  Returns the last n characters in the string</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__from_int.html">from_int</a></p></td><td valign=top><p>  Converts from an integer to string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__from_float.html">from_float</a></p></td><td valign=top><p>  Converts from an float to string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__from_double.html">from_double</a></p></td><td valign=top><p>  Converts from an double to string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__from_bool.html">from_bool</a></p></td><td valign=top><p>  Returns "true" or "false" based on a boolean.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__to_bool.html">to_bool</a></p></td><td valign=top><p>  Converts a string to a boolean.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__to_int.html">to_int</a></p></td><td valign=top><p>  Converts string to an integer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__to_float.html">to_float</a></p></td><td valign=top><p>  Converts string to a floating point number.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__to_double.html">to_double</a></p></td><td valign=top><p>  Converts string to a double precision floating point number.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__to_lower.html">to_lower</a></p></td><td valign=top><p>  Returns the string with all characters converted to lowercase.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__to_upper.html">to_upper</a></p></td><td valign=top><p>  Returns the string with all characters converted to uppercase.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__tokenize.html">tokenize</a></p></td><td valign=top><p>  Breaks up the string into tokens.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__compare_nocase.html">compare_nocase</a></p></td><td valign=top><p>  Does a case insensitive compare of string to other string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__get_path.html">get_path</a></p></td><td valign=top><p>  Returns the path part of a pathname (path+filename). If no path part is found, "." is returned.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__get_filename.html">get_filename</a></p></td><td valign=top><p>  Returns the filename part of a pathname (path+filename). If no path part is found, the entire string is returned.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__get_extension.html">get_extension</a></p></td><td valign=top><p>  Returns the extension path of a filename (text after the last dot). If no extension part is found, an empty string is returned.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__trim_spaces.html">trim_spaces</a></p></td><td valign=top><p>  Returns a string trimmed for space characters in both ends of string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__trim_whitespace.html">trim_whitespace</a></p></td><td valign=top><p>  Returns a string trimmed for whitespace characters in both ends of string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_String__convert_c_escapes.html">convert_c_escapes</a></p></td><td valign=top><p>  Return a string with C style escapes ({'\','n'}, {'\', 't'} etc.) replaced with the real escapes ('\n', '\t').</p></td></tr></table>
<a name="#description"><p><b>Detailed description:</b></p>
  !group=Core/System!
  !header=core.h!
  <p>This is a general purpose string class with formatting capabilities.</p>
  <p>Example: str::string s = CL_String::format("You rock my %1, %2 (%3)", "world", name, 47);</p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->