Lines Matching defs:aSource

61 NS_COM void LossyCopyUTF16toASCII( const nsAString& aSource, nsACString& aDest );
62 NS_COM void CopyASCIItoUTF16( const nsACString& aSource, nsAString& aDest );
64 NS_COM void LossyCopyUTF16toASCII( const PRUnichar* aSource, nsACString& aDest );
65 NS_COM void CopyASCIItoUTF16( const char* aSource, nsAString& aDest );
67 NS_COM void CopyUTF16toUTF8( const nsAString& aSource, nsACString& aDest );
68 NS_COM void CopyUTF8toUTF16( const nsACString& aSource, nsAString& aDest );
70 NS_COM void CopyUTF16toUTF8( const PRUnichar* aSource, nsACString& aDest );
71 NS_COM void CopyUTF8toUTF16( const char* aSource, nsAString& aDest );
73 NS_COM void LossyAppendUTF16toASCII( const nsAString& aSource, nsACString& aDest );
74 NS_COM void AppendASCIItoUTF16( const nsACString& aSource, nsAString& aDest );
76 NS_COM void LossyAppendUTF16toASCII( const PRUnichar* aSource, nsACString& aDest );
77 NS_COM void AppendASCIItoUTF16( const char* aSource, nsAString& aDest );
79 NS_COM void AppendUTF16toUTF8( const nsAString& aSource, nsACString& aDest );
80 NS_COM void AppendUTF8toUTF16( const nsACString& aSource, nsAString& aDest );
82 NS_COM void AppendUTF16toUTF8( const PRUnichar* aSource, nsACString& aDest );
83 NS_COM void AppendUTF8toUTF16( const char* aSource, nsAString& aDest );
87 NS_COM void CopyUCS2toASCII( const nsAString& aSource, nsACString& aDest )
88 { LossyCopyUTF16toASCII(aSource, aDest); }
90 NS_COM void CopyASCIItoUCS2( const nsACString& aSource, nsAString& aDest )
91 { CopyASCIItoUTF16(aSource, aDest); }
94 * Returns a new |char| buffer containing a zero-terminated copy of |aSource|.
97 * Performs a lossy encoding conversion by chopping 16-bit wide characters down to 8-bits wide while copying |aSource| to your new buffer.
99 * The new buffer is zero-terminated, but that may not help you if |aSource| contains embedded nulls.
101 * @param aSource a 16-bit wide string
104 NS_COM char* ToNewCString( const nsAString& aSource );
108 * Returns a new |char| buffer containing a zero-terminated copy of |aSource|.
111 * The new buffer is zero-terminated, but that may not help you if |aSource| contains embedded nulls.
113 * @param aSource an 8-bit wide string
116 NS_COM char* ToNewCString( const nsACString& aSource );
119 * Returns a new |char| buffer containing a zero-terminated copy of |aSource|.
124 * copying |aSource| to your new buffer.
125 * The new buffer is zero-terminated, but that may not help you if |aSource|
128 * @param aSource a UTF-16 string (made of PRUnichar's)
133 NS_COM char* ToNewUTF8String( const nsAString& aSource, PRUint32 *aUTF8Count = nsnull );
138 * |aSource|.
142 * The new buffer is zero-terminated, but that may not help you if |aSource|
145 * @param aSource a UTF-16 string
148 NS_COM PRUnichar* ToNewUnicode( const nsAString& aSource );
152 * Returns a new |PRUnichar| buffer containing a zero-terminated copy of |aSource|.
155 * Performs an encoding conversion by 0-padding 8-bit wide characters up to 16-bits wide while copying |aSource| to your new buffer.
157 * The new buffer is zero-terminated, but that may not help you if |aSource| contains embedded nulls.
159 * @param aSource an 8-bit wide string (a C-string, NOT UTF-8)
162 NS_COM PRUnichar* ToNewUnicode( const nsACString& aSource );
166 * of |aSource|.
170 * while copying |aSource| to your new buffer. This conversion is well defined
172 * may not help you if |aSource| contains embedded nulls.
174 * @param aSource an 8-bit wide string, UTF-8 encoded
179 NS_COM PRUnichar* UTF8ToNewUnicode( const nsACString& aSource, PRUint32 *aUTF16Count = nsnull );
182 * Copies |aLength| 16-bit code units from the start of |aSource| to the
187 * @param aSource a UTF-16 string
193 NS_COM PRUnichar* CopyUnicodeTo( const nsAString& aSource,
276 * Converts case from string aSource to aDest.
278 NS_COM void ToUpperCase( const nsACString& aSource, nsACString& aDest );
280 NS_COM void ToLowerCase( const nsACString& aSource, nsACString& aDest );
297 inline PRBool FindInReadable( const nsAString& aPattern, const nsAString& aSource, const nsStringComparator& compare = nsDefaultStringComparator() )
300 aSource.BeginReading(start);
301 aSource.EndReading(end);
305 inline PRBool FindInReadable( const nsACString& aPattern, const nsACString& aSource, const nsCStringComparator& compare = nsDefaultCStringComparator() )
308 aSource.BeginReading(start);
309 aSource.EndReading(end);
347 StringBeginsWith( const nsAString& aSource, const nsAString& aSubstring,
351 StringBeginsWith( const nsACString& aSource, const nsACString& aSubstring,
355 StringEndsWith( const nsAString& aSource, const nsAString& aSubstring,
359 StringEndsWith( const nsACString& aSource, const nsACString& aSubstring,