operator[]

Parameters

First

BeginWriting

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

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

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

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.