/vbox/src/libs/xpcom18a4/xpcom/ds/ |
H A D | nsAtomService.cpp | 48 nsAtomService::GetAtom(const PRUnichar *aString, nsIAtom ** aResult) argument 50 *aResult = NS_NewAtom(aString); 59 nsAtomService::GetPermanentAtom(const PRUnichar *aString, nsIAtom ** aResult) argument 61 *aResult = NS_NewPermanentAtom(aString);
|
H A D | nsCRT.cpp | 446 * @param aString is null terminated to be tested 449 PRBool nsCRT::IsAscii(const PRUnichar *aString) { argument 450 while(*aString) { 451 if( 0x0080 <= *aString) 453 aString++; 461 * @param aString is null terminated to be tested 464 PRBool nsCRT::IsAscii(const char *aString) { argument 465 while(*aString) { 466 if( 0x80 & *aString) 468 aString 480 IsAscii(const char* aString, PRUint32 aLength) argument [all...] |
H A D | nsVoidArray.h | 215 void StringAt(PRInt32 aIndex, nsAString& aString) const; 221 PRBool InsertStringAt(const nsAString& aString, PRInt32 aIndex); 223 PRBool ReplaceStringAt(const nsAString& aString, PRInt32 aIndex); 225 PRBool AppendString(const nsAString& aString) { argument 226 return InsertStringAt(aString, Count()); 229 PRBool RemoveString(const nsAString& aString);
|
H A D | nsAtomTable.cpp | 331 void* AtomImpl::operator new ( size_t size, const nsACString& aString ) CPP_THROW_NEW 342 size += aString.Length() * sizeof(char); 347 *copy_string(aString.BeginReading(fromBegin), aString.EndReading(fromEnd), toBegin) = '\0'; 382 AtomImpl::EqualsUTF8(const nsACString& aString, PRBool* aResult) argument 384 *aResult = aString.Equals(mString); 389 AtomImpl::Equals(const nsAString& aString, PRBool* aResult) argument 391 *aResult = NS_ConvertUTF16toUTF8(aString).Equals(mString); 439 nsStaticAtomWrapper::EqualsUTF8(const nsACString& aString, PRBool* aResult) argument 441 *aResult = aString 446 Equals(const nsAString& aString, PRBool* aResult) argument 483 GetAtomHashEntry(const char* aString) argument [all...] |
H A D | nsPersistentProperties.cpp | 62 ArenaStrdup(const nsAFlatString& aString, PLArenaPool* aArena) argument 66 PRInt32 len = (aString.Length()+1) * sizeof(PRUnichar); 70 memcpy(mem, aString.get(), len); 76 ArenaStrdup(const nsAFlatCString& aString, PLArenaPool* aArena) argument 80 PRInt32 len = (aString.Length()+1) * sizeof(char); 84 memcpy(mem, aString.get(), len);
|
H A D | nsVoidArray.cpp | 751 nsStringArray::StringAt(PRInt32 aIndex, nsAString& aString) const 756 aString.Assign(*string); 760 aString.Truncate(); 791 nsStringArray::InsertStringAt(const nsAString& aString, PRInt32 aIndex) argument 793 nsString* string = new nsString(aString); 803 nsStringArray::ReplaceStringAt(const nsAString& aString, argument 809 *string = aString; 816 nsStringArray::RemoveString(const nsAString& aString) argument 818 PRInt32 index = IndexOf(aString);
|
H A D | nsVariant.cpp | 52 static nsresult String2Double(const char* aString, double* retval) argument 55 double value = PR_strtod(aString, &next); 56 if(next == aString) 62 static nsresult AString2Double(const nsAString& aString, double* retval) argument 64 char* pChars = ToNewCString(aString); 72 static nsresult AUTF8String2Double(const nsAUTF8String& aString, double* retval) argument 74 return String2Double(PromiseFlatUTF8String(aString).get(), retval); 77 static nsresult ACString2Double(const nsACString& aString, double* retval) argument 79 return String2Double(PromiseFlatCString(aString).get(), retval);
|
/vbox/src/VBox/Frontends/VirtualBox/src/platform/darwin/ |
H A D | VBoxCocoaHelper.h | 34 inline NSString *darwinQStringToNSString (const QString &aString) argument 36 return [reinterpret_cast<const NSString *>(CFStringCreateWithCharacters (0, reinterpret_cast<const UniChar *> (aString.unicode()), 37 aString.length())) autorelease]; 40 inline QString darwinNSStringToQString (const NSString *aString) argument 42 CFStringRef str = reinterpret_cast<const CFStringRef> (aString);
|
/vbox/src/libs/xpcom18a4/xpcom/tests/ |
H A D | TestPermanentAtoms.cpp | 52 static void AssertString(nsIAtom *aAtom, const nsACString& aString) argument 56 Assert(nsDependentCString(str) == aString, "string is correct");
|
H A D | TestHashtables.cpp | 236 NS_IMETHOD SetString(const nsACString& /*in*/ aString); 237 NS_IMETHOD GetString(nsACString& /*out*/ aString); 333 IFoo::SetString(const nsACString& aString) argument 335 mString = aString; 340 IFoo::GetString(nsACString& aString) argument 342 aString = mString;
|
/vbox/src/libs/xpcom18a4/xpcom/string/public/ |
H A D | nsEmbedString.h | 56 nsEmbedString(const self_type& aString) argument 62 NS_StringCopy(*this, aString); 91 self_type& operator=(const self_type& aString) { Assign(aString); return *this; } argument 111 nsEmbedCString(const self_type& aString) argument 117 NS_CStringCopy(*this, aString); 152 self_type& operator=(const self_type& aString) { Assign(aString); return *this; } argument
|
H A D | nsString.h | 90 NS_LossyConvertUTF16toASCII( const PRUnichar* aString ) 92 LossyAppendUTF16toASCII(aString, *this); 95 NS_LossyConvertUTF16toASCII( const PRUnichar* aString, PRUint32 aLength ) argument 97 LossyAppendUTF16toASCII(Substring(aString, aString + aLength), *this); 101 NS_LossyConvertUTF16toASCII( const nsAString& aString ) 103 LossyAppendUTF16toASCII(aString, *this); 145 NS_ConvertUTF16toUTF8( const PRUnichar* aString ) 147 AppendUTF16toUTF8(aString, *this); 150 NS_ConvertUTF16toUTF8( const PRUnichar* aString, PRUint3 argument [all...] |
H A D | nsTString.h | 143 * @param aString is substring to be sought in this 151 NS_COM PRInt32 Find( const nsCString& aString, PRBool aIgnoreCase=PR_FALSE, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; 152 NS_COM PRInt32 Find( const char* aString, PRBool aIgnoreCase=PR_FALSE, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; 155 NS_COM PRInt32 Find( const nsAFlatString& aString, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; 156 NS_COM PRInt32 Find( const PRUnichar* aString, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; 163 * @param aString is substring to be sought in this 172 NS_COM PRInt32 RFind( const nsCString& aString, PRBool aIgnoreCase=PR_FALSE, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; 176 NS_COM PRInt32 RFind( const nsAFlatString& aString, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; 177 NS_COM PRInt32 RFind( const PRUnichar* aString, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; 199 * @param aString contain 206 FindCharInSet( const self_type& aString, PRInt32 aOffset=0 ) const argument 227 RFindCharInSet( const self_type& aString, PRInt32 aOffset=-1 ) const argument 256 EqualsIgnoreCase( const char* aString, PRInt32 aCount=-1 ) const argument [all...] |
H A D | nsStringAPI.h | 688 NS_HIDDEN_(void) Assign(const self_type& aString) argument 690 NS_StringCopy(*this, aString); 701 NS_HIDDEN_(self_type&) operator=(const self_type& aString) { Assign(aString); return *this; } argument 770 NS_HIDDEN_(void) Assign(const self_type& aString) argument 772 NS_CStringCopy(*this, aString); 783 NS_HIDDEN_(self_type&) operator=(const self_type& aString) { Assign(aString); return *this; } argument
|
/vbox/src/libs/xpcom18a4/xpcom/io/ |
H A D | nsUnicharInputStream.cpp | 55 StringUnicharInputStream(nsString* aString); 75 StringUnicharInputStream::StringUnicharInputStream(nsString* aString) argument 77 mString = aString; 79 mLen = aString->Length(); 154 nsString* aString) 156 NS_PRECONDITION(nsnull != aString, "null ptr"); 158 if ((nsnull == aString) || (nsnull == aInstancePtrResult)) { 162 StringUnicharInputStream* it = new StringUnicharInputStream(aString); 153 NS_NewStringUnicharInputStream(nsIUnicharInputStream** aInstancePtrResult, nsString* aString) argument
|
H A D | nsBinaryStream.cpp | 174 nsBinaryOutputStream::WriteStringZ(const char *aString) argument 179 length = strlen(aString); 182 return WriteFully(aString, length); 186 nsBinaryOutputStream::WriteWStringZ(const PRUnichar* aString) argument 191 length = nsCRT::strlen(aString); 200 rv = WriteBytes(NS_REINTERPRET_CAST(const char*, aString), byteCount); 211 NS_ASSERTION((PRUptrdiff(aString) & 0x1) == 0, "aString not properly aligned"); 213 copy[i] = NS_SWAP16(aString[i]); 223 nsBinaryOutputStream::WriteUtf8Z(const PRUnichar* aString) argument 230 WriteBytes(const char *aString, PRUint32 aLength) argument 462 ReadCString(nsACString& aString) argument 575 ReadString(nsAString& aString) argument [all...] |
/vbox/src/libs/xpcom18a4/xpcom/string/src/ |
H A D | nsTStringObsolete.cpp | 49 nsTString_CharT::Find( const nsCString& aString, PRBool aIgnoreCase, PRInt32 aOffset, PRInt32 aCount) const argument 52 Find_ComputeSearchRange(mLength, aString.Length(), aOffset, aCount); 54 PRInt32 result = FindSubstring(mData + aOffset, aCount, aString.get(), aString.Length(), aIgnoreCase); 61 nsTString_CharT::Find( const char* aString, PRBool aIgnoreCase, PRInt32 aOffset, PRInt32 aCount) const argument 63 return Find(nsDependentCString(aString), aIgnoreCase, aOffset, aCount); 75 nsTString_CharT::RFind( const nsCString& aString, PRBool aIgnoreCase, PRInt32 aOffset, PRInt32 aCount) const argument 78 RFind_ComputeSearchRange(mLength, aString.Length(), aOffset, aCount); 80 PRInt32 result = RFindSubstring(mData + aOffset, aCount, aString.get(), aString 87 RFind( const char* aString, PRBool aIgnoreCase, PRInt32 aOffset, PRInt32 aCount) const argument [all...] |
H A D | nsStringObsolete.cpp | 423 * @param aString is the buffer to be manipulated 431 CompressChars1(char* aString,PRUint32 aLength,const char* aSet){ argument 433 char* from = aString; 434 char* end = aString + aLength; 439 if(aSet && aString && (0 < aLength)){ 459 return to - aString; 468 * @param aString is the buffer to be manipulated 476 CompressChars2(PRUnichar* aString,PRUint32 aLength,const char* aSet){ argument 478 PRUnichar* from = aString; 484 if(aSet && aString 519 StripChars1(char* aString,PRUint32 aLength,const char* aSet) argument 553 StripChars2(PRUnichar* aString,PRUint32 aLength,const char* aSet) argument 1006 Find( const nsAFlatString& aString, PRInt32 aOffset, PRInt32 aCount ) const argument 1018 Find( const PRUnichar* aString, PRInt32 aOffset, PRInt32 aCount ) const argument 1024 RFind( const nsAFlatString& aString, PRInt32 aOffset, PRInt32 aCount ) const argument 1036 RFind( const PRUnichar* aString, PRInt32 aOffset, PRInt32 aCount ) const argument 1061 Compare( const char* aString, PRBool aIgnoreCase, PRInt32 aCount ) const argument 1090 EqualsIgnoreCase( const char* aString, PRInt32 aCount ) const argument [all...] |
/vbox/src/VBox/Main/include/ |
H A D | Matching.h | 481 Matchable (const Bstr &aString) argument 482 : F (aString), mString (aString) {} 484 Matchable (CBSTR aString) argument 485 : F (Bstr (aString)), mString (aString) {} 491 Matchable &operator= (const Bstr &aString) argument 493 F::operator= (aString); 494 mString = aString; 498 Matchable &operator= (CBSTR aString) argument [all...] |
/vbox/src/libs/xpcom18a4/java/src/ |
H A D | nsJavaXPCOMBindingUtils.cpp | 1006 jstring_to_nsAString(JNIEnv* env, jstring aString) argument 1009 if (aString) { 1010 buf = env->GetStringChars(aString, nsnull); 1017 if (aString) { 1018 env->ReleaseStringChars(aString, buf); 1028 jstring_to_nsACString(JNIEnv* env, jstring aString) argument 1031 if (aString) { 1032 buf = env->GetStringUTFChars(aString, nsnull); 1039 if (aString) { 1040 env->ReleaseStringUTFChars(aString, bu [all...] |