#include "third_party/blink/renderer/core/editing/visible_units.h"
#include "third_party/blink/renderer/core/editing/editing_utilities.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/iterators/text_iterator.h"
#include "third_party/blink/renderer/core/editing/text_offset_mapping.h"
#include "third_party/blink/renderer/core/editing/text_segments.h"
#include "third_party/blink/renderer/core/editing/visible_position.h"
#include "third_party/blink/renderer/core/layout/layout_block_flow.h"
#include "third_party/blink/renderer/platform/instrumentation/tracing/trace_event.h"
#include "third_party/blink/renderer/platform/text/character.h"
#include "third_party/blink/renderer/platform/text/text_boundaries.h"
#include "third_party/blink/renderer/platform/text/text_break_iterator.h"
namespace blink {
namespace {
static bool IsLineBreak(UChar ch) { … }
PositionInFlatTree EndOfWordPositionInternal(const PositionInFlatTree& position,
WordSide side) { … }
PositionInFlatTree NextWordPositionInternal(
const PositionInFlatTree& position,
PlatformWordBehavior platform_word_behavior) { … }
PositionInFlatTree PreviousWordPositionInternal(
const PositionInFlatTree& position) { … }
PositionInFlatTree StartOfWordPositionInternal(
const PositionInFlatTree& position,
WordSide side) { … }
}
PositionInFlatTree EndOfWordPosition(const PositionInFlatTree& start,
WordSide side) { … }
Position EndOfWordPosition(const Position& position, WordSide side) { … }
PositionInFlatTreeWithAffinity NextWordPosition(
const PositionInFlatTree& start,
PlatformWordBehavior platform_word_behavior) { … }
PositionWithAffinity NextWordPosition(
const Position& start,
PlatformWordBehavior platform_word_behavior) { … }
PositionInFlatTreeWithAffinity PreviousWordPosition(
const PositionInFlatTree& start) { … }
PositionWithAffinity PreviousWordPosition(const Position& start) { … }
PositionInFlatTree StartOfWordPosition(const PositionInFlatTree& position,
WordSide side) { … }
Position StartOfWordPosition(const Position& position, WordSide side) { … }
PositionInFlatTree MiddleOfWordPosition(const PositionInFlatTree& word_start,
const PositionInFlatTree& word_end) { … }
Position MiddleOfWordPosition(const Position& word_start,
const Position& word_end) { … }
bool IsWordBreak(UChar ch) { … }
}