﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2808	Codegen Error for strings in zero-crossings	Willi Braun	Willi Braun	"For example, the following model fails with code generation issue, since strings are not escaped in the c code.

{{{
loadString(""
model test
function compare
  input String string1;
  input String string2;
  input Boolean caseSensitive=true;
  output Boolean result;
external \""C\"" result = ModelicaStrings_compare(string1, string2, caseSensitive) annotation(Library=\""ModelicaExternalC\"");
end compare;
  Real x;
equation
  der(x) = if compare(\""test\"",\""Test\"",false) and x > 0.5 then 0.5 else 1.0;
end test;
"");
simulate(test);
getErrorString();
}}}"	defect	closed	high	1.9.4	Code Generation	trunk	fixed		
