| Index: chrome/browser/chromeos/drive/search_metadata.h
|
| diff --git a/chrome/browser/chromeos/drive/search_metadata.h b/chrome/browser/chromeos/drive/search_metadata.h
|
| index dbe0ae2466252675e5c83b40ac79cee2b1d636f9..62cca4965dd642488973649ff0a145f4b3174c37 100644
|
| --- a/chrome/browser/chromeos/drive/search_metadata.h
|
| +++ b/chrome/browser/chromeos/drive/search_metadata.h
|
| @@ -32,11 +32,13 @@ void SearchMetadata(
|
| int at_most_num_matches,
|
| const SearchMetadataCallback& callback);
|
|
|
| -// Finds |query| in |text| while ignoring case. Returns true if |query| is
|
| -// found. Returns false if |query| is not found, or empty. |highlighted_text|
|
| -// will have the original text with matched portions highlighted with <b> tag
|
| -// (multiple portions can be highlighted). Meta characters are escaped like
|
| -// <. The original contents of |highlighted| will be lost.
|
| +// Finds |query| in |text| while ignoring cases or accents. Cases of non-ASCII
|
| +// characters are also ignored; they are compared in the 'Primary Level' of
|
| +// http://userguide.icu-project.org/collation/concepts.
|
| +// Returns true if |query| is found. |highlighted_text| will have the original
|
| +// text with matched portions highlighted with <b> tag (only the first match
|
| +// is highlighted). Meta characters are escaped like <. The original
|
| +// contents of |highlighted| will be lost.
|
| bool FindAndHighlight(const std::string& text,
|
| const std::string& query,
|
| std::string* highlighted_text);
|
|
|