1 auto r = splitInfoLine( "uint param" );
2 assertEq( r.d_type, "uint" );
3 assertEq( r.cl_type, "uint" );
4 assertEq( r.prop_name, "param" );
5 assertEq( r.cl_param_name, "param" );
1 auto r = splitInfoLine( "cl_uint:MyEnum param" );
2 assertEq( r.d_type, "MyEnum" );
3 assertEq( r.cl_type, "cl_uint" );
4 assertEq( r.prop_name, "param" );
5 assertEq( r.cl_param_name, "param" );
1 auto r = splitInfoLine( "uint param:prop" );
2 assertEq( r.d_type, "uint" );
3 assertEq( r.cl_type, "uint" );
4 assertEq( r.prop_name, "prop" );
5 assertEq( r.cl_param_name, "param" );
1 auto r = splitInfoLine( "cl_uint:MyEnum param:prop" );
2 assertEq( r.d_type, "MyEnum" );
3 assertEq( r.cl_type, "cl_uint" );
4 assertEq( r.prop_name, "prop" );
5 assertEq( r.cl_param_name, "param" );
split info line
Rules: