Exemplo n.º 1
0
CodePoint::Type Parser::get_cp (const Item & item) {

	auto cp=item.CodePoint();
	if (!cp) throw std::runtime_error("Expected code point");
	
	return *cp;

}
Exemplo n.º 2
0
void CasingParser::get_folding (Entry & entry, const Item & item) {

	entry.SimpleFolding=item.CodePoint();
	
	//	If the simple folding is still null,
	//	this line is malformed
	if (!entry.SimpleFolding) throw std::runtime_error("Expected code point");

}