2014-01-13 14:08:43 -05:00
|
|
|
// Copyright (C) 2011, 2012 Google Inc.
|
2012-07-23 23:17:59 -04:00
|
|
|
//
|
|
|
|
// This file is part of YouCompleteMe.
|
|
|
|
//
|
|
|
|
// YouCompleteMe is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// YouCompleteMe is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
#ifndef IDENTIFIERUTILS_CPP_WFFUZNET
|
|
|
|
#define IDENTIFIERUTILS_CPP_WFFUZNET
|
|
|
|
|
2013-05-26 16:28:00 -04:00
|
|
|
#include "IdentifierDatabase.h"
|
|
|
|
|
2012-07-23 23:17:59 -04:00
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
|
2013-05-26 16:28:00 -04:00
|
|
|
#include <boost/filesystem.hpp>
|
|
|
|
|
2013-01-19 23:10:52 -05:00
|
|
|
namespace YouCompleteMe {
|
2012-07-23 23:17:59 -04:00
|
|
|
|
2012-07-24 23:09:09 -04:00
|
|
|
// NOTE: this function accepts the text param by value on purpose; it internally
|
|
|
|
// needs a copy before processing the text so the copy might as well be made on
|
|
|
|
// the parameter BUT if this code is compiled in C++11 mode a move constructor
|
|
|
|
// can be called on the passed-in value. This is not possible if we accept the
|
|
|
|
// param by const ref.
|
|
|
|
std::string RemoveIdentifierFreeText( std::string text );
|
2012-07-23 23:17:59 -04:00
|
|
|
|
|
|
|
std::vector< std::string > ExtractIdentifiersFromText(
|
2013-01-19 23:10:52 -05:00
|
|
|
const std::string &text );
|
2012-07-23 23:17:59 -04:00
|
|
|
|
2013-05-26 16:28:00 -04:00
|
|
|
FiletypeIdentifierMap ExtractIdentifiersFromTagsFile(
|
2013-05-30 01:23:19 -04:00
|
|
|
const boost::filesystem::path &path_to_tag_file );
|
2013-05-26 16:28:00 -04:00
|
|
|
|
2012-07-23 23:17:59 -04:00
|
|
|
} // namespace YouCompleteMe
|
|
|
|
|
|
|
|
#endif /* end of include guard: IDENTIFIERUTILS_CPP_WFFUZNET */
|