nitc :: StringFinder :: add_string
The string needs to be pre-formatted to C standards (escape_to_c)
# Adds a String to the list of strings of the module
#
# The string needs to be pre-formatted to C standards (escape_to_c)
fun add_string(s: String, loc: Location) do
var locstr = "{amodule.mmodule.mgroup.name}::{amodule.mmodule.name} {loc.line_start}--{loc.column_start}:{loc.column_end}"
if not strings.has_key(s) then
var po = new PObject([locstr], s, "")
strings[s] = po
else
strings[s].locations.push locstr
end
end
src/frontend/i18n_phase.nit:112,2--123,4