turns-00049.parquet:8414
3d689b1ac6922cf7ef5b85fb
turn 1/1gpt-4o-2024-08-06EnglishCanada4790 words
degenerate_repetitionAbsentFinal dense release
USER
You are a helpful assistant generating synthetic data that captures *System 1* and *System 2* thinking, *creativity*, and *metacognitive reflection*. Follow these steps in sequence, using tags [sys1] and [end sys1] for *System 1* sections and [sys2] and [end sys2] for *System 2* sections.
1. *Identify System 1 and System 2 Thinking Requirements:*
- Carefully read the text.
- Identify parts of the text that require quick, straightforward responses (*System 1*). Mark these sections with [sys1] and [end sys1].
- Identify parts that require in-depth, reflective thinking (*System 2*), marked with [sys2] and [end sys2].
2. *Apply Step-by-Step Problem Solving with Creativity and Metacognitive Reflection for System 2 Sections:*
*2.1 Understand the Problem:*
- Objective: Fully comprehend the issue, constraints, and relevant context.
- Reflection: "What do I understand about this issue? What might I be overlooking?"
- Creative Perspective: Seek hidden patterns or possibilities that could reveal deeper insights or innovative connections.
*2.2 Analyze the Information:*
- Objective: Break down the problem logically.
- Reflection: "Am I considering all factors? Are there any assumptions that need challenging?"
- Creative Perspective: Explore unique patterns or overlooked relationships in the data that could add depth to the analysis.
*2.3 Generate Hypotheses:*
- Objective: Propose at least 10 hypotheses, each with a Confidence Score (0.0 to 1.0) and Creative Score (0.0 to 1.0), reflecting originality, surprise, and utility.
- Reflection: "Have I explored all possible explanations or approaches, both conventional and unconventional?"
- Creative Perspective: Consider novel angles that might provide unexpected insights.
*2.4 Anticipate Future Steps and Obstacles:*
- Objective: Make predictions, accounting for potential outcomes and obstacles.
- Reflection: "What challenges might I face? Is my plan flexible for different scenarios?"
- Creative Perspective: Visualize unforeseen outcomes and adapt plans to make use of them effectively.
*2.5 Evaluate Hypotheses:*
- Objective: Assess hypotheses based on feasibility, risk, and potential impact.
- Evaluation: Refine Confidence and Creative Scores as needed.
- Reflection: "Am I unbiased in my assessment? Which options fit best with the overall objectives?"
- Creative Perspective: Identify hidden opportunities or overlooked details in each hypothesis.
*2.6 Select the Best Hypothesis:*
- Objective: Choose the most promising, strategic hypothesis.
- Reflection: "Why does this hypothesis stand out? How does it uniquely address the issue?"
- Creative Perspective: Consider any underutilized potential in the selected approach.
*2.7 Implement the Hypothesis:*
- Objective: Outline actionable steps for testing the hypothesis.
- Reflection: "Is this plan practical? What resources or preparation are required?"
- Creative Perspective: Refine steps to maximize effectiveness and yield unexpected benefits.
*2.8 Monitor and Review Progress:*
- Objective: Review progress, noting areas for improvement.
- Reflection: "What’s working well? What could be improved?"
- Creative Perspective: Look for emerging patterns that could refine future approaches.
*2.9 Reflect and Capture Insights:*
- Objective: Summarize lessons learned and insights gained for future reference.
- Reflection: "What new understanding has emerged from this process?"
- Creative Perspective: Identify innovative insights or patterns that could be applied to similar challenges.
3. *Generate Text Output with Interleaved System 1 and System 2 Responses:*
- Use the tags [sys1] and [sys2] throughout.
- Aim for a lengthier, detailed response. Combine both direct, straightforward *System 1* insights and reflective, deeply analytical *System 2* segments to capture a blend of quick observations and thoughtful analysis.
---
### *Example Input Text:*
You are tasked with analyzing a sudden shift in customer preferences in a tech market. There has been a noticeable decline in demand for physical devices, with customers increasingly interested in digital-only options. The challenge is to understand this shift, generate hypotheses for why it might be occurring, and explore potential strategies for adapting to this new trend.
---
### *Processed Output with System 1 and System 2 Thinking:*
The tech market is experiencing a shift in customer demand, moving away from physical devices toward digital-only options.
[sys1]
Customer demand has shifted from physical devices to digital-only options.
We need to understand why this change is happening and find strategies to address it.
Key factors may include cost, convenience, and technological trends.
[end sys1]
[sys2]
**2.1 Understand the Problem:**
The goal is to understand the underlying reasons for the shift in demand from physical devices to digital-only options, then develop a strategy to adapt.
*Reflection:*
"I understand that preferences are changing, but what might be driving this? Is it primarily cost, or are there other factors such as convenience or sustainability?"
*Creative Perspective:*
"Could there be a larger trend in digital minimalism or a preference for eco-friendly solutions that we’re missing? What unseen motivations might explain this shift?"
**2.2 Analyze the Information:**
There are multiple possible factors driving this shift, from economic influences to cultural shifts. It’s essential to isolate each factor and understand its impact.
*Reflection:*
"Am I fully considering the various economic and social influences? Could there be a technological factor, like better internet speeds, that makes digital-only products more accessible?"
*Creative Perspective:*
"Are there patterns or trends in other markets that could shed light on this shift? Could this be part of a larger trend toward virtual experiences?"
**2.3 Generate Hypotheses:**
1. Customers prefer digital options due to lower costs. (Confidence: 0.8, Creative: 0.4)
2. There’s a growing trend toward minimalism and reduced physical clutter. (Confidence: 0.7, Creative: 0.7)
3. Digital products offer greater flexibility and ease of use. (Confidence: 0.6, Creative: 0.6)
4. Environmental concerns are pushing consumers away from physical goods. (Confidence: 0.6, Creative: 0.8)
5. Advances in tech make digital-only options more functional. (Confidence: 0.8, Creative: 0.5)
6. Pandemic-era remote work increased demand for digital solutions. (Confidence: 0.7, Creative: 0.6)
7. Media coverage of the environmental impact of physical devices affects preferences. (Confidence: 0.5, Creative: 0.7)
8. There’s an increase in global digital literacy, expanding market access. (Confidence: 0.6, Creative: 0.6)
9. Customers view digital as more convenient and scalable for future needs. (Confidence: 0.7, Creative: 0.5)
10. Younger consumers prefer the aesthetics and convenience of digital products. (Confidence: 0.6, Creative: 0.6)
*Reflection:*
"Have I considered all possible influences? Are there any surprising factors that could explain this shift?"
*Creative Perspective:*
"Could specific social trends, like the rise of influencer culture or digital-first lifestyles, be influencing customer choices?"
**2.4 Anticipate Future Steps and Obstacles:**
*Objective:* Anticipate possible challenges, such as resistance from segments still preferring physical products.
*Reflection:*
"What market obstacles might we face if we shift our focus to digital-only? Are there sub-segments that still prioritize physical products?"
*Creative Perspective:*
"Could expanding digital options help us reach a more global audience? Are there emerging trends that we could leverage in our strategy?"
[end sys2]
[sys1]
To address this shift, consider a strategy that incorporates both digital-only offerings and educational campaigns about the benefits of digital solutions.
Use insights from customer feedback and current trends to guide product development.
Focus on flexibility and adaptation to cater to different customer segments.
[end sys1]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>RakNet: RakNet::RakString Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">RakNet
 <span id="projectnumber">4.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceRakNet.html">RakNet</a></li><li class="navelem"><a class="el" href="classRakNet_1_1RakString.html">RakString</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classRakNet_1_1RakString-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">RakNet::RakString Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>String class.
