NS_IMETHODIMP nsRegistry::SetString(nsRegistryKey baseKey, const PRUnichar *valname, const PRUnichar *value) { if ( !valname || ! value ) return NS_ERROR_NULL_POINTER;  return SetStringUTF8( baseKey, NS_ConvertUCS2toUTF8(valname).get(), NS_ConvertUCS2toUTF8(value).get() );
NS_IMETHODIMP nsRegistry::SetString( nsRegistryKey baseKey, const char *path, const char *value ) { REGERR err = REGERR_OK;  PR_Lock(mregLock); err = NR_RegSetEntryString( mReg,(RKEY)baseKey,(char*)path,(char*)value ); PR_Unlock(mregLock);  return regerr2nsresult( err );
NS_IMETHODIMP nsRegistry::SetString(nsRegistryKey baseKey, const PRUnichar *valname, const PRUnichar *value){    if ( !valname || ! value )        return NS_ERROR_NULL_POINTER;    return SetStringUTF8( baseKey,                          NS_ConvertUCS2toUTF8(valname).get(),                          NS_ConvertUCS2toUTF8(value).get() );}