nsStringContainer (External)

  • Revision slug: nsStringContainer_(External)
  • Revision title: nsStringContainer (External)
  • Revision id: 118957
  • Created:
  • Creator: EndersTruth
  • Is current revision? No
  • Comment 115 words added, 124 words removed

Revision Content

Class Declaration

Method Overview

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

Base Classes

Data Members

No public members.

Methods

BeginReading

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

Parameters

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

EndReading

PRUnichar* EndReading() const - source

CharAt

PRUnichar CharAt(PRUint32) const - source

Parameters

  • PRUint32 aPos

operator[]

PRUnichar operator[](PRUint32) const - source

Parameters

  • PRUint32 aPos

First

PRUnichar First() const - source

BeginWriting

PRUint32 BeginWriting(PRUnichar**, PRUnichar**, 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

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

Parameters

  • PRUint32 <anonymous>

EndWriting

PRUnichar* 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 nsAString&) - source

Parameters

  • nsAString& aString
void Assign(const PRUnichar*, PRUint32) - source

Parameters

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

Parameters

  • PRUnichar aChar

AssignLiteral

void AssignLiteral(const char*) - source

Parameters

  • char* aStr

operator=

nsAString& operator=(const nsAString&) - source

Parameters

  • nsAString& aString
nsAString& operator=(const PRUnichar*) - source

Parameters

  • PRUnichar* aPtr
nsAString& operator=(PRUnichar) - source

Parameters

  • PRUnichar aChar

Replace

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

Parameters

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

Parameters

  • PRUint32 cutStart
  • PRUint32 cutLength
  • PRUnichar c
void Replace(PRUint32, PRUint32, const nsAString&) - source

Parameters

  • PRUint32 cutStart
  • PRUint32 cutLength
  • nsAString& readable

Append

void Append(PRUnichar) - source

Parameters

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

Parameters

  • PRUnichar* data
  • PRUint32 length
void Append(const nsAString&) - source

Parameters

  • nsAString& readable

AppendLiteral

void AppendLiteral(const char*) - source

Parameters

  • char* aASCIIStr

operator+=

nsAString& operator+=(PRUnichar) - source

Parameters

  • PRUnichar c
nsAString& operator+=(const PRUnichar*) - source

Parameters

  • PRUnichar* data
nsAString& operator+=(const nsAString&) - source

Parameters

  • nsAString& readable

Insert

void Insert(PRUnichar, PRUint32) - source

Parameters

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

Parameters

  • PRUnichar* data
  • PRUint32 pos
  • PRUint32 length
void Insert(const nsAString&, PRUint32) - source

Parameters

  • nsAString& 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 PRUnichar*, const PRUnichar*, PRUint32) - source

Parameters

  • PRUnichar* a
  • PRUnichar* b
  • PRUint32 length

Compare

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

Parameters

  • PRUnichar* other
  • PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c
