#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 {
String EscapeSelectorSpecialCharacters(const String& target_text) { … }
bool IsValidTerm(const String& term) { … }
bool IsPrefix(const String& term) { … }
bool IsSuffix(const String& term) { … }
}
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 { … }
}