MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ReadText

Function ReadText

src/benchmark/Performance.cpp:757–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757std::string ReadText(const std::string& filename) {
758 const std::string benchmark_data_dir = PROJECT_SOURCE_DIR "/test/benchmark/";
759 const std::string data_path = benchmark_data_dir + filename;
760 std::ifstream stream(data_path.c_str());
761 return std::string((std::istreambuf_iterator<char>(stream)),
762 std::istreambuf_iterator<char>());
763}
764
765static void BM_Initialization(benchmark::State& state,
766 const BenchmarkConfig& config) {

Callers 2

BM_ConvertLongTextFunction · 0.85
BM_CommandLineLongTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected