PromiseFlatCString (External)

  • Revision slug: PromiseFlatCString_(External)
  • Revision title: PromiseFlatCString (External)
  • Revision id: 118955
  • Created:
  • Creator: EndersTruth
  • Is current revision? No
  • Comment 146 words added, 184 words removed

Revision Content

Class Declaration

Method Overview

get
operator=
Adopt
BeginReading
EndReading
CharAt
operator[]
First
BeginWriting
EndWriting
SetLength
Length
IsEmpty
SetIsVoid
IsVoid
Assign
AssignLiteral
Replace
Append
AppendLiteral
operator+=
Insert
Cut
Truncate
StripChars
StripWhitespace
Trim
DefaultComparator
Compare
Equals
operator<
operator<=
operator==
operator>=
operator>
operator!=
EqualsLiteral
Find
RFind
FindChar
RFindChar
AppendInt
ToInteger

Base Classes

Data Members

No public members.

Methods

get

char* get() const - source

operator=

nsCString_external& operator=(const nsCString_external&) - source

Parameters

  • nsCString_external& aString
nsACString& operator=(const nsACString&) - source

Parameters

  • nsACString& aString
nsACString& operator=(const char*) - source

Parameters

  • char* aPtr
nsACString& operator=(char) - source

Parameters

  • char aChar

Adopt

void Adopt(const char*, PRUint32) - source

Parameters

  • char* aData
  • PRUint32 aLength

BeginReading

PRUint32 BeginReading(const char**, const char**) const - source
Returns the length, beginning, and end of a string in one operation.

Parameters

  • char** begin
  • char** end
char* BeginReading() const - source

EndReading

char* EndReading() const - source

CharAt

char CharAt(PRUint32) const - source

Parameters

  • PRUint32 aPos

operator[]

char operator[](PRUint32) const - source

Parameters

  • PRUint32 aPos

First

char First() const - source

BeginWriting

PRUint32 BeginWriting(char**, char**, PRUint32) - source
Get the length, begin writing, and optionally set the length of a
string all in one operation.

@param   newSize Size the string to this length. Pass PR_UINT32_MAX
to leave the length unchanged.
@return  The new length of the string, or 0 if resizing failed.

Parameters

  • char** begin
  • char** end
  • PRUint32 newSize
char* BeginWriting(PRUint32) - source

Parameters

  • PRUint32 aLen

EndWriting

char* EndWriting() - source

SetLength

PRBool SetLength(PRUint32) - source

Parameters

  • PRUint32 aLen

Length

PRUint32 Length() const - source

IsEmpty

PRBool IsEmpty() const - source

SetIsVoid

void SetIsVoid(PRBool) - source

Parameters

  • PRBool val

IsVoid

PRBool IsVoid() const - source

Assign

void Assign(const nsACString&) - source

Parameters

  • nsACString& aString
void Assign(const char*, PRUint32) - source

Parameters

  • char* aData
  • PRUint32 aLength
void Assign(char) - source

Parameters

  • char aChar

AssignLiteral

void AssignLiteral(const char*) - source

Parameters

  • char* aData

Replace

void Replace(PRUint32, PRUint32, const char*, PRUint32) - source

Parameters

  • PRUint32 cutStart
  • PRUint32 cutLength
  • char* data
  • PRUint32 length
void Replace(PRUint32, PRUint32, char) - source

Parameters

  • PRUint32 cutStart
  • PRUint32 cutLength
  • char c
void Replace(PRUint32, PRUint32, const nsACString&) - source

Parameters

  • PRUint32 cutStart
  • PRUint32 cutLength
  • nsACString& readable

Append

void Append(char) - source

Parameters

  • char c
void Append(const char*, PRUint32) - source

Parameters

  • char* data
  • PRUint32 length
void Append(const nsACString&) - source

Parameters

  • nsACString& readable

AppendLiteral

void AppendLiteral(const char*) - source

Parameters

  • char* aASCIIStr

operator+=

nsACString& operator+=(char) - source

Parameters

  • char c
nsACString& operator+=(const char*) - source

Parameters

  • char* data
nsACString& operator+=(const nsACString&) - source

Parameters

  • nsACString& readable

Insert

void Insert(char, PRUint32) - source

