add Span class and use it from TextLoader

This commit is contained in:
josh committed 2016-07-26 21:09:33 -04:00
1 parent b64b9bed23
commit cdae9e51ae
5 files changed
+29 -14

No files matched your search

+2 -2
View File
@@ -6,9 +6,9 @@
using namespace std;
static string line_to_string(const TextLoader::LineIndexPairList::iterator & it)
static string line_to_string(const std::list<Span>::iterator & it)
{
return string((char *)it->first, it->second);
return string((char *)it->start, it->length);
}
TEST(TextLoaderTest, num_lines_defaults_to_0)