blob: e10d742dd9ea7126948f326a24f5e1aa3891b756 [file] [log] [blame]
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_TOOLS_CONVERT_DICT_HUNSPELL_READER_H_
#define CHROME_TOOLS_CONVERT_DICT_HUNSPELL_READER_H_
#pragma once
#include <string>
// Common routines for reading hunspell files.
namespace convert_dict {
// Reads one line and returns it. Whitespace will be trimmed.
std::string ReadLine(FILE* file);
// Trims whitespace from the beginning and end of the given string. Also trims
// UTF-8 byte order markers from the beginning.
void TrimLine(std::string* line);
// Strips any comments for the given line.
void StripComment(std::string* line);
} // namespace convert_dict
#endif // CHROME_TOOLS_CONVERT_DICT_HUNSPELL_READER_H_