-local function slow_find_char_class(c, m, oc)
- local xc = c or oc
- local cls = ltjf_find_char_class(oc, m)
- if xc ~= oc and cls==0 then cls = ltjf_find_char_class(-xc, m) end
- return cls, xc
+local slow_find_char_class
+do
+ local start_time_measure = ltjb.start_time_measure
+ local stop_time_measure = ltjb.stop_time_measure
+ slow_find_char_class = function (c, m, oc)
+ start_time_measure('slow_find_chr')
+ local cls = ltjf_find_char_class(oc, m)
+ if not c and cls==0 then
+ stop_time_measure('slow_find_chr')
+ return ltjf_find_char_class(-c, m), oc
+ else
+ stop_time_measure('slow_find_chr')
+ return cls, oc
+ end
+ end