/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. *
*/
// Don't add search data elements that don't have valid data if (eNodeType != sw::search::NodeType::Undefined && nIndex >= SwNodeOffset(0))
{
OUString sObjectName; if (!sJsonObjectName.empty())
{
OString sObjectNameOString(sJsonObjectName);
sObjectName = OStringToOUString(sObjectNameOString, RTL_TEXTENCODING_UTF8);
}
/** Trying to parse the payload as XML * * Returns true if parsing was successful and the payload was identified as XML, else false
*/ bool SearchResultLocator::tryParseXML(constchar* pPayload,
std::vector<sw::search::SearchIndexData>& rDataVector)
{ const OString aPayloadString(pPayload);
// Try parse the payload as JSON, if not recognised as JSON, try parse // it as XML
tryParseJSON(pPayload, aDataVector) || tryParseXML(pPayload, aDataVector);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.