if (Substring(aBuffer, 1, 11).Equals(NS_LITERAL_STRING("SHORT NAME="))) { const nsAString& data = Substring(aBuffer, 12, aBuffer.Length() - 12); *aData = ToNewUnicode(data);
if (Substring(aBuffer, 1, 11).EqualsLiteral("SHORT NAME=")) { aResult.Assign(Substring(aBuffer, 12, aBuffer.Length() - 12));
static LineType GetLineType(nsAString& aBuffer, PRUnichar** aData){  if (Substring(aBuffer, 0, 7).Equals(NS_LITERAL_STRING("#FOLDER")))    return LineType_FOLDER;  if (Substring(aBuffer, 0, 4).Equals(NS_LITERAL_STRING("#URL")))    return LineType_BOOKMARK;  if (Substring(aBuffer, 0, 1).Equals(NS_LITERAL_STRING("-")))    return LineType_SEPARATOR;  if (Substring(aBuffer, 1, 5).Equals(NS_LITERAL_STRING("NAME="))) {    const nsAString& data = Substring(aBuffer, 6, aBuffer.Length() - 6);    *aData = ToNewUnicode(data);    return LineType_NAME;  }  if (Substring(aBuffer, 1, 4).Equals(NS_LITERAL_STRING("URL="))) {    const nsAString& data = Substring(aBuffer, 5, aBuffer.Length() - 5);    *aData = ToNewUnicode(data);    return LineType_URL;  }  if (Substring(aBuffer, 1, 12).Equals(NS_LITERAL_STRING("DESCRIPTION="))) {    const nsAString& data = Substring(aBuffer, 13, aBuffer.Length() - 13);    *aData = ToNewUnicode(data);    return LineType_DESCRIPTION;  }  if (Substring(aBuffer, 1, 11).Equals(NS_LITERAL_STRING("SHORT NAME="))) {    const nsAString& data = Substring(aBuffer, 12, aBuffer.Length() - 12);    *aData = ToNewUnicode(data);    return LineType_KEYWORD;  }  if (Substring(aBuffer, 1, 15).Equals(NS_LITERAL_STRING("ON PERSONALBAR="))) {    const nsAString& data = Substring(aBuffer, 16, aBuffer.Length() - 16);    *aData = ToNewUnicode(data);    return LineType_ONTOOLBAR;  }  if (aBuffer.IsEmpty())    return LineType_NL; // Newlines separate bookmarks  return LineType_OTHER;}