chromium/third_party/blink/renderer/core/fragment_directive/text_fragment_selector.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/fragment_directive/text_fragment_selector.h"

#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {

namespace {

// Escapes special chars that can be part of text fragment directive, including
// hyphen (-), ampersand (&), and comma (,).
String EscapeSelectorSpecialCharacters(const String& target_text) {}

// Used after parsing out individual terms from the full string microsyntax to
// tell if the resulting string contains only valid characters.
bool IsValidTerm(const String& term) {}

bool IsPrefix(const String& term) {}

bool IsSuffix(const String& term) {}

}  // namespace

TextFragmentSelector TextFragmentSelector::FromTextDirective(
    const String& directive) {}

TextFragmentSelector::TextFragmentSelector(SelectorType type,
                                           const String& start,
                                           const String& end,
                                           const String& prefix,
                                           const String& suffix)
    :{}

TextFragmentSelector::TextFragmentSelector(SelectorType type) :{}

String TextFragmentSelector::ToString() const {}

}  // namespace blink