add Span class and use it from TextLoader
This commit is contained in:
1 parent
b64b9bed23
commit
cdae9e51ae
5 files changed
+29
-14
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user