static nsDependentSingleFragmentSubstring GetDependentString(const PRUnichar* aBuf) { NS_ASSERTION(aBuf, "Cannot work on null buffer!"); const PRUnichar* buf = StrPtr(aBuf); return Substring(buf, buf + Length(aBuf)); }
inline nsDependentSingleFragmentSubstring nsHTMLValue::GetDependentString() const { NS_ASSERTION(GetUnitClass() == HTMLUNIT_STRING, "Some dork called GetDependentString() on a non-string!"); static const PRUnichar blankStr[] = { '\0' }; return mValue.mString ? nsCheapStringBufferUtils::GetDependentString(mValue.mString) : Substring(blankStr, blankStr); }
  static nsDependentSingleFragmentSubstring GetDependentString(const PRUnichar* aBuf) {    NS_ASSERTION(aBuf, "Cannot work on null buffer!");    const PRUnichar* buf = StrPtr(aBuf);    return Substring(buf, buf + Length(aBuf));  }