[sword-devel] A little bug in library

sword-devel@crosswire.org sword-devel@crosswire.org
Sun, 01 Sep 2002 22:13:41 +0600


This prints [1]. I consider it a bug:

#include <iostream>
#include <rawld.h>

void main(int argc, char **argv)
{
	RawLD::createModule("tmp/lextest");
	RawLD lex("tmp/lextest");

	lex.setKey("1");
	lex << "[1]";

	lex.setKey("2");
	lex << "[2]";

	lex.setKey("2");
	std::cout << lex.getRawEntry() << std::endl;
}

-- 
Victor Porton (porton@ex-code.com)