PRInt32 Compare(const nsAString&, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const - source

Parameters

  • nsAString& other
  • PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c

Equals

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

Parameters

  • PRUnichar* other
  • PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c
PRBool Equals(const nsAString&, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const - source

Parameters

  • nsAString& other
  • PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c

operator<

PRBool operator<(const nsAString&) const - source

Parameters

  • nsAString& other
PRBool operator<(const PRUnichar*) const - source

Parameters

  • PRUnichar* other

operator<=

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

Parameters

  • nsAString& other
PRBool operator<=(const PRUnichar*) const - source

Parameters

  • PRUnichar* other

operator==

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

Parameters

  • nsAString& other
PRBool operator==(const PRUnichar*) const - source

Parameters

  • PRUnichar* other

operator>=

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

Parameters

  • nsAString& other
PRBool operator>=(const PRUnichar*) const - source

Parameters

  • PRUnichar* other

operator>

PRBool operator>(const nsAString&) const - source

Parameters

  • nsAString& other
PRBool operator>(const PRUnichar*) const - source

Parameters

  • PRUnichar* other

operator!=

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

Parameters

  • nsAString& other
PRBool operator!=(const PRUnichar*) const - source

Parameters

  • PRUnichar* other

EqualsLiteral

PRBool EqualsLiteral(const char*) const - source

Parameters

  • char* aASCIIString

LowerCaseEqualsLiteral

PRBool LowerCaseEqualsLiteral(const char*) const - source
Case-insensitive match this string to a lowercase ASCII string.

Parameters

  • char* aASCIIString

Find

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

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

Parameters

  • nsAString& aStr
  • PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c
PRInt32 Find(const nsAString&, PRUint32, PRInt32 (*)(const PRUnichar*, const PRUnichar*, 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

  • nsAString& aStr
  • PRUint32 aOffset
  • PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c
PRInt32 Find(const char*, PRBool) const - source
Find an ASCII string within this string.

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

Parameters

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

Parameters

  • char* aStr
  • PRUint32 aOffset
  • PRBool aIgnoreCase

RFind

PRInt32 RFind(const nsAString&, PRInt32 (*)(const PRUnichar*, const PRUnichar*, 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

  • nsAString& aStr
  • PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c
PRInt32 RFind(const nsAString&, PRInt32, PRInt32 (*)(const PRUnichar*, const PRUnichar*, 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

  • nsAString& aStr
  • PRInt32 aOffset
  • PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c
PRInt32 RFind(const char*, PRBool) const - source
Find the last occurrence of an ASCII string within this string.

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

Parameters

  • char* aStr
  • PRBool aIgnoreCase
PRInt32 RFind(const char*, PRInt32, PRBool) const - source
Find the last occurrence of an ASCII 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

  • char* aStr
  • PRInt32 aOffset
  • PRBool aIgnoreCase

FindChar

PRInt32 FindChar(PRUnichar, 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

  • PRUnichar aChar
  • PRUint32 aOffset

RFindChar

PRInt32 RFindChar(PRUnichar) 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

  • PRUnichar 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#l719">Class Declaration</a></p>
<h2>Method Overview</h2>
<table class="standard-table"> <tbody> <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="#operator%3D">operator=</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="#LowerCaseEqualsLiteral">LowerCaseEqualsLiteral</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>Base Classes</h2>
<ul> <li><a href="/en/nsAString">nsAString</a></li>
</ul>
<h2>Data Members</h2>
<p><em>No public members.</em></p>
<h2>Methods</h2>
<div>
<div>
<h3 id="BeginReading">BeginReading</h3>
<dl> <dt class="methodName" id="BeginReading(const PRUnichar**, const PRUnichar**) const"><code>PRUint32 BeginReading(const PRUnichar**, const PRUnichar**) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l70">source</a></dt> <dd> <pre class="doccomment">Returns the length, beginning, and end of a string in one operation.</pre> <h4>Parameters</h4> <ul> <li>PRUnichar** begin</li> <li>PRUnichar** end</li> </ul> </dd> <dt class="methodName" id="BeginReading() const"><code>PRUnichar* BeginReading() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l72">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="EndReading">EndReading</h3>
<dl> <dt class="methodName" id="EndReading() const"><code>PRUnichar* EndReading() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l73">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="CharAt">CharAt</h3>
<dl> <dt class="methodName" id="CharAt(PRUint32) const"><code>PRUnichar CharAt(PRUint32) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l75">source</a></dt> <dd> <h4>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>PRUnichar operator[](PRUint32) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l80">source</a></dt> <dd> <h4>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>PRUnichar First() const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l84">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="BeginWriting">BeginWriting</h3>
<dl> <dt class="methodName" id="BeginWriting(PRUnichar**, PRUnichar**, PRUint32)"><code>PRUint32 BeginWriting(PRUnichar**, PRUnichar**, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l99">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>Parameters</h4> <ul> <li>PRUnichar** begin</li> <li>PRUnichar** end</li> <li>PRUint32 newSize</li> </ul> </dd> <dt class="methodName" id="BeginWriting(PRUint32)"><code>PRUnichar* BeginWriting(PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l101">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUint32 &lt;anonymous&gt;</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="EndWriting">EndWriting</h3>
<dl> <dt class="methodName" id="EndWriting()"><code>PRUnichar* EndWriting()</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l102">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#l104">source</a></dt> <dd> <h4>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#l106">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#l112">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#l117">source</a></dt> <dd> <h4>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#l121">source</a></dt> <dd>
</dd></dl>
</div>
<div>
<h3 id="Assign">Assign</h3>
<dl> <dt class="methodName" id="Assign(const nsAString&amp;)"><code>void Assign(const nsAString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l126">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; aString</li> </ul> </dd> <dt class="methodName" id="Assign(const PRUnichar*, PRUint32)"><code>void Assign(const PRUnichar*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l130">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* aData</li> <li>PRUint32 aLength</li> </ul> </dd> <dt class="methodName" id="Assign(PRUnichar)"><code>void Assign(PRUnichar)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l134">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar 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#l139">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>char* aStr</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator=">operator=</h3>
<dl> <dt class="methodName" id="operator=(const nsAString&amp;)"><code>nsAString&amp; operator=(const nsAString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l141">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; aString</li> </ul> </dd> <dt class="methodName" id="operator=(const PRUnichar*)"><code>nsAString&amp; operator=(const PRUnichar*)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l142">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* aPtr</li> </ul> </dd> <dt class="methodName" id="operator=(PRUnichar)"><code>nsAString&amp; operator=(PRUnichar)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l143">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar aChar</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Replace">Replace</h3>
<dl> <dt class="methodName" id="Replace(PRUint32, PRUint32, const PRUnichar*, PRUint32)"><code>void Replace(PRUint32, PRUint32, const PRUnichar*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l145">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUint32 cutStart</li> <li>PRUint32 cutLength</li> <li>PRUnichar* data</li> <li>PRUint32 length</li> </ul> </dd> <dt class="methodName" id="Replace(PRUint32, PRUint32, PRUnichar)"><code>void Replace(PRUint32, PRUint32, PRUnichar)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l149">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUint32 cutStart</li> <li>PRUint32 cutLength</li> <li>PRUnichar c</li> </ul> </dd> <dt class="methodName" id="Replace(PRUint32, PRUint32, const nsAString&amp;)"><code>void Replace(PRUint32, PRUint32, const nsAString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l153">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUint32 cutStart</li> <li>PRUint32 cutLength</li> <li>nsAString&amp; readable</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Append">Append</h3>
<dl> <dt class="methodName" id="Append(PRUnichar)"><code>void Append(PRUnichar)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l160">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar c</li> </ul> </dd> <dt class="methodName" id="Append(const PRUnichar*, PRUint32)"><code>void Append(const PRUnichar*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l161">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* data</li> <li>PRUint32 length</li> </ul> </dd> <dt class="methodName" id="Append(const nsAString&amp;)"><code>void Append(const nsAString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l162">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&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#l163">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>char* aASCIIStr</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator+=">operator+=</h3>
<dl> <dt class="methodName" id="operator+=(PRUnichar)"><code>nsAString&amp; operator+=(PRUnichar)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l165">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar c</li> </ul> </dd> <dt class="methodName" id="operator+=(const PRUnichar*)"><code>nsAString&amp; operator+=(const PRUnichar*)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l166">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* data</li> </ul> </dd> <dt class="methodName" id="operator+=(const nsAString&amp;)"><code>nsAString&amp; operator+=(const nsAString&amp;)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l167">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; readable</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Insert">Insert</h3>
<dl> <dt class="methodName" id="Insert(PRUnichar, PRUint32)"><code>void Insert(PRUnichar, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l169">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar c</li> <li>PRUint32 pos</li> </ul> </dd> <dt class="methodName" id="Insert(const PRUnichar*, PRUint32, PRUint32)"><code>void Insert(const PRUnichar*, PRUint32, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l170">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* data</li> <li>PRUint32 pos</li> <li>PRUint32 length</li> </ul> </dd> <dt class="methodName" id="Insert(const nsAString&amp;, PRUint32)"><code>void Insert(const nsAString&amp;, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l171">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&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#l173">source</a></dt> <dd> <h4>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#l175">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#l180">source</a></dt> <dd> <pre class="doccomment">Remove all occurences of characters in aSet from the string.</pre> <h4>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#l185">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#l188">source</a></dt> <dd> <h4>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 PRUnichar*, const PRUnichar*, PRUint32)"><code>PRInt32 DefaultComparator(const PRUnichar*, const PRUnichar*, PRUint32)</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l199">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* a</li> <li>PRUnichar* b</li> <li>PRUint32 length</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Compare">Compare</h3>
<dl> <dt class="methodName" id="Compare(const PRUnichar*, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const"><code>PRInt32 Compare(const PRUnichar*, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l202">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* other</li> <li>PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Compare(const nsAString&amp;, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const"><code>PRInt32 Compare(const nsAString&amp;, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l205">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; other</li> <li>PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Equals">Equals</h3>
<dl> <dt class="methodName" id="Equals(const PRUnichar*, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const"><code>PRBool Equals(const PRUnichar*, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l208">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* other</li> <li>PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Equals(const nsAString&amp;, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const"><code>PRBool Equals(const nsAString&amp;, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l211">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; other</li> <li>PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator&lt;">operator&lt;</h3>
<dl> <dt class="methodName" id="operator&lt;(const nsAString&amp;) const"><code>PRBool operator&lt;(const nsAString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l213">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator&lt;(const PRUnichar*) const"><code>PRBool operator&lt;(const PRUnichar*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l217">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator&lt;=">operator&lt;=</h3>
<dl> <dt class="methodName" id="operator&lt;=(const nsAString&amp;) const"><code>PRBool operator&lt;=(const nsAString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l222">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator&lt;=(const PRUnichar*) const"><code>PRBool operator&lt;=(const PRUnichar*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l226">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator==">operator==</h3>
<dl> <dt class="methodName" id="operator==(const nsAString&amp;) const"><code>PRBool operator==(const nsAString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l231">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator==(const PRUnichar*) const"><code>PRBool operator==(const PRUnichar*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l235">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator>=">operator&gt;=</h3>
<dl> <dt class="methodName" id="operator>=(const nsAString&amp;) const"><code>PRBool operator&gt;=(const nsAString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l240">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator>=(const PRUnichar*) const"><code>PRBool operator&gt;=(const PRUnichar*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l244">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator>">operator&gt;</h3>
<dl> <dt class="methodName" id="operator>(const nsAString&amp;) const"><code>PRBool operator&gt;(const nsAString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l249">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator>(const PRUnichar*) const"><code>PRBool operator&gt;(const PRUnichar*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l253">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* other</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="operator!=">operator!=</h3>
<dl> <dt class="methodName" id="operator!=(const nsAString&amp;) const"><code>PRBool operator!=(const nsAString&amp;) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l258">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>nsAString&amp; other</li> </ul> </dd> <dt class="methodName" id="operator!=(const PRUnichar*) const"><code>PRBool operator!=(const PRUnichar*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l262">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>PRUnichar* 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#l267">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>char* aASCIIString</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="LowerCaseEqualsLiteral">LowerCaseEqualsLiteral</h3>
<dl> <dt class="methodName" id="LowerCaseEqualsLiteral(const char*) const"><code>PRBool LowerCaseEqualsLiteral(const char*) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l272">source</a></dt> <dd> <pre class="doccomment">Case-insensitive match this string to a lowercase ASCII string.</pre> <h4>Parameters</h4> <ul> <li>char* aASCIIString</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="Find">Find</h3>
<dl> <dt class="methodName" id="Find(const nsAString&amp;, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const"><code>PRInt32 Find(const nsAString&amp;, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l280">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>Parameters</h4> <ul> <li>nsAString&amp; aStr</li> <li>PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Find(const nsAString&amp;, PRUint32, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const"><code>PRInt32 Find(const nsAString&amp;, PRUint32, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l289">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>Parameters</h4> <ul> <li>nsAString&amp; aStr</li> <li>PRUint32 aOffset</li> <li>PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="Find(const char*, PRBool) const"><code>PRInt32 Find(const char*, PRBool) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l296">source</a></dt> <dd> <pre class="doccomment">Find an ASCII string within this string.

@return the offset of aStr, or -1 if not found.</pre> <h4>Parameters</h4> <ul> <li>char* aStr</li> <li>PRBool aIgnoreCase</li> </ul> </dd> <dt class="methodName" id="Find(const char*, PRUint32, PRBool) const"><code>PRInt32 Find(const char*, PRUint32, PRBool) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l299">source</a></dt> <dd> <h4>Parameters</h4> <ul> <li>char* aStr</li> <li>PRUint32 aOffset</li> <li>PRBool aIgnoreCase</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="RFind">RFind</h3>
<dl> <dt class="methodName" id="RFind(const nsAString&amp;, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const"><code>PRInt32 RFind(const nsAString&amp;, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l308">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>Parameters</h4> <ul> <li>nsAString&amp; aStr</li> <li>PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="RFind(const nsAString&amp;, PRInt32, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const"><code>PRInt32 RFind(const nsAString&amp;, PRInt32, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l320">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>Parameters</h4> <ul> <li>nsAString&amp; aStr</li> <li>PRInt32 aOffset</li> <li>PRInt32 (*)(PRUnichar*, PRUnichar*, PRUint32) c</li> </ul> </dd> <dt class="methodName" id="RFind(const char*, PRBool) const"><code>PRInt32 RFind(const char*, PRBool) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l328">source</a></dt> <dd> <pre class="doccomment">Find the last occurrence of an ASCII string within this string.

@return The offset of aStr from the beginning of the string,
or -1 if not found.</pre> <h4>Parameters</h4> <ul> <li>char* aStr</li> <li>PRBool aIgnoreCase</li> </ul> </dd> <dt class="methodName" id="RFind(const char*, PRInt32, PRBool) const"><code>PRInt32 RFind(const char*, PRInt32, PRBool) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l339">source</a></dt> <dd> <pre class="doccomment">Find the last occurrence of an ASCII 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>Parameters</h4> <ul> <li>char* aStr</li> <li>PRInt32 aOffset</li> <li>PRBool aIgnoreCase</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="FindChar">FindChar</h3>
<dl> <dt class="methodName" id="FindChar(PRUnichar, PRUint32) const"><code>PRInt32 FindChar(PRUnichar, PRUint32) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l350">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>Parameters</h4> <ul> <li>PRUnichar aChar</li> <li>PRUint32 aOffset</li> </ul> </dd>
</dl>
</div>
<div>
<h3 id="RFindChar">RFindChar</h3>
<dl> <dt class="methodName" id="RFindChar(PRUnichar) const"><code>PRInt32 RFindChar(PRUnichar) const</code> - <a class="loc external" href="http://hg.mozilla.org/mozilla-central/file/62fb8fbc417c/xpcom/glue/nsStringAPI.h#l359">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>Parameters</h4> <ul> <li>PRUnichar 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#l364">source</a></dt> <dd> <pre class="doccomment">Append a string representation of a number.</pre> <h4>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#l374">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>Parameters</h4> <ul> <li>nsresult* aErrorCode</li> <li>PRUint32 aRadix</li> </ul> </dd>
</dl>
</div>
</div>
Revert to this revision