Bug 1295762 - Part 1: Implement rust bindings to XPCOM's string types, r=froydnj

MozReview-Commit-ID: 7fnWSc3AzlR
This commit is contained in:
Michael Layzell
2016-08-16 18:05:05 -04:00
parent 163973d51c
commit cc2ec32acb
15 changed files with 999 additions and 0 deletions

View File

@@ -1363,3 +1363,17 @@ AppendUCS4ToUTF16(const uint32_t aSource, nsAString& aDest)
aDest.Append(L_SURROGATE(aSource));
}
}
extern "C" {
void Gecko_AppendUTF16toCString(nsACString* aThis, const nsAString* aOther)
{
AppendUTF16toUTF8(*aOther, *aThis);
}
void Gecko_AppendUTF8toString(nsAString* aThis, const nsACString* aOther)
{
AppendUTF8toUTF16(*aOther, *aThis);
}
}