nsDependentSubstring external 编辑
substrings
Method Overview
Base Classes
Data Members
No public members.
Methods
Constructors
void nsDependentSubstring_external()
- sourcevoid nsDependentSubstring_external(const PRUnichar*, PRUint32)
- sourceParameters
- PRUnichar aStart
- PRUint32 aLength
void nsDependentSubstring_external(const nsAString&, PRUint32)
- sourceParameters
- nsAString aStr
- PRUint32 aStartPos
void nsDependentSubstring_external(const nsAString&, PRUint32, PRUint32)
- sourceParameters
- nsAString aStr
- PRUint32 aStartPos
- PRUint32 aLength
Rebind
void Rebind(const PRUnichar*, PRUint32)
- sourceParameters
- PRUnichar aStart
- PRUint32 aLength
BeginReading
PRUint32 BeginReading(const PRUnichar**, const PRUnichar**) const
- sourceReturns 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
- sourceParameters
- PRUint32 aPos
operator[]
PRUnichar operator[](PRUint32) const
- sourceParameters
- PRUint32 aPos
First
PRUnichar First() const
- source
BeginWriting
PRUint32 BeginWriting(PRUnichar**, PRUnichar**, PRUint32)
- sourceGet 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)
- sourceParameters
- PRUint32 <anonymous>
EndWriting
PRUnichar EndWriting()
- source
SetLength
PRBool SetLength(PRUint32)
- sourceParameters
- PRUint32 aLen
Length
PRUint32 Length() const
- source
IsEmpty
PRBool IsEmpty() const
- source
SetIsVoid
void SetIsVoid(PRBool)
- sourceParameters
- PRBool val
IsVoid
PRBool IsVoid() const
- source
Assign
void Assign(const nsAString&)
- sourceParameters
- nsAString aString
void Assign(const PRUnichar*, PRUint32)
- sourceParameters
- PRUnichar aData
- PRUint32 aLength
void Assign(PRUnichar)
- sourceParameters
- PRUnichar aChar
AssignLiteral
void AssignLiteral(const char*)
- sourceParameters
- char aStr
operator=
nsAString operator=(const nsAString&)
- sourceParameters
- nsAString aString
nsAString operator=(const PRUnichar*)
- sourceParameters
- PRUnichar aPtr
nsAString operator=(PRUnichar)
- sourceParameters
- PRUnichar aChar
Replace
void Replace(PRUint32, PRUint32, const PRUnichar*, PRUint32)
- sourceParameters
- PRUint32 cutStart
- PRUint32 cutLength
- PRUnichar data
- PRUint32 length
void Replace(PRUint32, PRUint32, PRUnichar)
- sourceParameters
- PRUint32 cutStart
- PRUint32 cutLength
- PRUnichar c
void Replace(PRUint32, PRUint32, const nsAString&)
- sourceParameters
- PRUint32 cutStart
- PRUint32 cutLength
- nsAString readable
Append
void Append(PRUnichar)
- sourceParameters
- PRUnichar c
void Append(const PRUnichar*, PRUint32)
- sourceParameters
- PRUnichar data
- PRUint32 length
void Append(const nsAString&)
- sourceParameters
- nsAString readable
AppendLiteral
void AppendLiteral(const char*)
- sourceParameters
- char aASCIIStr
operator+=
nsAString operator+=(PRUnichar)
- sourceParameters
- PRUnichar c
nsAString operator+=(const PRUnichar*)
- sourceParameters
- PRUnichar data
nsAString operator+=(const nsAString&)
- sourceParameters
- nsAString readable
Insert
void Insert(PRUnichar, PRUint32)
- sourceParameters
- PRUnichar c
- PRUint32 pos
void Insert(const PRUnichar*, PRUint32, PRUint32)
- sourceParameters
- PRUnichar data
- PRUint32 pos
- PRUint32 length
void Insert(const nsAString&, PRUint32)
- sourceParameters
- nsAString readable
- PRUint32 pos
Cut
void Cut(PRUint32, PRUint32)
- sourceParameters
- PRUint32 cutStart
- PRUint32 cutLength
Truncate
void Truncate()
- source
StripChars
void StripChars(const char*)
- sourceRemove all occurrences of characters in aSet from the string.
Parameters
- char aSet
StripWhitespace
void StripWhitespace()
- sourceStrip whitespace characters from the string.
Trim
void Trim(const char*, PRBool, PRBool)
- sourceParameters
- char aSet
- PRBool aLeading
- PRBool aTrailing
DefaultComparator
PRInt32 DefaultComparator(const PRUnichar*, const PRUnichar*, PRUint32)
- sourceParameters
- PRUnichar a
- PRUnichar b
- PRUint32 length
Compare(const PRUnichar*, PRInt32 (*)
PRInt32 Compare(const PRUnichar*, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const
- sourceParameters
- PRUnichar other
- PRInt32* c
Compare(const nsAString&, PRInt32 (*)
PRInt32 Compare(const nsAString&, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const
- sourceParameters
- nsAString other
- PRInt32* c
Equals(const PRUnichar*, PRInt32 (*)
PRBool Equals(const PRUnichar*, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const
- sourceParameters
- PRUnichar other
- PRInt32* c
Equals(const nsAString&, PRInt32 (*)
PRBool Equals(const nsAString&, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const
- sourceParameters
- nsAString other
- PRInt32* c
operator<
PRBool operator<(const nsAString&) const
- sourceParameters
- nsAString other
PRBool operator<(const PRUnichar*) const
- sourceParameters
- PRUnichar other
operator<=
PRBool operator<=(const nsAString&) const
- sourceParameters
- nsAString other
PRBool operator<=(const PRUnichar*) const
- sourceParameters
- PRUnichar other
operator==
PRBool operator==(const nsAString&) const
- sourceParameters
- nsAString other
PRBool operator==(const PRUnichar*) const
- sourceParameters
- PRUnichar other
operator>=
PRBool operator>=(const nsAString&) const
- sourceParameters
- nsAString other
PRBool operator>=(const PRUnichar*) const
- sourceParameters
- PRUnichar other
operator>
PRBool operator>(const nsAString&) const
- sourceParameters
- nsAString other
PRBool operator>(const PRUnichar*) const
- sourceParameters
- PRUnichar other
operator!=
PRBool operator!=(const nsAString&) const
- sourceParameters
- nsAString other
PRBool operator!=(const PRUnichar*) const
- sourceParameters
- PRUnichar other
EqualsLiteral
PRBool EqualsLiteral(const char*) const
- sourceParameters
- char aASCIIString
LowerCaseEqualsLiteral
PRBool LowerCaseEqualsLiteral(const char*) const
- sourceCase-insensitive match this string to a lowercase ASCII string.
Parameters
- char aASCIIString
Find(const nsAString&, PRInt32 (*)
PRInt32 Find(const nsAString&, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const
- sourceFind the first occurrence of aStr in this string. @return the offset of aStr, or -1 if not found
Parameters
- nsAString aStr
- PRInt32* c
Find(const nsAString&, PRUint32, PRInt32 (*)
PRInt32 Find(const nsAString&, PRUint32, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const
- sourceFind 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* c
Find
PRInt32 Find(const char*, PRBool) const
- sourceFind 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
- sourceParameters
- char aStr
- PRUint32 aOffset
- PRBool aIgnoreCase
RFind(const nsAString&, PRInt32 (*)
PRInt32 RFind(const nsAString&, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const
- sourceFind 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* c
RFind(const nsAString&, PRInt32, PRInt32 (*)
PRInt32 RFind(const nsAString&, PRInt32, PRInt32 (*)(const PRUnichar*, const PRUnichar*, PRUint32)) const
- sourceFind 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* c
RFind
PRInt32 RFind(const char*, PRBool) const
- sourceFind 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
- sourceFind 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
- sourceSearch 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
- sourceSearch 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)
- sourceAppend a string representation of a number.
Parameters
- int aInt
- PRInt32 aRadix
ToInteger
PRInt32 ToInteger(nsresult*, PRUint32) const
- sourceConvert this string to an integer. @param aErrorCode pointer to contain result code. @param aRadix must be 10 or 16
Parameters
- nsresult aErrorCode
- PRUint32 aRadix
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论