Parameters

  • char c
  • PRUint32 pos
void Insert(const char*, PRUint32, PRUint32) - source

Parameters

  • char* data
  • PRUint32 pos
  • PRUint32 length
void Insert(const nsACString&, PRUint32) - source

Parameters

  • nsACString& readable
  • PRUint32 pos

Cut

void Cut(PRUint32, PRUint32) - source

Parameters

  • PRUint32 cutStart
  • PRUint32 cutLength

Truncate

void Truncate() - source

StripChars

void StripChars(const char*) - source
Remove all occurences of characters in aSet from the string.

Parameters

  • char* aSet

StripWhitespace

void StripWhitespace() - source
Strip whitespace characters from the string.

Trim

void Trim(const char*, PRBool, PRBool) - source

Parameters

  • char* aSet
  • PRBool aLeading
  • PRBool aTrailing

DefaultComparator

PRInt32 DefaultComparator(const char*, const char*, PRUint32) - source

Parameters

  • char* a
  • char* b
  • PRUint32 length

Compare

PRInt32 Compare(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const - source

Parameters

  • char* other
  • PRInt32 (*)(char*, char*, PRUint32) c
PRInt32 Compare(const nsACString&, PRInt32 (*)(const char*, const char*, PRUint32)) const - source

Parameters

  • nsACString& other
  • PRInt32 (*)(char*, char*, PRUint32) c

Equals

PRBool Equals(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const - source

Parameters

  • char* other
  • PRInt32 (*)(char*, char*, PRUint32) c
PRBool Equals(const nsACString&, PRInt32 (*)(const char*, const char*, PRUint32)) const - source

Parameters

  • nsACString& other
  • PRInt32 (*)(char*, char*, PRUint32) c

operator<

PRBool operator<(const nsACString&) const - source

Parameters

  • nsACString& other
PRBool operator<(const char*) const - source

Parameters

  • char* other

operator<=

PRBool operator<=(const nsACString&) const - source

Parameters

  • nsACString& other
PRBool operator<=(const char*) const - source

Parameters

  • char* other

operator==

PRBool operator==(const nsACString&) const - source

Parameters

  • nsACString& other
PRBool operator==(const char*) const - source

Parameters

  • char* other

operator>=

PRBool operator>=(const nsACString&) const - source

Parameters

  • nsACString& other
PRBool operator>=(const char*) const - source

Parameters

  • char* other

operator>

PRBool operator>(const nsACString&) const - source

Parameters

  • nsACString& other
PRBool operator>(const char*) const - source

Parameters

  • char* other

operator!=

PRBool operator!=(const nsACString&) const - source

Parameters

  • nsACString& other
PRBool operator!=(const char*) const - source

Parameters

  • char* other

EqualsLiteral

PRBool EqualsLiteral(const char*) const - source

Parameters

  • char* other

Find

PRInt32 Find(const nsACString&, PRInt32 (*)(const char*, const char*, PRUint32)) const - source
Find the first occurrence of aStr in this string.

@return the offset of aStr, or -1 if not found

Parameters

  • nsACString& aStr
  • PRInt32 (*)(char*, char*, PRUint32) c
PRInt32 Find(const nsACString&, PRUint32, PRInt32 (*)(const char*, const char*, PRUint32)) const - source
Find the first occurrence of aStr in this string, beginning at aOffset.

@return the offset of aStr, or -1 if not found

Parameters

  • nsACString& aStr
  • PRUint32 aOffset
  • PRInt32 (*)(char*, char*, PRUint32) c
PRInt32 Find(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const - source
Find the first occurrence of aStr in this string.

@return the offset of aStr, or -1 if not found

Parameters

  • char* aStr
  • PRInt32 (*)(char*, char*, PRUint32) c
PRInt32 Find(const char*, PRUint32, PRInt32 (*)(const char*, const char*, PRUint32)) const - source

Parameters

  • char* aStr
  • PRUint32 aLen
  • PRInt32 (*)(char*, char*, PRUint32) c

RFind

PRInt32 RFind(const nsACString&, PRInt32 (*)(const char*, const char*, PRUint32)) const - source
Find the last occurrence of aStr in this string.

@return The offset of the character from the beginning of the string,
or -1 if not found.

Parameters

  • nsACString& aStr
  • PRInt32 (*)(char*, char*, PRUint32) c
PRInt32 RFind(const nsACString&, PRInt32, PRInt32 (*)(const char*, const char*, PRUint32)) const - source
Find the last occurrence of aStr in this string, beginning at aOffset.

@param aOffset the offset from the beginning of the string to begin
searching. If aOffset < 0, search from end of this string.
@return The offset of aStr from the beginning of the string,
or -1 if not found.

Parameters

  • nsACString& aStr
  • PRInt32 aOffset
  • PRInt32 (*)(char*, char*, PRUint32) c
PRInt32 RFind(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const - source
Find the last occurrence of aStr in this string.

@return The offset of aStr from the beginning of the string,
or -1 if not found.

Parameters

  • char* aStr
  • PRInt32 (*)(char*, char*, PRUint32) c
PRInt32 RFind(const char*, PRInt32, PRInt32 (*)(const char*, const char*, PRUint32)) const - source
Find the last occurrence of an ASCII string in this string, 
beginning at aOffset.

@param aLen is the length of aStr
@return The offset of aStr from the beginning of the string,
or -1 if not found.

Parameters

  • char* aStr
  • PRInt32 aLen
  • PRInt32 (*)(char*, char*, PRUint32) c

FindChar

PRInt32 FindChar(char, PRUint32) const - source
Search for the offset of the first occurrence of a character in a
string.

@param aOffset the offset from the beginning of the string to begin
searching
@return The offset of the character from the beginning of the string,
or -1 if not found.

Parameters

  • char aChar
  • PRUint32 aOffset

RFindChar

PRInt32 RFindChar(char) const - source
Search for the offset of the last occurrence of a character in a
string.

@return The offset of the character from the beginning of the string,
or -1 if not found.

Parameters

  • char aChar

AppendInt

void AppendInt(int, PRInt32) - source
Append a string representation of a number.

Parameters

  • int aInt
  • PRInt32 aRadix

ToInteger

PRInt32 ToInteger(nsresult*, PRUint32) const - source
Convert this string to an integer.

@param aErrorCode pointer to contain result code.
@param aRadix must be 10 or 16

Parameters

  • nsresult* aErrorCode
  • PRUint32 aRadix

Revision Source

<p><a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l1422">Class Declaration</a></p>
<h2 id="Method_Overview">Method Overview</h2>
<table class="standard-table"> <tbody> <tr> <td><a href="#get">get</a></td> </tr> <tr> <td><a href="#operator%3D">operator=</a></td> </tr> <tr> <td><a href="#Adopt">Adopt</a></td> </tr> <tr> <td><a href="#BeginReading">BeginReading</a></td> </tr> <tr> <td><a href="#EndReading">EndReading</a></td> </tr> <tr> <td><a href="#CharAt">CharAt</a></td> </tr> <tr> <td><a href="#operator%5B%5D">operator[]</a></td> </tr> <tr> <td><a href="#First">First</a></td> </tr> <tr> <td><a href="#BeginWriting">BeginWriting</a></td> </tr> <tr> <td><a href="#EndWriting">EndWriting</a></td> </tr> <tr> <td><a href="#SetLength">SetLength</a></td> </tr> <tr> <td><a href="#Length">Length</a></td> </tr> <tr> <td><a href="#IsEmpty">IsEmpty</a></td> </tr> <tr> <td><a href="#SetIsVoid">SetIsVoid</a></td> </tr> <tr> <td><a href="#IsVoid">IsVoid</a></td> </tr> <tr> <td><a href="#Assign">Assign</a></td> </tr> <tr> <td><a href="#AssignLiteral">AssignLiteral</a></td> </tr> <tr> <td><a href="#Replace">Replace</a></td> </tr> <tr> <td><a href="#Append">Append</a></td> </tr> <tr> <td><a href="#AppendLiteral">AppendLiteral</a></td> </tr> <tr> <td><a href="#operator+%3D">operator+=</a></td> </tr> <tr> <td><a href="#Insert">Insert</a></td> </tr> <tr> <td><a href="#Cut">Cut</a></td> </tr> <tr> <td><a href="#Truncate">Truncate</a></td> </tr> <tr> <td><a href="#StripChars">StripChars</a></td> </tr> <tr> <td><a href="#StripWhitespace">StripWhitespace</a></td> </tr> <tr> <td><a href="#Trim">Trim</a></td> </tr> <tr> <td><a href="#DefaultComparator">DefaultComparator</a></td> </tr> <tr> <td><a href="#Compare">Compare</a></td> </tr> <tr> <td><a href="#Equals">Equals</a></td> </tr> <tr> <td><a href="#operator%3C">operator&lt;</a></td> </tr> <tr> <td><a href="#operator%3C%3D">operator&lt;=</a></td> </tr> <tr> <td><a href="#operator%3D%3D">operator==</a></td> </tr> <tr> <td><a href="#operator%3E%3D">operator&gt;=</a></td> </tr> <tr> <td><a href="#operator%3E">operator&gt;</a></td> </tr> <tr> <td><a href="#operator%21%3D">operator!=</a></td> </tr> <tr> <td><a href="#EqualsLiteral">EqualsLiteral</a></td> </tr> <tr> <td><a href="#Find">Find</a></td> </tr> <tr> <td><a href="#RFind">RFind</a></td> </tr> <tr> <td><a href="#FindChar">FindChar</a></td> </tr> <tr> <td><a href="#RFindChar">RFindChar</a></td> </tr> <tr> <td><a href="#AppendInt">AppendInt</a></td> </tr> <tr> <td><a href="#ToInteger">ToInteger</a></td> </tr> </tbody>
</table>
<h2 id="Base_Classes">Base Classes</h2>
<ul> <li><a href="/en/nsCStringContainer">nsCStringContainer</a></li>
</ul>
<h2 id="Data_Members">Data Members</h2>
<p><em>No public members.</em></p>
<h2 id="Methods">Methods</h2>
<div>
<div>
<h3 id="get">get</h3>
<dl> <dt class="methodName" id="get() const"><code>char* get() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l848">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="operator=">operator=</h3>
<dl> <dt class="methodName" id="operator=(const nsCString_external&amp;)"><code>nsCString_external&amp; operator=(const nsCString_external&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l853">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsCString_external&amp; aString</li> </ul> </dd> <dt class="methodName" id="operator=(const nsACString&amp;)"><code>nsACString&amp; operator=(const nsACString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l467">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; aString</li> </ul> </dd> <dt class="methodName" id="operator=(const char*)"><code>nsACString&amp; operator=(const char*)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l468">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aPtr</li> </ul> </dd> <dt class="methodName" id="operator=(char)"><code>nsACString&amp; operator=(char)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l469">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char aChar</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Adopt">Adopt</h3>
<dl> <dt class="methodName" id="Adopt(const char*, PRUint32)"><code>void Adopt(const char*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l858">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aData</li> <li>PRUint32 aLength</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="BeginReading">BeginReading</h3>
<dl> <dt class="methodName" id="BeginReading(const char**, const char**) const"><code>PRUint32 BeginReading(const char**, const char**) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l394">source</a></dt> <dd> <pre class="doccomment">Returns the length, beginning, and end of a string in one operation.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>char** begin</li> <li>char** end</li> </ul> </dd> <dt class="methodName" id="BeginReading() const"><code>char* BeginReading() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l396">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="EndReading">EndReading</h3>
<dl> <dt class="methodName" id="EndReading() const"><code>char* EndReading() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l397">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="CharAt">CharAt</h3>
<dl> <dt class="methodName" id="CharAt(PRUint32) const"><code>char CharAt(PRUint32) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l399">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRUint32 aPos</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator[]">operator[]</h3>
<dl> <dt class="methodName" id="operator[](PRUint32) const"><code>char operator[](PRUint32) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l404">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRUint32 aPos</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="First">First</h3>
<dl> <dt class="methodName" id="First() const"><code>char First() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l408">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="BeginWriting">BeginWriting</h3>
<dl> <dt class="methodName" id="BeginWriting(char**, char**, PRUint32)"><code>PRUint32 BeginWriting(char**, char**, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l423">source</a></dt> <dd> <pre class="doccomment">Get the length, begin writing, and optionally set the length of a
string all in one operation.

@param   newSize Size the string to this length. Pass PR_UINT32_MAX
to leave the length unchanged.
@return  The new length of the string, or 0 if resizing failed.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>char** begin</li> <li>char** end</li> <li>PRUint32 newSize</li> </ul> </dd> <dt class="methodName" id="BeginWriting(PRUint32)"><code>char* BeginWriting(PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l425">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRUint32 aLen</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="EndWriting">EndWriting</h3>
<dl> <dt class="methodName" id="EndWriting()"><code>char* EndWriting()</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l426">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="SetLength">SetLength</h3>
<dl> <dt class="methodName" id="SetLength(PRUint32)"><code>PRBool SetLength(PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l428">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRUint32 aLen</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Length">Length</h3>
<dl> <dt class="methodName" id="Length() const"><code>PRUint32 Length() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l430">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="IsEmpty">IsEmpty</h3>
<dl> <dt class="methodName" id="IsEmpty() const"><code>PRBool IsEmpty() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l436">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="SetIsVoid">SetIsVoid</h3>
<dl> <dt class="methodName" id="SetIsVoid(PRBool)"><code>void SetIsVoid(PRBool)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l441">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRBool val</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="IsVoid">IsVoid</h3>
<dl> <dt class="methodName" id="IsVoid() const"><code>PRBool IsVoid() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l445">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="Assign">Assign</h3>
<dl> <dt class="methodName" id="Assign(const nsACString&amp;)"><code>void Assign(const nsACString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l450">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; aString</li> </ul> </dd> <dt class="methodName" id="Assign(const char*, PRUint32)"><code>void Assign(const char*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l454">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aData</li> <li>PRUint32 aLength</li> </ul> </dd> <dt class="methodName" id="Assign(char)"><code>void Assign(char)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l458">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char aChar</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="AssignLiteral">AssignLiteral</h3>
<dl> <dt class="methodName" id="AssignLiteral(const char*)"><code>void AssignLiteral(const char*)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l462">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aData</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Replace">Replace</h3>
<dl> <dt class="methodName" id="Replace(PRUint32, PRUint32, const char*, PRUint32)"><code>void Replace(PRUint32, PRUint32, const char*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l471">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRUint32 cutStart</li> <li>PRUint32 cutLength</li> <li>char* data</li> <li>PRUint32 length</li> </ul> </dd> <dt class="methodName" id="Replace(PRUint32, PRUint32, char)"><code>void Replace(PRUint32, PRUint32, char)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l475">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRUint32 cutStart</li> <li>PRUint32 cutLength</li> <li>char c</li> </ul> </dd> <dt class="methodName" id="Replace(PRUint32, PRUint32, const nsACString&amp;)"><code>void Replace(PRUint32, PRUint32, const nsACString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l479">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRUint32 cutStart</li> <li>PRUint32 cutLength</li> <li>nsACString&amp; readable</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Append">Append</h3>
<dl> <dt class="methodName" id="Append(char)"><code>void Append(char)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l486">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char c</li> </ul> </dd> <dt class="methodName" id="Append(const char*, PRUint32)"><code>void Append(const char*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l487">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* data</li> <li>PRUint32 length</li> </ul> </dd> <dt class="methodName" id="Append(const nsACString&amp;)"><code>void Append(const nsACString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l488">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; readable</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="AppendLiteral">AppendLiteral</h3>
<dl> <dt class="methodName" id="AppendLiteral(const char*)"><code>void AppendLiteral(const char*)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l489">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aASCIIStr</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator+=">operator+=</h3>
<dl> <dt class="methodName" id="operator+=(char)"><code>nsACString&amp; operator+=(char)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l491">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char c</li> </ul> </dd> <dt class="methodName" id="operator+=(const char*)"><code>nsACString&amp; operator+=(const char*)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l492">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* data</li> </ul> </dd> <dt class="methodName" id="operator+=(const nsACString&amp;)"><code>nsACString&amp; operator+=(const nsACString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l493">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; readable</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Insert">Insert</h3>
<dl> <dt class="methodName" id="Insert(char, PRUint32)"><code>void Insert(char, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l495">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char c</li> <li>PRUint32 pos</li> </ul> </dd> <dt class="methodName" id="Insert(const char*, PRUint32, PRUint32)"><code>void Insert(const char*, PRUint32, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l496">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* data</li> <li>PRUint32 pos</li> <li>PRUint32 length</li> </ul> </dd> <dt class="methodName" id="Insert(const nsACString&amp;, PRUint32)"><code>void Insert(const nsACString&amp;, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l497">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; readable</li> <li>PRUint32 pos</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Cut">Cut</h3>
<dl> <dt class="methodName" id="Cut(PRUint32, PRUint32)"><code>void Cut(PRUint32, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l499">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>PRUint32 cutStart</li> <li>PRUint32 cutLength</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Truncate">Truncate</h3>
<dl> <dt class="methodName" id="Truncate()"><code>void Truncate()</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l501">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="StripChars">StripChars</h3>
<dl> <dt class="methodName" id="StripChars(const char*)"><code>void StripChars(const char*)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l506">source</a></dt> <dd> <pre class="doccomment">Remove all occurences of characters in aSet from the string.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aSet</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="StripWhitespace">StripWhitespace</h3>
<dl> <dt class="methodName" id="StripWhitespace()"><code>void StripWhitespace()</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l511">source</a></dt> <dd> <pre class="doccomment">Strip whitespace characters from the string.</pre> </dd>
</dl>
</div>
<div>
<h3 id="Trim">Trim</h3>
<dl> <dt class="methodName" id="Trim(const char*, PRBool, PRBool)"><code>void Trim(const char*, PRBool, PRBool)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l514">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aSet</li> <li>PRBool aLeading</li> <li>PRBool aTrailing</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="DefaultComparator">DefaultComparator</h3>
<dl> <dt class="methodName" id="DefaultComparator(const char*, const char*, PRUint32)"><code>PRInt32 DefaultComparator(const char*, const char*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l525">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* a</li> <li>char* b</li> <li>PRUint32 length</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Compare">Compare</h3>
<dl> <dt class="methodName" id="Compare(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 Compare(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l528">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Compare(const nsACString&amp;, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 Compare(const nsACString&amp;, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l531">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; other</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Equals">Equals</h3>
<dl> <dt class="methodName" id="Equals(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRBool Equals(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l534">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Equals(const nsACString&amp;, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRBool Equals(const nsACString&amp;, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l537">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; other</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator&lt;">operator&lt;</h3>
<dl> <dt class="methodName" id="operator&lt;(const nsACString&amp;) const"><code>PRBool operator&lt;(const nsACString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l539">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator&lt;(const char*) const"><code>PRBool operator&lt;(const char*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l543">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator&lt;=">operator&lt;=</h3>
<dl> <dt class="methodName" id="operator&lt;=(const nsACString&amp;) const"><code>PRBool operator&lt;=(const nsACString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l548">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator&lt;=(const char*) const"><code>PRBool operator&lt;=(const char*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l552">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator==">operator==</h3>
<dl> <dt class="methodName" id="operator==(const nsACString&amp;) const"><code>PRBool operator==(const nsACString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l557">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator==(const char*) const"><code>PRBool operator==(const char*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l561">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator>=">operator&gt;=</h3>
<dl> <dt class="methodName" id="operator>=(const nsACString&amp;) const"><code>PRBool operator&gt;=(const nsACString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l566">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator>=(const char*) const"><code>PRBool operator&gt;=(const char*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l570">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator>">operator&gt;</h3>
<dl> <dt class="methodName" id="operator>(const nsACString&amp;) const"><code>PRBool operator&gt;(const nsACString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l575">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator>(const char*) const"><code>PRBool operator&gt;(const char*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l579">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator!=">operator!=</h3>
<dl> <dt class="methodName" id="operator!=(const nsACString&amp;) const"><code>PRBool operator!=(const nsACString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l584">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator!=(const char*) const"><code>PRBool operator!=(const char*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l588">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="EqualsLiteral">EqualsLiteral</h3>
<dl> <dt class="methodName" id="EqualsLiteral(const char*) const"><code>PRBool EqualsLiteral(const char*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l593">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Find">Find</h3>
<dl> <dt class="methodName" id="Find(const nsACString&amp;, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 Find(const nsACString&amp;, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l604">source</a></dt> <dd> <pre class="doccomment">Find the first occurrence of aStr in this string.

@return the offset of aStr, or -1 if not found</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; aStr</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Find(const nsACString&amp;, PRUint32, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 Find(const nsACString&amp;, PRUint32, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l613">source</a></dt> <dd> <pre class="doccomment">Find the first occurrence of aStr in this string, beginning at aOffset.

@return the offset of aStr, or -1 if not found</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; aStr</li> <li>PRUint32 aOffset</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Find(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 Find(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l621">source</a></dt> <dd> <pre class="doccomment">Find the first occurrence of aStr in this string.

@return the offset of aStr, or -1 if not found</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aStr</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Find(const char*, PRUint32, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 Find(const char*, PRUint32, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l624">source</a></dt> <dd> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aStr</li> <li>PRUint32 aLen</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="RFind">RFind</h3>
<dl> <dt class="methodName" id="RFind(const nsACString&amp;, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 RFind(const nsACString&amp;, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l633">source</a></dt> <dd> <pre class="doccomment">Find the last occurrence of aStr in this string.

@return The offset of the character from the beginning of the string,
or -1 if not found.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; aStr</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="RFind(const nsACString&amp;, PRInt32, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 RFind(const nsACString&amp;, PRInt32, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l645">source</a></dt> <dd> <pre class="doccomment">Find the last occurrence of aStr in this string, beginning at aOffset.

@param aOffset the offset from the beginning of the string to begin
searching. If aOffset &lt; 0, search from end of this string.
@return The offset of aStr from the beginning of the string,
or -1 if not found.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>nsACString&amp; aStr</li> <li>PRInt32 aOffset</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="RFind(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 RFind(const char*, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l654">source</a></dt> <dd> <pre class="doccomment">Find the last occurrence of aStr in this string.

@return The offset of aStr from the beginning of the string,
or -1 if not found.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aStr</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="RFind(const char*, PRInt32, PRInt32 (*)(const char*, const char*, PRUint32)) const"><code>PRInt32 RFind(const char*, PRInt32, PRInt32 (*)(const char*, const char*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l665">source</a></dt> <dd> <pre class="doccomment">Find the last occurrence of an ASCII string in this string, 
beginning at aOffset.

@param aLen is the length of aStr
@return The offset of aStr from the beginning of the string,
or -1 if not found.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>char* aStr</li> <li>PRInt32 aLen</li> <li>PRInt32 (*)(char*, char*, PRUint32) c</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="FindChar">FindChar</h3>
<dl> <dt class="methodName" id="FindChar(char, PRUint32) const"><code>PRInt32 FindChar(char, PRUint32) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l676">source</a></dt> <dd> <pre class="doccomment">Search for the offset of the first occurrence of a character in a
string.

@param aOffset the offset from the beginning of the string to begin
searching
@return The offset of the character from the beginning of the string,
or -1 if not found.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>char aChar</li> <li>PRUint32 aOffset</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="RFindChar">RFindChar</h3>
<dl> <dt class="methodName" id="RFindChar(char) const"><code>PRInt32 RFindChar(char) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l685">source</a></dt> <dd> <pre class="doccomment">Search for the offset of the last occurrence of a character in a
string.

@return The offset of the character from the beginning of the string,
or -1 if not found.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>char aChar</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="AppendInt">AppendInt</h3>
<dl> <dt class="methodName" id="AppendInt(int, PRInt32)"><code>void AppendInt(int, PRInt32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l690">source</a></dt> <dd> <pre class="doccomment">Append a string representation of a number.</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>int aInt</li> <li>PRInt32 aRadix</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="ToInteger">ToInteger</h3>
<dl> <dt class="methodName" id="ToInteger(nsresult*, PRUint32) const"><code>PRInt32 ToInteger(nsresult*, PRUint32) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l700">source</a></dt> <dd> <pre class="doccomment">Convert this string to an integer.

@param aErrorCode pointer to contain result code.
@param aRadix must be 10 or 16</pre> <h4 id="Parameters">Parameters</h4> <ul> <li>nsresult* aErrorCode</li> <li>PRUint32 aRadix</li> </ul> </dd>
</dl>
</div>
</div>
Revert to this revision