// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "pdf/accessibility_helper.h" #include <stdint.h> #include <optional> #include <vector> #include "base/numerics/safe_math.h" #include "pdf/accessibility_structs.h" namespace chrome_pdf { bool IsCharWithinTextRun(const AccessibilityTextRunInfo& text_run, uint32_t text_run_start_char_index, uint32_t char_index) { … } // If a valid text run range is not found for the char range then return the // fallback value. AccessibilityTextRunRangeInfo GetEnclosingTextRunRangeForCharRange( const std::vector<AccessibilityTextRunInfo>& text_runs, int start_char_index, int char_count) { … } } // namespace chrome_pdf