39 mStringArray.InsertElementsAt(0, *aStringArray);
45 for ( PRUint32 index = 0; index < aStringArray->Length(); index ++ ) {
46 mStringArray.AppendElement(NS_ConvertUTF8toUTF16((*aStringArray)[index]));
51 sbTArrayStringEnumerator::HasMore(PRBool *_retval)
53 *_retval = mNextIndex < mStringArray.Length();
58 sbTArrayStringEnumerator::GetNext(nsAString& _retval)
60 if (mNextIndex < mStringArray.Length()) {
61 _retval = mStringArray[mNextIndex];
66 return NS_ERROR_NOT_AVAILABLE;
75 for ( PRUint32 index = 0; index < aStringArray->Length(); index ++ ) {
76 mCStringArray.AppendElement(NS_ConvertUTF16toUTF8((*aStringArray)[index]));
83 mCStringArray.InsertElementsAt(0, *aCStringArray);
87 sbTArrayCStringEnumerator::HasMore(PRBool *_retval)
89 *_retval = mNextIndex < mCStringArray.Length();
94 sbTArrayCStringEnumerator::GetNext(nsACString& _retval)
96 if (mNextIndex < mCStringArray.Length()) {
97 _retval = mCStringArray[mNextIndex];
102 return NS_ERROR_NOT_AVAILABLE;
NS_DECL_ISUPPORTS NS_DECL_NSIUTF8STRINGENUMERATOR sbTArrayCStringEnumerator(const sbStringArray *aStringArray)
NS_IMPL_ISUPPORTS1(sbDeviceCapabilitiesUtils, sbIDeviceCapabilitiesUtils) sbDeviceCapabilitiesUtils
sbTArrayStringEnumerator(const sbStringArray *aStringArray)