research/hhe/dump-strings
Simon Howard deabee4bcb Add script to dump bare list of strings, and file containing filtered
list of "good" (replaceable) strings.

Subversion-branch: /research
Subversion-revision: 1889
2010-04-18 12:36:13 +00:00

18 lines
275 B
Ruby
Executable file

#!/usr/bin/env ruby
require "common"
config = find_config(ARGV[1])
strings = find_strings(ARGV[0], config)
for string in strings
string_text = string[1].to_json
if string[1] == nil
string_text = "NULL"
end
printf " { %6i, %s },\n", string[0], string_text
end