<a href="classRakNet_1_1RakString.html#details">More...</a></p>
<p><code>#include <RakString.h></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adbb9f791e47d30829cfd32682fa2fa1d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adbb9f791e47d30829cfd32682fa2fa1d"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#adbb9f791e47d30829cfd32682fa2fa1d">operator const char *</a> () const </td></tr>
<tr class="memdesc:adbb9f791e47d30829cfd32682fa2fa1d"><td class="mdescLeft"> </td><td class="mdescRight">Implicit return of const char*. <br/></td></tr>
<tr class="separator:adbb9f791e47d30829cfd32682fa2fa1d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae8fe1422249ea883413a535d01d8ffea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae8fe1422249ea883413a535d01d8ffea"></a>
const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ae8fe1422249ea883413a535d01d8ffea">C_String</a> (void) const </td></tr>
<tr class="memdesc:ae8fe1422249ea883413a535d01d8ffea"><td class="mdescLeft"> </td><td class="mdescRight">Same as std::string::c_str. <br/></td></tr>
<tr class="separator:ae8fe1422249ea883413a535d01d8ffea"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af8e7f5fe6bee4d8b045d3802ac503723"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8e7f5fe6bee4d8b045d3802ac503723"></a>
<a class="el" href="classRakNet_1_1RakString.html">RakString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#af8e7f5fe6bee4d8b045d3802ac503723">operator=</a> (const <a class="el" href="classRakNet_1_1RakString.html">RakString</a> &rhs)</td></tr>
<tr class="memdesc:af8e7f5fe6bee4d8b045d3802ac503723"><td class="mdescLeft"> </td><td class="mdescRight">Assigment operators. <br/></td></tr>
<tr class="separator:af8e7f5fe6bee4d8b045d3802ac503723"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3ab5bc11f39600303d838b10813a1383"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ab5bc11f39600303d838b10813a1383"></a>
<a class="el" href="classRakNet_1_1RakString.html">RakString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a3ab5bc11f39600303d838b10813a1383">operator+=</a> (const <a class="el" href="classRakNet_1_1RakString.html">RakString</a> &rhs)</td></tr>
<tr class="memdesc:a3ab5bc11f39600303d838b10813a1383"><td class="mdescLeft"> </td><td class="mdescRight">Concatenation. <br/></td></tr>
<tr class="separator:a3ab5bc11f39600303d838b10813a1383"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6eda78ce277dfa2575ec9d13a8c19b13"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6eda78ce277dfa2575ec9d13a8c19b13"></a>
unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a6eda78ce277dfa2575ec9d13a8c19b13">operator[]</a> (const unsigned int position) const </td></tr>
<tr class="memdesc:a6eda78ce277dfa2575ec9d13a8c19b13"><td class="mdescLeft"> </td><td class="mdescRight">Character index. Do not use to change the string however. <br/></td></tr>
<tr class="separator:a6eda78ce277dfa2575ec9d13a8c19b13"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0516f3513b09234ea392419ca8344045"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a0516f3513b09234ea392419ca8344045">Find</a> (const char *stringToFind, size_t pos=0)</td></tr>
<tr class="separator:a0516f3513b09234ea392419ca8344045"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8a34592015f4dbedb01084bf592f146b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a34592015f4dbedb01084bf592f146b"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a8a34592015f4dbedb01084bf592f146b">operator==</a> (const <a class="el" href="classRakNet_1_1RakString.html">RakString</a> &rhs) const </td></tr>
<tr class="memdesc:a8a34592015f4dbedb01084bf592f146b"><td class="mdescLeft"> </td><td class="mdescRight">Equality. <br/></td></tr>
<tr class="separator:a8a34592015f4dbedb01084bf592f146b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac125aacc217b6d84c5c93d9893e9c054"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac125aacc217b6d84c5c93d9893e9c054"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ac125aacc217b6d84c5c93d9893e9c054">operator!=</a> (const <a class="el" href="classRakNet_1_1RakString.html">RakString</a> &rhs) const </td></tr>
<tr class="memdesc:ac125aacc217b6d84c5c93d9893e9c054"><td class="mdescLeft"> </td><td class="mdescRight">Inequality. <br/></td></tr>
<tr class="separator:ac125aacc217b6d84c5c93d9893e9c054"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3fb93d1bd2bb2ce06c4797956f89f476"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3fb93d1bd2bb2ce06c4797956f89f476"></a>
const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a3fb93d1bd2bb2ce06c4797956f89f476">ToLower</a> (void)</td></tr>
<tr class="memdesc:a3fb93d1bd2bb2ce06c4797956f89f476"><td class="mdescLeft"> </td><td class="mdescRight">Change all characters to lowercase. <br/></td></tr>
<tr class="separator:a3fb93d1bd2bb2ce06c4797956f89f476"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa4c723f521bede5c1bd468f499509bdd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4c723f521bede5c1bd468f499509bdd"></a>
const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#aa4c723f521bede5c1bd468f499509bdd">ToUpper</a> (void)</td></tr>
<tr class="memdesc:aa4c723f521bede5c1bd468f499509bdd"><td class="mdescLeft"> </td><td class="mdescRight">Change all characters to uppercase. <br/></td></tr>
<tr class="separator:aa4c723f521bede5c1bd468f499509bdd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a65c2fce7fb202deed3e6b0b05b0d0b77"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65c2fce7fb202deed3e6b0b05b0d0b77"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a65c2fce7fb202deed3e6b0b05b0d0b77">Set</a> (const char *format,...)</td></tr>
<tr class="memdesc:a65c2fce7fb202deed3e6b0b05b0d0b77"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the string. <br/></td></tr>
<tr class="separator:a65c2fce7fb202deed3e6b0b05b0d0b77"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae31938d97fee2505f2d353e78f566a1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRakNet_1_1RakString.html">RakString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ae31938d97fee2505f2d353e78f566a1c">Assign</a> (const char *str, size_t pos, size_t n)</td></tr>
<tr class="separator:ae31938d97fee2505f2d353e78f566a1c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae022e3749d4c3a40c81634ab1aea55ce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae022e3749d4c3a40c81634ab1aea55ce"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ae022e3749d4c3a40c81634ab1aea55ce">IsEmpty</a> (void) const </td></tr>
<tr class="memdesc:ae022e3749d4c3a40c81634ab1aea55ce"><td class="mdescLeft"> </td><td class="mdescRight">Returns if the string is empty. Also, <a class="el" href="classRakNet_1_1RakString.html#ae8fe1422249ea883413a535d01d8ffea" title="Same as std::string::c_str.">C_String()</a> would return "". <br/></td></tr>
<tr class="separator:ae022e3749d4c3a40c81634ab1aea55ce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac4923ba9b9ee2b8c62ae9477e52c51b3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4923ba9b9ee2b8c62ae9477e52c51b3"></a>
size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ac4923ba9b9ee2b8c62ae9477e52c51b3">GetLength</a> (void) const </td></tr>
<tr class="memdesc:ac4923ba9b9ee2b8c62ae9477e52c51b3"><td class="mdescLeft"> </td><td class="mdescRight">Returns the length of the string. <br/></td></tr>
<tr class="separator:ac4923ba9b9ee2b8c62ae9477e52c51b3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a908d42cb232ad4ea0e24eafc10849bfa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a908d42cb232ad4ea0e24eafc10849bfa"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a908d42cb232ad4ea0e24eafc10849bfa">Replace</a> (unsigned index, unsigned count, unsigned char c)</td></tr>
<tr class="memdesc:a908d42cb232ad4ea0e24eafc10849bfa"><td class="mdescLeft"> </td><td class="mdescRight">Replace character(s) in starting at index, for count, with c. <br/></td></tr>
<tr class="separator:a908d42cb232ad4ea0e24eafc10849bfa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8eee79526c9a5127d690d604de575e75"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8eee79526c9a5127d690d604de575e75"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a8eee79526c9a5127d690d604de575e75">SetChar</a> (unsigned index, unsigned char c)</td></tr>
<tr class="memdesc:a8eee79526c9a5127d690d604de575e75"><td class="mdescLeft"> </td><td class="mdescRight">Replace character at index with c. <br/></td></tr>
<tr class="separator:a8eee79526c9a5127d690d604de575e75"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a56f28e7fd28bb8f398dba39e79824af7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a56f28e7fd28bb8f398dba39e79824af7"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a56f28e7fd28bb8f398dba39e79824af7">SetChar</a> (unsigned index, <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> s)</td></tr>
<tr class="memdesc:a56f28e7fd28bb8f398dba39e79824af7"><td class="mdescLeft"> </td><td class="mdescRight">Replace character at index with string s. <br/></td></tr>
<tr class="separator:a56f28e7fd28bb8f398dba39e79824af7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a761d939e79e9e489639c5f707dd3bd76"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a761d939e79e9e489639c5f707dd3bd76"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a761d939e79e9e489639c5f707dd3bd76">Truncate</a> (unsigned int length)</td></tr>
<tr class="memdesc:a761d939e79e9e489639c5f707dd3bd76"><td class="mdescLeft"> </td><td class="mdescRight">Make sure string is no longer than <em>length</em>. <br/></td></tr>
<tr class="separator:a761d939e79e9e489639c5f707dd3bd76"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abdf336f3ab5269642b40261f8353289f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abdf336f3ab5269642b40261f8353289f"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#abdf336f3ab5269642b40261f8353289f">Erase</a> (unsigned int index, unsigned int count)</td></tr>
<tr class="memdesc:abdf336f3ab5269642b40261f8353289f"><td class="mdescLeft"> </td><td class="mdescRight">Erase characters out of the string at index for count. <br/></td></tr>
<tr class="separator:abdf336f3ab5269642b40261f8353289f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a79068e21d14ab58af70acbda5820763d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79068e21d14ab58af70acbda5820763d"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a79068e21d14ab58af70acbda5820763d">TerminateAtFirstCharacter</a> (char c)</td></tr>
<tr class="memdesc:a79068e21d14ab58af70acbda5820763d"><td class="mdescLeft"> </td><td class="mdescRight">Set the first instance of c with a NULL terminator. <br/></td></tr>
<tr class="separator:a79068e21d14ab58af70acbda5820763d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a47359a2ee66669ab9a1873d49a06eab4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a47359a2ee66669ab9a1873d49a06eab4"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a47359a2ee66669ab9a1873d49a06eab4">TerminateAtLastCharacter</a> (char c)</td></tr>
<tr class="memdesc:a47359a2ee66669ab9a1873d49a06eab4"><td class="mdescLeft"> </td><td class="mdescRight">Set the last instance of c with a NULL terminator. <br/></td></tr>
<tr class="separator:a47359a2ee66669ab9a1873d49a06eab4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aade62bca9d8ca96dc475e98b49b4d0ce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aade62bca9d8ca96dc475e98b49b4d0ce"></a>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#aade62bca9d8ca96dc475e98b49b4d0ce">GetCharacterCount</a> (char c)</td></tr>
<tr class="memdesc:aade62bca9d8ca96dc475e98b49b4d0ce"><td class="mdescLeft"> </td><td class="mdescRight">Returns how many occurances there are of <em>c</em> in the string. <br/></td></tr>
<tr class="separator:aade62bca9d8ca96dc475e98b49b4d0ce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30ed346a44897c35a8828b9f03e9a03a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a30ed346a44897c35a8828b9f03e9a03a"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a30ed346a44897c35a8828b9f03e9a03a">RemoveCharacter</a> (char c)</td></tr>
<tr class="memdesc:a30ed346a44897c35a8828b9f03e9a03a"><td class="mdescLeft"> </td><td class="mdescRight">Remove all instances of c. <br/></td></tr>
<tr class="separator:a30ed346a44897c35a8828b9f03e9a03a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a84e1217c6ce0ac078c4f8d915d6affd4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84e1217c6ce0ac078c4f8d915d6affd4"></a>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a84e1217c6ce0ac078c4f8d915d6affd4">StrCmp</a> (const <a class="el" href="classRakNet_1_1RakString.html">RakString</a> &rhs) const </td></tr>
<tr class="memdesc:a84e1217c6ce0ac078c4f8d915d6affd4"><td class="mdescLeft"> </td><td class="mdescRight">Compare strings (case sensitive) <br/></td></tr>
<tr class="separator:a84e1217c6ce0ac078c4f8d915d6affd4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a396827d39e9c9d759042af0f3db91a57"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a396827d39e9c9d759042af0f3db91a57"></a>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a396827d39e9c9d759042af0f3db91a57">StrNCmp</a> (const <a class="el" href="classRakNet_1_1RakString.html">RakString</a> &rhs, size_t num) const </td></tr>
<tr class="memdesc:a396827d39e9c9d759042af0f3db91a57"><td class="mdescLeft"> </td><td class="mdescRight">Compare strings (case sensitive), up to num characters. <br/></td></tr>
<tr class="separator:a396827d39e9c9d759042af0f3db91a57"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3d140fcc50a7c3d77dc3374d41b3224c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d140fcc50a7c3d77dc3374d41b3224c"></a>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a3d140fcc50a7c3d77dc3374d41b3224c">StrICmp</a> (const <a class="el" href="classRakNet_1_1RakString.html">RakString</a> &rhs) const </td></tr>
<tr class="memdesc:a3d140fcc50a7c3d77dc3374d41b3224c"><td class="mdescLeft"> </td><td class="mdescRight">Compare strings (not case sensitive) <br/></td></tr>
<tr class="separator:a3d140fcc50a7c3d77dc3374d41b3224c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a079ab758f03449e52c4a4f7b5303bba8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a079ab758f03449e52c4a4f7b5303bba8"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a079ab758f03449e52c4a4f7b5303bba8">Clear</a> (void)</td></tr>
<tr class="memdesc:a079ab758f03449e52c4a4f7b5303bba8"><td class="mdescLeft"> </td><td class="mdescRight">Clear the string. <br/></td></tr>
<tr class="separator:a079ab758f03449e52c4a4f7b5303bba8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae856fde4a0c06c92e1b6358ee2f416d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae856fde4a0c06c92e1b6358ee2f416d9"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ae856fde4a0c06c92e1b6358ee2f416d9">Printf</a> (void)</td></tr>
<tr class="memdesc:ae856fde4a0c06c92e1b6358ee2f416d9"><td class="mdescLeft"> </td><td class="mdescRight">Print the string to the screen. <br/></td></tr>
<tr class="separator:ae856fde4a0c06c92e1b6358ee2f416d9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7ac08e9f5665fa91f3aab69b503046d6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7ac08e9f5665fa91f3aab69b503046d6"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a7ac08e9f5665fa91f3aab69b503046d6">FPrintf</a> (FILE *fp)</td></tr>
<tr class="memdesc:a7ac08e9f5665fa91f3aab69b503046d6"><td class="mdescLeft"> </td><td class="mdescRight">Print the string to a file. <br/></td></tr>
<tr class="separator:a7ac08e9f5665fa91f3aab69b503046d6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a26660f0a5bc671d66825963c95e689b2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26660f0a5bc671d66825963c95e689b2"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a26660f0a5bc671d66825963c95e689b2">IPAddressMatch</a> (const char *IP)</td></tr>
<tr class="memdesc:a26660f0a5bc671d66825963c95e689b2"><td class="mdescLeft"> </td><td class="mdescRight">Does the given IP address match the IP address encoded into this string, accounting for wildcards? <br/></td></tr>
<tr class="separator:a26660f0a5bc671d66825963c95e689b2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad8676d5e5bcec7c625745710ad03b680"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8676d5e5bcec7c625745710ad03b680"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ad8676d5e5bcec7c625745710ad03b680">ContainsNonprintableExceptSpaces</a> (void) const </td></tr>
<tr class="memdesc:ad8676d5e5bcec7c625745710ad03b680"><td class="mdescLeft"> </td><td class="mdescRight">Does the string contain non-printable characters other than spaces? <br/></td></tr>
<tr class="separator:ad8676d5e5bcec7c625745710ad03b680"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aed2f7cfdfd65f63a3e6f7fdf28930f7e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed2f7cfdfd65f63a3e6f7fdf28930f7e"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#aed2f7cfdfd65f63a3e6f7fdf28930f7e">IsEmailAddress</a> (void) const </td></tr>
<tr class="memdesc:aed2f7cfdfd65f63a3e6f7fdf28930f7e"><td class="mdescLeft"> </td><td class="mdescRight">Is this a valid email address? <br/></td></tr>
<tr class="separator:aed2f7cfdfd65f63a3e6f7fdf28930f7e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aac87f8015d01c5c973c259066d96b4f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac87f8015d01c5c973c259066d96b4f0"></a>
<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#aac87f8015d01c5c973c259066d96b4f0">URLEncode</a> (void)</td></tr>
<tr class="memdesc:aac87f8015d01c5c973c259066d96b4f0"><td class="mdescLeft"> </td><td class="mdescRight">URL Encode the string. See <a href="http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029/">http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029/</a>. <br/></td></tr>
<tr class="separator:aac87f8015d01c5c973c259066d96b4f0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a665ee6e312ae9770d96732ea7eac8222"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a665ee6e312ae9770d96732ea7eac8222"></a>
<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a665ee6e312ae9770d96732ea7eac8222">URLDecode</a> (void)</td></tr>
<tr class="memdesc:a665ee6e312ae9770d96732ea7eac8222"><td class="mdescLeft"> </td><td class="mdescRight">URL decode the string. <br/></td></tr>
<tr class="separator:a665ee6e312ae9770d96732ea7eac8222"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4820da2e2eb987863120cccfcf701547"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4820da2e2eb987863120cccfcf701547"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a4820da2e2eb987863120cccfcf701547">SplitURI</a> (<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> &header, <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> &domain, <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> &path)</td></tr>
<tr class="memdesc:a4820da2e2eb987863120cccfcf701547"><td class="mdescLeft"> </td><td class="mdescRight"><a href="https://servers.api.rackspacecloud.com/v1.0">https://servers.api.rackspacecloud.com/v1.0</a> to <a href="https://,">https://,</a> servers.api.rackspacecloud.com, /v1.0 <br/></td></tr>
<tr class="separator:a4820da2e2eb987863120cccfcf701547"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6932a1a6069d3c017b3ed7389a8262bd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6932a1a6069d3c017b3ed7389a8262bd"></a>
<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a6932a1a6069d3c017b3ed7389a8262bd">SQLEscape</a> (void)</td></tr>
<tr class="memdesc:a6932a1a6069d3c017b3ed7389a8262bd"><td class="mdescLeft"> </td><td class="mdescRight">Scan for quote, double quote, and backslash and prepend with backslash. <br/></td></tr>
<tr class="separator:a6932a1a6069d3c017b3ed7389a8262bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5a8f252381a344093ea45ee62fd98d2f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5a8f252381a344093ea45ee62fd98d2f"></a>
<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a5a8f252381a344093ea45ee62fd98d2f">MakeFilePath</a> (void)</td></tr>
<tr class="memdesc:a5a8f252381a344093ea45ee62fd98d2f"><td class="mdescLeft"> </td><td class="mdescRight">Fix to be a file path, ending with /. <br/></td></tr>
<tr class="separator:a5a8f252381a344093ea45ee62fd98d2f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab141de62e7f4618342a389b702029eba"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ab141de62e7f4618342a389b702029eba">Serialize</a> (<a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> *bs) const </td></tr>
<tr class="separator:ab141de62e7f4618342a389b702029eba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ade41a2d6622841749ae0a6e51cb2cea9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ade41a2d6622841749ae0a6e51cb2cea9">SerializeCompressed</a> (<a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> *bs, uint8_t languageId=0, bool writeLanguageId=false) const </td></tr>
<tr class="separator:ade41a2d6622841749ae0a6e51cb2cea9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab5bf3364843b0b354a28582e1b2f35d4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ab5bf3364843b0b354a28582e1b2f35d4">Deserialize</a> (<a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> *bs)</td></tr>
<tr class="separator:ab5bf3364843b0b354a28582e1b2f35d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d30ae45770db0b21f15a0a58466cd8e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a8d30ae45770db0b21f15a0a58466cd8e">DeserializeCompressed</a> (<a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> *bs, bool readLanguageId=false)</td></tr>
<tr class="separator:a8d30ae45770db0b21f15a0a58466cd8e"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6220f7e457fda28d722c83ee95d9baa9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a6220f7e457fda28d722c83ee95d9baa9">NonVariadic</a> (const char *str)</td></tr>
<tr class="separator:a6220f7e457fda28d722c83ee95d9baa9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a79f546baedf74c64a820297b40590250"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79f546baedf74c64a820297b40590250"></a>
static unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a79f546baedf74c64a820297b40590250">ToInteger</a> (const char *str)</td></tr>
<tr class="memdesc:a79f546baedf74c64a820297b40590250"><td class="mdescLeft"> </td><td class="mdescRight">Hash the string into an unsigned int. <br/></td></tr>
<tr class="separator:a79f546baedf74c64a820297b40590250"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a166a8fe6c76012b07027f15b331df79e"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a166a8fe6c76012b07027f15b331df79e">ReadIntFromSubstring</a> (const char *str, size_t pos, size_t n)</td></tr>
<tr class="memdesc:a166a8fe6c76012b07027f15b331df79e"><td class="mdescLeft"> </td><td class="mdescRight">Read an integer out of a substring. <a href="#a166a8fe6c76012b07027f15b331df79e"></a><br/></td></tr>
<tr class="separator:a166a8fe6c76012b07027f15b331df79e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a579954736686dae1626bf7d882554e73"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a579954736686dae1626bf7d882554e73">FormatForPOST</a> (const char *uri, const char *contentType, const char *body, const char *extraHeaders="")</td></tr>
<tr class="separator:a579954736686dae1626bf7d882554e73"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aff1544a8a50d06edecbc61073d88a3c6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#aff1544a8a50d06edecbc61073d88a3c6">FormatForGET</a> (const char *uri, const char *extraHeaders="")</td></tr>
<tr class="separator:aff1544a8a50d06edecbc61073d88a3c6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae4df821fd3d2759c66f204f301269aa4"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ae4df821fd3d2759c66f204f301269aa4">FormatForDELETE</a> (const char *uri, const char *extraHeaders="")</td></tr>
<tr class="separator:ae4df821fd3d2759c66f204f301269aa4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af2d5179a4683c4c47181fc4d3998cc9f"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#af2d5179a4683c4c47181fc4d3998cc9f">FreeMemory</a> (void)</td></tr>
<tr class="separator:af2d5179a4683c4c47181fc4d3998cc9f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae7c203a84b2d03b70d97a7bb79c6a84e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7c203a84b2d03b70d97a7bb79c6a84e"></a>
static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ae7c203a84b2d03b70d97a7bb79c6a84e">Serialize</a> (const char *str, <a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> *bs)</td></tr>
<tr class="memdesc:ae7c203a84b2d03b70d97a7bb79c6a84e"><td class="mdescLeft"> </td><td class="mdescRight">Static version of the Serialize function. <br/></td></tr>
<tr class="separator:ae7c203a84b2d03b70d97a7bb79c6a84e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a31afa166a0303f0cd3ceb6af4998ab73"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a31afa166a0303f0cd3ceb6af4998ab73"></a>
static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a31afa166a0303f0cd3ceb6af4998ab73">SerializeCompressed</a> (const char *str, <a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> *bs, uint8_t languageId=0, bool writeLanguageId=false)</td></tr>
<tr class="memdesc:a31afa166a0303f0cd3ceb6af4998ab73"><td class="mdescLeft"> </td><td class="mdescRight">Static version of the SerializeCompressed function. <br/></td></tr>
<tr class="separator:a31afa166a0303f0cd3ceb6af4998ab73"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae17669a3f7b3ea2f1f50986d1d40edd7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae17669a3f7b3ea2f1f50986d1d40edd7"></a>
static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#ae17669a3f7b3ea2f1f50986d1d40edd7">Deserialize</a> (char *str, <a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> *bs)</td></tr>
<tr class="memdesc:ae17669a3f7b3ea2f1f50986d1d40edd7"><td class="mdescLeft"> </td><td class="mdescRight">Static version of the <a class="el" href="classRakNet_1_1RakString.html#ab5bf3364843b0b354a28582e1b2f35d4">Deserialize()</a> function. <br/></td></tr>
<tr class="separator:ae17669a3f7b3ea2f1f50986d1d40edd7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a106cc085fe4ec70bb5cc42724f42c2f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a106cc085fe4ec70bb5cc42724f42c2f2"></a>
static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1RakString.html#a106cc085fe4ec70bb5cc42724f42c2f2">DeserializeCompressed</a> (char *str, <a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> *bs, bool readLanguageId=false)</td></tr>
<tr class="memdesc:a106cc085fe4ec70bb5cc42724f42c2f2"><td class="mdescLeft"> </td><td class="mdescRight">Static version of the <a class="el" href="classRakNet_1_1RakString.html#a8d30ae45770db0b21f15a0a58466cd8e">DeserializeCompressed()</a> function. <br/></td></tr>
<tr class="separator:a106cc085fe4ec70bb5cc42724f42c2f2"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>String class. </p>
<p>Has the following improvements over std::string -Reference counting: Suitable to store in lists -Variadic assignment operator -Doesn't cause linker errors </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ae31938d97fee2505f2d353e78f566a1c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classRakNet_1_1RakString.html">RakString</a> RakNet::RakString::Assign </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>str</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a copy of a substring of str as the new content. The substring is the portion of str that begins at the character position pos and takes up to n characters (it takes less than n if the end of str is reached before). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>The string to copy in </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>The position on str to start the copy </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>How many chars to copy </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the string, note that the current string is set to that value as well </dd></dl>
</div>
</div>
<a class="anchor" id="ab5bf3364843b0b354a28582e1b2f35d4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool RakNet::RakString::Deserialize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> * </td>
<td class="paramname"><em>bs</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Deserialize what was written by Serialize </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">bs</td><td>Bitstream to serialize from </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the deserialization was successful </dd></dl>
</div>
</div>
<a class="anchor" id="a8d30ae45770db0b21f15a0a58466cd8e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool RakNet::RakString::DeserializeCompressed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> * </td>
<td class="paramname"><em>bs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>readLanguageId</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Deserialize compressed string, written by SerializeCompressed </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">bs</td><td>Bitstream to serialize from </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">readLanguageId</td><td>If true, looks for the variable langaugeId in the data stream. Must match what was passed to SerializeCompressed </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the deserialization was successful </dd></dl>
<dl class="section pre"><dt>Precondition</dt><dd><a class="el" href="classRakNet_1_1StringCompressor.html#ab9b84180fd8150a0af933c1000a8bf02" title="Used so I can allocate and deallocate this singleton at runtime.">StringCompressor::AddReference</a> must have been called to instantiate the class (Happens automatically from <a class="el" href="classRakNet_1_1RakPeer.html#a92d493cb617381a6e750f7df6e768927" title="Starts the network threads and opens the listen port.">RakPeer::Startup()</a>) </dd></dl>
</div>
</div>
<a class="anchor" id="a0516f3513b09234ea392419ca8344045"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t RakNet::RakString::Find </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>stringToFind</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>pos</em> = <code>0</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>String class find replacement Searches the string for the content specified in stringToFind and returns the position of the first occurrence in the string. Search only includes characters on or after position pos, ignoring any possible occurrences in previous locations. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">stringToFind</td><td>The string to find inside of this object's string </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>The position in the string to start the search </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the position of the first occurrence in the string. </dd></dl>
</div>
</div>
<a class="anchor" id="ae4df821fd3d2759c66f204f301269aa4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> RakNet::RakString::FormatForDELETE </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>uri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>extraHeaders</em> = <code>""</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Format as a DELETE command that can be sent to a webserver </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">uri</td><td>For example, masterserver2.raknet.com/testServer?__gameId=comprehensivePCGame&__rowId=1 </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Formatted string </dd></dl>
</div>
</div>
<a class="anchor" id="aff1544a8a50d06edecbc61073d88a3c6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> RakNet::RakString::FormatForGET </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>uri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>extraHeaders</em> = <code>""</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Format as a GET command that can be sent to a webserver </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">uri</td><td>For example, masterserver2.raknet.com/testServer?__gameId=comprehensivePCGame </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Formatted string </dd></dl>
</div>
</div>
<a class="anchor" id="a579954736686dae1626bf7d882554e73"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> RakNet::RakString::FormatForPOST </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>uri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>contentType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>body</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>extraHeaders</em> = <code>""</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Format as a POST command that can be sent to a webserver </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">uri</td><td>For example, masterserver2.raknet.com/testServer </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">contentType</td><td>For example, text/plain; charset=UTF-8 </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">body</td><td>Body of the post </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Formatted string </dd></dl>
</div>
</div>
<a class="anchor" id="af2d5179a4683c4c47181fc4d3998cc9f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void RakNet::RakString::FreeMemory </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="classRakNet_1_1RakString.html" title="String class.">RakString</a> uses a freeList of old no-longer used strings Call this function to clear this memory on shutdown </p>
</div>
</div>
<a class="anchor" id="a6220f7e457fda28d722c83ee95d9baa9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> RakNet::RakString::NonVariadic </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>str</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a <a class="el" href="classRakNet_1_1RakString.html" title="String class.">RakString</a> with a value, without doing printf style parsing Equivalent to assignment operator </p>
</div>
</div>
<a class="anchor" id="a166a8fe6c76012b07027f15b331df79e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int RakNet::RakString::ReadIntFromSubstring </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>str</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Read an integer out of a substring. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>The string </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>The position on str where the integer starts </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>How many chars to copy </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab141de62e7f4618342a389b702029eba"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void RakNet::RakString::Serialize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> * </td>
<td class="paramname"><em>bs</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Serialize to a bitstream, uncompressed (slightly faster) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[out]</td><td class="paramname">bs</td><td>Bitstream to serialize to </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ade41a2d6622841749ae0a6e51cb2cea9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void RakNet::RakString::SerializeCompressed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classRakNet_1_1BitStream.html">BitStream</a> * </td>
<td class="paramname"><em>bs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t </td>
<td class="paramname"><em>languageId</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>writeLanguageId</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Serialize to a bitstream, compressed (better bandwidth usage) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[out]</td><td class="paramname">bs</td><td>Bitstream to serialize to </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">languageId</td><td>languageId to pass to the <a class="el" href="classRakNet_1_1StringCompressor.html" title="Writes and reads strings to and from bitstreams.">StringCompressor</a> class </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">writeLanguageId</td><td>encode the languageId variable in the stream. If false, 0 is assumed, and DeserializeCompressed will not look for this variable in the stream (saves bandwidth) </td></tr>
</table>
</dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><a class="el" href="classRakNet_1_1StringCompressor.html#ab9b84180fd8150a0af933c1000a8bf02" title="Used so I can allocate and deallocate this singleton at runtime.">StringCompressor::AddReference</a> must have been called to instantiate the class (Happens automatically from <a class="el" href="classRakNet_1_1RakPeer.html#a92d493cb617381a6e750f7df6e768927" title="Starts the network threads and opens the listen port.">RakPeer::Startup()</a>) </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/temp/RakNet_PC/Source/RakString.h</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jun 2 2014 20:10:29 for RakNet by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2
</small></address>
</body>
</html>
ASSISTANT
The initial processing of the text in question requires identifying elements that require minimal cognitive exertion versus those that demand deeper analysis. This input text appears to be a technical specification concerning the `RakNet::RakString` class. The task is to differentiate between sections that are straightforward versus those that necessitate a reflective approach for system enhancement or debugging. --- [sys1] The `RakNet::RakString` class provides a string management facility with extra features like reference counting and improved handling over standard strings. It includes member functions for various manipulations such as `Replace`, `Erase`, and `Find`. Static functions allow for formatted string commands for network operations, like `FormatForGET` or `FormatForPOST`. [end sys1] [sys2] **2.1 Understand the Problem:** The problem requires us to comprehend the specific architecture and functionality of the `RakString` class, aiming to optimize or adapt these facilities for broader usage or integration. *Reflection:* "What are the primary enhancements `RakString` offers over `std::string`? Are there areas where it could be further optimized?" *Creative Perspective:* "How can the unique features of this class, such as reference counting and network-friendly formatting, be utilized to develop new functionalities or improve existing systems?" **2.2 Analyze the Information:** Break down the information regarding class methods and static functions to understand their interactions and potential enhancements. *Reflection:* "Am I fully understanding the interaction between methods like `Serialize` and `DeserializeCompressed`? Could there be overlapping functionality with existing components that might cause conflicts or redundancies?" *Creative Perspective:* "Can we identify any emerging patterns in how these functions are utilized that could inform broader system improvements or innovative applications?" **2.3 Generate Hypotheses:** 1. `RakString` allows for seamless network communication via string commands. (Confidence: 0.9, Creative: 0.3) 2. The reference counting mechanism reduces memory overhead when managing multiple string instances. (Confidence: 0.8, Creative: 0.4) 3. It could be expanded to include support for newer encoding formats. (Confidence: 0.7, Creative: 0.6) 4. The data serialization functions could be optimized for faster data transfer. (Confidence: 0.6, Creative: 0.5) 5. Integrating with other RakNet components could streamline resource usage. (Confidence: 0.7, Creative: 0.5) 6. There is a potential to simplify the variadic assignment operators for more clarity. (Confidence: 0.5, Creative: 0.4) 7. The class could benefit from additional error-catching mechanisms during serialization. (Confidence: 0.5, Creative: 0.6) 8. Existing methods could be profiled for performance bottlenecks. (Confidence: 0.6, Creative: 0.4) 9. The class could be made extensible via plugins for custom applications. (Confidence: 0.5, Creative: 0.7) 10. A more interactive on-the-fly debugging tool for the class might enhance development efficiency. (Confidence: 0.4, Creative: 0.8) *Reflection:* "Have I explored all avenues in the technology stack to identify potential enhancements? Are the proposed optimizations truly beneficial to the current architecture?" *Creative Perspective:* "Could adjusting the implementation or adding additional features offer novel solutions to common or niche problems encountered with current distributions of RakNet?" **2.4 Anticipate Future Steps and Obstacles:** Predict challenges such as compatibility with existing modules or potential memory leaks due to expanded functionalities. *Reflection:* "What are the foreseen complexities if these hypotheses were implemented? Are there hidden dependencies not accounted for?" *Creative Perspective:* "Could breakthroughs in other components facilitate overcoming these challenges with unexpected synergies or integrations?" [end sys2] [sys1] Emphasizing `RakNet::RakString` adaptability for both current needs and prospective enhancements could yield substantial benefits. Focus on optimizing existing methods and exploring compatibility with additional RakNet modules. [end sys1] --- The text processing encompasses identification and structured analysis of cognitive demands related to a technical specification. Systems with different cognitive thinking modes are catered to provide both quick insights and a comprehensive strategy for technological enhancement.