27 for (
const auto& file_name : file_names)
44 return it !=
m_raw_data.end() ? it->second : std::vector<std::string>();
std::map< std::string, std::vector< std::string > > m_raw_data
void loadFile(const std::string &file_name)
correspondence of file name to the raw data in the file (i.e. all strings)
void updateRawData(const std::vector< std::string > &file_names)
Load raw data from the list of files, if it was not loaded yet.
std::vector< std::string > textData(const std::string &file_name)
Returns raw text data representing content of the file with given name.
bool Contains(const A &container, const B &element)
Returns true if container contains a given element.
DAREFLCORE_EXPORT std::vector< std::string > LoadASCIIFile(const std::string &file_name)
Loads ASCII file, returns it in the form of vector of strings.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.