// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/compose/core/browser/compose_utils.h" #include "base/strings/string_tokenizer.h" #include "base/third_party/icu/icu_utf.h" namespace compose { namespace { std::string RemoveLastCharIfInvalid(std::string str) { … } const std::string kWhitespace = …; } bool IsWordCountWithinBounds(const std::string& prompt, unsigned int minimum, unsigned int maximum) { … } std::string GetTrimmedPageText(std::string inner_text, int max_length, int element_offset, int header_length) { … } } // namespace compose