rv = mProps->GetStringProperty(nsAutoString(aName), aResult); #ifdef DEBUG_tao_ char *s = ToNewCString(aResult), *ss = ToNewCString(aName); printf("\n** GetStringFromName: aName=%s, aResult=%s, len=%d\n", ss?ss:"null", s?s:"null", aResult.Length()); delete s; #endif
nsAutoCMonitor(this); *aResult = nsnull; nsAutoString tmpstr; rv = GetStringFromName(nsDependentString(aName), tmpstr); if (NS_SUCCEEDED(rv)) *aResult = ToNewUnicode(tmpstr);
nsStringBundle::GetStringFromName(const nsAReadableString& aName,                                  nsString& aResult){  nsresult rv;  rv = mProps->GetStringProperty(nsAutoString(aName), aResult);#ifdef DEBUG_tao_  char *s = ToNewCString(aResult),       *ss = ToNewCString(aName);  printf("\n** GetStringFromName: aName=%s, aResult=%s, len=%d\n",          ss?ss:"null", s?s:"null", aResult.Length());  delete s;#endif /* DEBUG_tao_ */  return rv;}